solved Media Pro - Putting the latest uploaded songs on the front page

brianrudie
@brianrudie
8 years ago
39 posts

In Media Pro
How do I Put the latest releases / newley uploaded songs on the front page instead of top singles?
so that returning visitors can see the latest tunes / new releases
example.jpg
example.jpg  •  378KB


updated by @brianrudie: 03/13/17 01:35:40AM
paul
@paul
8 years ago
4,331 posts
Take a look at the index_top_singles.tpl template. See the {jrCore_list . . .) calls and their 'order_by' parameters? Change that to -

order_by="_item_id desc"

to get the mist recently created songs.
Hope that helps
Paul


--
Paul Asher - JR Developer and System Import Specialist
brianrudie
@brianrudie
8 years ago
39 posts
Hi Paul
I have change from
{if jrCore_module_is_active('jrRating')}
{if isset($_conf.jrMediaProLight_require_images) && $_conf.jrMediaProLight_require_images == 'on'}
{jrCore_list module="jrAudio" order_by="audio_rating_overall_average_count numerical_desc" quota_id=$_conf.jrMediaProLight_artist_quota search1="profile_active = 1" template="index_top_singles_rating_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by="audio_rating_overall_average_count numerical_desc" search1="profile_active = 1" quota_id=$_conf.jrMediaProLight_artist_quota template="index_top_singles_rating_row.tpl" pagebreak="6" page=$_post.p}
{/if}
{else}
{if isset($_conf.jrMediaProLight_require_images) && $_conf.jrMediaProLight_require_images == 'on'}
{jrCore_list module="jrAudio" order_by="audio_file_stream_count numerical_desc" quota_id=$_conf.jrMediaProLight_artist_quota search1="profile_active = 1" template="index_top_singles_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by="audio_file_stream_count numerical_desc" search1="profile_active = 1" quota_id=$_conf.jrMediaProLight_artist_quota template="index_top_singles_row.tpl" pagebreak="6" page=$_post.p}
{/if}
{/if}

to

{if jrCore_module_is_active('jrRating')}
{if isset($_conf.jrMediaProLight_require_images) && $_conf.jrMediaProLight_require_images == 'on'}
{jrCore_list module="jrAudio" order_by="_item_id desc" quota_id=$_conf.jrMediaProLight_artist_quota search1="profile_active = 1" template="index_top_singles_rating_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by="_item_id desc" search1="profile_active = 1" quota_id=$_conf.jrMediaProLight_artist_quota template="index_top_singles_rating_row.tpl" pagebreak="6" page=$_post.p}
{/if}
{else}
{if isset($_conf.jrMediaProLight_require_images) && $_conf.jrMediaProLight_require_images == 'on'}
{jrCore_list module="jrAudio" order_by="_item_id desc" quota_id=$_conf.jrMediaProLight_artist_quota search1="profile_active = 1" template="index_top_singles_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by="_item_id desc" search1="profile_active = 1" quota_id=$_conf.jrMediaProLight_artist_quota template="index_top_singles_row.tpl" pagebreak="6" page=$_post.p}
{/if}
{/if}


also cleared caches and still showing the same
michael
@michael
8 years ago
7,746 posts
If its not working, the best thing to try is to revert it back to the original and write this at the top of the file you intend to change

WHERE DOES THIS COME OUT???? AM I IN THE RIGHT FILE HERE ??????

Then save and try to find that text where you're wanting to change. If you cant see that text, then you're not making edits correctly and nothing will change.

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor
douglas
@douglas
8 years ago
2,793 posts
brianrudie:
In Media Pro
How do I Put the latest releases / newley uploaded songs on the front page instead of top singles?
so that returning visitors can see the latest tunes / new releases

If you want to change the "Top Singles" into "Newest Singles" modify your index_top_singles.tpl file and change the entire code to this:

{if isset($_conf.jrMediaPro_require_images) && $_conf.jrMediaPro_require_images == 'on'}
    {jrCore_list module="jrAudio" order_by="_item_id numerical_desc" quota_id=$_conf.jrMediaPro_artist_quota search1="profile_active = 1" template="index_top_singles_rating_row.tpl" require_image="audio_image" pagebreak="6" page=$_post.p}
{else}
    {jrCore_list module="jrAudio" order_by="_item_id numerical_desc" search1="profile_active = 1" quota_id=$_conf.jrMediaPro_artist_quota template="index_top_singles_rating_row.tpl" pagebreak="6" page=$_post.p}
{/if}

If you are using a cloned skin, which you really should be if your going to make modifications to the skin like you are, then be sure to change all instances of jrMediaPro to your skin directory name.

Hope this helps!


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brianrudie
@brianrudie
8 years ago
39 posts
Hey Douglas,

Thanks, That did the trick, My next question is How do I change the heading above from Top Singles to New Singles ?
paul
@paul
8 years ago
4,331 posts
Skin index.tpl template line 118 -

{jrCore_lang skin=$_conf.jrCore_active_skin id="58" default="Top"} {jrCore_lang skin=$_conf.jrCore_active_skin id="171" default="Singles"}

Change the {jrCore_lang skin=$_conf.jrCore_active_skin id="58" default="Top"} to {jrCore_lang skin=$_conf.jrCore_active_skin id="167" default="New"}

hth


--
Paul Asher - JR Developer and System Import Specialist
brianrudie
@brianrudie
8 years ago
39 posts
Thanks Paul, All fixed up

Tags