song order carousel jrmediapro

mscorfield
@mscorfield
10 years ago
40 posts
Hi

how do i change the song order on the carousel to match the users audio song order in jrmediapro skin ?

Thanks

Mark
updated by @mscorfield: 01/30/15 02:35:12PM
douglas
@douglas
10 years ago
2,791 posts
Open your skins/jrMediaPro/index_slider.tpl template and find this:

{jrCore_list module="jrAudio" order_by="_created desc" limit="2" search1="_profile_id = `$item._profile_id`" template="index_slider_song.tpl"}

and change it to this:

{jrCore_list module="jrAudio" order_by="audio_file_track numerical_asc" limit="2" search1="_profile_id = `$item._profile_id`" template="index_slider_song.tpl"}

I just changed the order_by to audio_file_track numerical_asc which should list the songs as the artist/user has ordered them on their profile page.

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mscorfield
@mscorfield
10 years ago
40 posts
Many Thanks Douglas
douglas
@douglas
10 years ago
2,791 posts
Your welcome! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mscorfield
@mscorfield
10 years ago
40 posts
im afraid to say it i tried it and it didnt work - when i cleared my caches , the page broke and only the header displayed so ive set it back to the original. also updating the template via jamroom said it worked but when i ftp'd to the site to check the original was still in place.
mscorfield
@mscorfield
10 years ago
40 posts
i have this in my php error log

[23-Dec-2014 17:42:17 Europe/Dublin] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/ukbasinf/public_html/data/cache/jrCore/c6efe6d5957fa9186bad6ac841e1164c.tpl" on line 20 "{jrCore_lang skin=$_conf.jrCore_active_skin id="143" default="Influences"}: {if isset($item.profile_influences) && strlen($item.profile_influences) > 70}{$item.profile_influences|truncate:70:"...":true} And more!!!{else}{$item.profile_influences}{/if}" - Unexpected "

im wondering if its this

&& strlen($item.profile_influences) > 70

as my profile influences fields are empty ???
updated by @mscorfield: 12/23/14 10:08:08AM
brian
@brian
10 years ago
10,148 posts
No - that's not it as there is an isset() check before that.

Use code tags here - i.e.

[ code ]

paste your code here

[ /code ]

but use NO spaces before/after the square brackets.

Then we can see what your code is.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
mscorfield
@mscorfield
10 years ago
40 posts
yes it was that i've removed influences from the carousel and it works now to order the songs as created on the audio profiles.

Tags