Embed Audio by Genre

Dazed
Dazed
@dazed
11 years ago
1,022 posts
Does the jrEmbed feature work by genre? There are times when we run contest and in JR4 we could pull all songs in a certain genre but I have not see this in JR5.

Thanks
updated by @dazed: 10/27/14 05:03:35AM
brian
@brian
11 years ago
10,148 posts
Dazed:
Does the jrEmbed feature work by genre? There are times when we run contest and in JR4 we could pull all songs in a certain genre but I have not see this in JR5.

Thanks

This is not supported with the embed module - you would want to create a small custom template with a jrCore_media_player call in it - it supports searches (just as in jrCore_list) so you can make any type of list you want.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks Brian. I am thinking the only way to get it into a blog would be via a playlist.
updated by @dazed: 08/31/14 07:06:51AM
brian
@brian
11 years ago
10,148 posts
Dazed:
Thanks Brian. I am thinking the only way to get it into a blog would be via a playlist.

Yeah you're right - you're not going to be able to pull a template into a blog - the only thing I can think is to create the template then just link to it from your blog (with a blank target) - might actually work better since they could start playing the audio and leave it running while they navigate your site.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
would be interesting if it works like the youtube embed links and would just put in the jr player when clicked.
brian
@brian
11 years ago
10,148 posts
Dazed:
would be interesting if it works like the youtube embed links and would just put in the jr player when clicked.

Yeah - some type of "template embed" might be cool - we can check that out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
michael
@michael
11 years ago
7,772 posts
adding a search function to the embed seams a pretty easy way to go. (except for the interface, not sure how to do that.)

[jrEmbed module="jrAudio" search="audio_genre = rock"]

Seams like a good addition to the current way of doing things.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
agreed :)
brian
@brian
11 years ago
10,148 posts
Just to be clear this would be an advanced usage feature - there are no plans to expose any search capabilities via the embed popup - you're going to have to manually create the entry by hand.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
I do that already Brian so it is all good. We set site songs by a specific genre so this is just easy to dd into a blog.
brian
@brian
11 years ago
10,148 posts
Sounds good - support for this will be in the embed module after the next core release (hopefully tomorrow).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Brian - Is this the correct format?

 [jrEmbed module="jrAudio" search="audio_genre = "hard+rock"] 

updated by @dazed: 09/23/14 04:43:16PM
michael
@michael
11 years ago
7,772 posts
nope, that will definately not work. un-even ".
Try:
[jrEmbed module="jrAudio" search="audio_genre = hard rock"]
Dazed
Dazed
@dazed
11 years ago
1,022 posts
hmm tried that also. I have about 10 songs in a genre I want to add in a blog and that is coming up empty.

appreciate the help Michael
michael
@michael
11 years ago
7,772 posts
try
{jrCore_list module="jrAudio" search1="audio_genre = hard+rock"}

If that brings results then use that in the embed as it should be the same.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
seems like an issue with the embed? Nothing displays in my blog us the below jrEmbed.

 worked - {jrCore_list module="jrAudio" search1="audio_genre = Tune 2014"}

 did not work - [jrEmbed module="jrAudio" search1="audio_genre = Tune 2014"}
brian
@brian
11 years ago
10,148 posts
I will test it here and see what's up...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
I just tested here by creating 3 songs in the "Tune 2014" genre and using your exact embed code and it is working. Make sure you are running the latest Embed module.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Hey brian. I will look again. I wanted to reload the embed module but I do not see it in "reload modules or skins" section.
brian
@brian
11 years ago
10,148 posts
Dazed:
Hey brian. I will look again. I wanted to reload the embed module but I do not see it in "reload modules or skins" section.

Are you running a really old version of the module?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Note too that the module is called "TinyMCE Embed Button".


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
No I show current on all. I just was going to reload it since it is not working.

Here is what I have now. I have also tried search1.

Oh here is the list call
Mixposurs.com/aaa
http://www.mixposure.com/admin/blog/6164/test
.
Test
[jrEmbed module="jrAudio" search="audio_genre = Halloween 2014"]

updated by @dazed: 09/24/14 09:43:05AM
brian
@brian
11 years ago
10,148 posts
I don't see any player in the post at all - are you allowing the EMBED test formatter (core quota config) on the quota for the profile that created the blog post?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
I have been using the embed audio often and i have not changed the configuration values. But it seems all of my embedded audio is now mia.
brian
@brian
11 years ago
10,148 posts
I would check that in the embed module you've allowed it in your quotas, and check the core quota config for the text formatters.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
For the ad min they are all enabled in core. The embed module is also allowed for admin.
brian
@brian
11 years ago
10,148 posts
Dazed:
For the ad min they are all enabled in core. The embed module is also allowed for admin.

I'm not sure what it would be then - I'm not seeing any issues with it here, and I can see it is just being stripped from your entry entirely, so something is not enabled for not configured. I would have to log in to your site to check it out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Debug log
(2014-09-21T00:00:15-04:00.0.48627900 : 0)-(mem: 32505856)-(pid: 16014)-(ip: 66.249.69.68)-(uri: /admin/action/9362/) |Query Error: Duplicate entry 'MNT20140921' for key 'key_code'| (2014-09-21T00:00:15-04:00.0.48627900 : 0)-(mem: 32505856)-(pid: 16014)-(ip: 66.249.69.68)-(uri: /admin/action/9362/) |INSERT INTO jr_jrcore_play_key (key_time, key_code) VALUES (UNIX_TIMESTAMP(), 'MNT20140921')|
brian
@brian
11 years ago
10,148 posts
You can ignore that - it's fixed in the next core release - it's not related to the embed issue.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Could you try turning off Disqus and see if it works? When viewing your page I see this:

Quote:
Content Security Policy: The page's settings blocked the loading of a resource: An attempt to execute inline scripts has been blocked

In the console log...


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 09/24/14 10:54:50AM
Dazed
Dazed
@dazed
11 years ago
1,022 posts
I was wondering about that because I had it disabled and it suddenly appeared on my page. I disabled it and no go.

Here is the odd thing. I can embed a playlist with no problem. So embed media is working on the page. I am going to see if I can go back to the previous version and see what happens.
Dazed
Dazed
@dazed
11 years ago
1,022 posts
removed the latest module and made 1.0.3 the current module and my embedded audio came back. Suggestions?
brian
@brian
11 years ago
10,148 posts
Well that narrows it down to an issue with the module - I think the only thing that changed however was the JS location (moved from the core to the module).

I will compare 1.0.4 to 1.0.3 to see if I can see any differences.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
You should have a login and ftp to my site so feel free to go there and debug.
brian
@brian
11 years ago
10,148 posts
The latest version in the Marketplace is 1.1.0 - did you update to that version?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
That should be what is in there now. I copied that module locally and deleted it off my server and renamed the old version to 1.1.0. Then I verified the old version worked.

I then renamed the old and copied the current back in.

All updates were done via the marketplace.
brian
@brian
11 years ago
10,148 posts
Not quite following - so you're running 1.1.0 now or 1.0.3?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Nevermind - I see you are on 1.1.0


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
OK this should be working now - the root cause is that the new embed is looking for an embed template called "item_embed.tpl", but the audio module needs a new release that has that file renamed. I'll get that out here ASAP.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Dazed
Dazed
@dazed
11 years ago
1,022 posts
Thanks Brian. I appreciate the help.
brian
@brian
11 years ago
10,148 posts
Dazed:
Thanks Brian. I appreciate the help.

No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net