featured playlist on profile

soaringeagle
@soaringeagle
10 years ago
3,304 posts
i got the playlist showing when i check show playlist but its not adding the featured playlist
i know im just missing 1 tiny peice to make it work

btw placing this before the 2 last closing divs at bottom of profile sidebar
{if $profile_showplaylist == on}
{jrCore_media_player module="jrPlaylist" search1="playlist_featured = on"}
{/if}



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 03/17/15 06:26:11PM
paul
@paul
10 years ago
4,335 posts
You need to tell it which playlist, something like -

{jrCore_media_player module="jrPlaylist" item=$item}


--
Paul Asher - JR Developer and System Import Specialist
soaringeagle
@soaringeagle
10 years ago
3,304 posts
and includethe search playlist featured i assume?


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
still not getting it..


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
still not yet working right


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
ok this is what i got now
{if $profile_showplaylist == on}
{jrCore_media_player module="jrPlaylist" item=$item.playlist_items search1="playlist_featured = on"}

{/if}

im stumped


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
paul
@paul
10 years ago
4,335 posts
What are you doing to create $item.playlist_items? Where has that variable come from and is it valid?


--
Paul Asher - JR Developer and System Import Specialist
soaringeagle
@soaringeagle
10 years ago
3,304 posts
paul:
What are you doing to create $item.playlist_items? Where has that variable come from and is it valid?

honestly..after days of trying i found that in 1 of the templates ..maybe the ajax 1
ive been trying everything
i guess douglas is away this weekend huh

can u give me any ideas what to try even?
usualy even the wrong answer gives me a clue that leads to the right 1


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
douglas
@douglas
10 years ago
2,804 posts
Without being able to see all the code your using for this, there isn't much we can do but suggest things.

Is the playlist on a profile page or site page?

Can you show us the code/function your using to get the $item.playlist_items variable?

In the Nova skin, we've got two functions getting the playlist for the radio section... note that this is a popup player, but it should give you an idea of what you'll need to do to make your player work.

index.tpl
{jrCore_list module="jrPlaylist" order_by="_created desc" search1="playlist_title = Admin Playlist Title" profile_id="1" template="index_radio.tpl"}

index_radio.tpl
<a onclick="popwin('{$jamroom_url}/radio_player/playlist_id={$item._item_id}/title={$item.playlist_title}/autoplay=true','radio_player',460,220,true);">{jrCore_image image="button_player_play.png" width="32" height="32" alt="{$item.playlist_title}" title="{$item.playlist_title}" onmouseover="$(this).attr('src','`$jamroom_url`/skins/`$_conf.jrCore_active_skin`/img/button_player_play_hover.png');" onmouseout="$(this).attr('src','`$jamroom_url`/skins/`$_conf.jrCore_active_skin`/img/button_player_play.png');"}</a>

radio_player.tpl
{jrPlaylist_util mode="embed_playlist" playlist_id=$_post.playlist_id template="radio_playlist.tpl"}

radio_playlist.tpl
{if isset($_conf.jrNova_auto_play) && $_conf.jrNova_auto_play == 'on'}
    {assign var="vap" value="true"}
{elseif isset($_post.autoplay) && $_post.autoplay == 'true'}
    {assign var="vap" value="true"}
{else}
    {assign var="vap" value="false"}
{/if}

{jrCore_media_player type="jrPlaylist_player_dark" module="jrPlaylist" item=$item autoplay=$vap}

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
soaringeagle
@soaringeagle
10 years ago
3,304 posts
its on the profile page sidebar
just want to use a playlist thats marked as featured to show up in the sdebar ..i could do it by title i supose too
but ill look this over and see if i cant figure it out thnx


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
hmm that might have helped let me tryy something


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
hmm no
in the profile_sidebar.tpl i have this just before the last 2 closing divs
{if $profile_showplaylist == on}
{jrCore_list module="jrPlaylist" order_by="_created desc" search1="playlist_featured = on" template="my_profile_playlist_embed.tpl"}
{/if}
my profrile embed tpl
{jrPlaylist_util mode="embed_playlist" playlist_id=$_post.playlist_id template="my_profile_playlist.tpl"}

my profile playlist
{jrCore_media_player type="jrPlaylist_player_dark" module="jrPlaylist" item=$item}

i get
{jrCore_media_player} no media found for player
on the page


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
oh and u should know the costruction kit shows uop in every editor everywhere even where the lists wont work..like profile bio box


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
douglas
@douglas
10 years ago
2,804 posts
Give this a try:

profile_sidebar.tpl
{if $profile_showplaylist == on}
{jrCore_list module="jrPlaylist" order_by="_created desc" search1="playlist_featured = on" template="my_profile_playlist_embed.tpl" limit="1"}
{/if}

my_profile_playlist_embed.tpl
{if isset($_items)}
{foreach from=$_items item="item"}
{jrPlaylist_util mode="embed_playlist" playlist_id=$item.playlist_id template="my_profile_playlist.tpl"}
{/foreach}
{/if}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
soaringeagle
@soaringeagle
10 years ago
3,304 posts
no change to my_featured_playlist right well still get no media found


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
im still very vague on the code but should item="item" be $item=item


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
10 years ago
10,149 posts
soaringeagle:
im still very vague on the code but should item="item" be $item=item

No - the variable never comes first.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
douglas
@douglas
10 years ago
2,804 posts
soaringeagle:
no change to my_featured_playlist right well still get no media found

If you mean no change to the my_profile_playlist.tpl file, you are correct, that one looks good. Are you still not seeing the playlist?

Make sure you reset your cache in Jamroom and your browser.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
soaringeagle
@soaringeagle
10 years ago
3,304 posts
i resert jr cache not browser ill try thsat


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
10 years ago
3,304 posts
clearing cache does nothing before i saw the playlist player but no playlists now im not seeing anything but that {jrCore_media_player} no media found for player


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
douglas
@douglas
10 years ago
2,804 posts
Just out of curiosity, did you get the profile_showplaylist and the playlist_featured variables by creating form fields for the profile and playlist modules or are you getting those variables another way?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
soaringeagle
@soaringeagle
10 years ago
3,304 posts
form fields


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags