Listing in ProJam Light

nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
Top song Listing
Top Artists
Top Videos

how can i list the above on my homepage?
updated by @ecodeahpro: 07/07/15 05:24:33PM
paul
@paul
9 years ago
4,332 posts
Its done with appropriate search parameters in template jrCore_list calls.
What is your criteria for top songs, videos and artists, and where do you want them to show, and how many do you want to show etc?


--
Paul Asher - JR Developer and System Import Specialist
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
top songs
top artists
top labels
latest uploads
paul
@paul
9 years ago
4,332 posts
Sorry but that doesn't really help.
What skin are you using?
Where on the homepage do you want these 'top' items listed?
What do you consider as 'top'? Views? Plays? Ratings? Number of comments? Likes? Dislikes?
We need more to go on!!!!


--
Paul Asher - JR Developer and System Import Specialist
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
Pro Jam Light skin. On the index.tpl I consider Plays and views as 'top'
michael
@michael
9 years ago
7,748 posts
"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

{jrCore_list module="jrAudio" order_by="audio_file_stream_count desc"}
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
@micheal I mean't In tiles like Versionist.net
douglas
@douglas
9 years ago
2,793 posts
In your skins/jrProJamLight/header.tpl file, find this:

    {/if}

    <div id="content" class="mt10">
        <!-- end header.tpl -->

and just above the { /if } line, add this:

    <div class="slider_content">
        <div class="body_1">
            <div class="container">
                <div class="row">
                    <div class="col4">
                        <div class="body_2" style="padding-left: 30px;">
                            <h2>Top Songs</h2><br>
                        </div>
                        <div class="body_2 m10">
                            {capture name="top_songs_template" assign="top_songs_row"}
                            {literal}
                            {if isset($_items)}
                                {jrCore_module_url module="jrAudio" assign="aurl"}
                                <div class="container">

                                    {foreach from=$_items item="item"}
                                        {if $item@first || ($item@iteration % 4) == 1}
                                            <div class="row">
                                        {/if}
                                        <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                                            <div class="p3 center">
                                                <a href="{$jamroom_url}/{$item.profile_url}/{$aurl}/{$item._item_id}/{$item.audio_title_url}">{jrCore_module_function function="jrImage_display" module="jrAudio" type="audio_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img_scale" alt=$item.audio_title title=$item.audio_title}</a>
                                            </div>
                                        </div>
                                        {if $item@last || ($item@iteration % 4) == 0}
                                            </div>
                                        {/if}
                                    {/foreach}

                                </div>
                            {/if}
                            {/literal}
                            {/capture}
                            {if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
                                {jrCore_list module="jrAudio" order_by="audio_file_stream_count numerical_desc" limit="16" template=$top_songs_row require_image="audio_image"}
                            {else}
                                {jrCore_list module="jrAudio" order_by="audio_file_stream_count numerical_desc" limit="16" template=$top_songs_row}
                            {/if}
                        </div>
                    </div>
                    <div class="col4">
                        <div class="body_2" style="padding-left: 30px;">
                            <h2>Top Artists</h2><br>
                        </div>
                        <div class="body_2 m10">
                            {capture name="top_artists_template" assign="top_artists_row"}
                            {literal}
                                {if isset($_items)}
                                <div class="container">

                                    {foreach from=$_items item="item"}
                                    {if $item@first || ($item@iteration % 4) == 1}
                                    <div class="row">
                                        {/if}
                                        <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                                            <div class="p3 center">
                                                <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img_scale" alt=$item.profile_name title=$item.profile_name}</a>
                                            </div>
                                        </div>
                                        {if $item@last || ($item@iteration % 4) == 0}
                                    </div>
                                    {/if}
                                    {/foreach}

                                </div>
                                {/if}
                            {/literal}
                            {/capture}
                            {if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
                                {jrCore_list module="jrProfile" order_by="profile_view_count numerical_desc" limit="16" template=$top_artists_row require_image="profile_image"}
                            {else}
                                {jrCore_list module="jrProfile" order_by="profile_view_count numerical_desc" limit="16" template=$top_artists_row}
                            {/if}
                        </div>
                    </div>
                    <div class="col4 last">
                        <div class="body_2" style="padding-left: 30px;">
                            <h2>Top Videos</h2><br>
                        </div>
                        <div class="body_2 m10">
                            {capture name="top_videos_template" assign="top_videos_row"}
                            {literal}
                                {if isset($_items)}
                                {jrCore_module_url module="jrVideo" assign="vurl"}
                                <div class="container">

                                    {foreach from=$_items item="item"}
                                    {if $item@first || ($item@iteration % 4) == 1}
                                    <div class="row">
                                        {/if}
                                        <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                                            <div class="p3 center">
                                                <a href="{$jamroom_url}/{$item.profile_url}/{$vurl}/{$item._item_id}/{$item.video_title_url}">{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img_scale" alt=$item.video_title title=$item.video_title}</a><br>
                                            </div>
                                        </div>
                                        {if $item@last || ($item@iteration % 4) == 0}
                                    </div>
                                    {/if}
                                    {/foreach}

                                </div>
                                {/if}
                            {/literal}
                            {/capture}
                            {if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
                                {jrCore_list module="jrVideo" order_by="video_file_stream_count numerical_desc" limit="16" template=$top_videos_row require_image="video_image"}
                            {else}
                                {jrCore_list module="jrVideo" order_by="video_file_stream_count numerical_desc" limit="16" template=$top_videos_row}
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
@douglas thanks.
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
What about a list of top 5 newest blogs?
michael
@michael
9 years ago
7,748 posts
nduguseliphaz:
What about a list of top 5 newest blogs?

{jrCore_list module="jrBlog" order_by="_created numerical_desc" limit="5"}
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
michael:
nduguseliphaz:
What about a list of top 5 newest blogs?

{jrCore_list module="jrBlog" order_by="_created numerical_desc" limit="5"}

Excerpt?
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
michael:
nduguseliphaz:
What about a list of top 5 newest blogs?

{jrCore_list module="jrBlog" order_by="_created numerical_desc" limit="5"}

Excerpt?
douglas
@douglas
9 years ago
2,793 posts
nduguseliphaz:
What about a list of top 5 newest blogs?

Are you wanting the same layout as the other three top lists?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
douglas:
nduguseliphaz:
What about a list of top 5 newest blogs?

Are you wanting the same layout as the other three top lists?

yes
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
with top 5 blogs, top 5 songs, top 5 most viewed artists
douglas
@douglas
9 years ago
2,793 posts
nduguseliphaz:
with top 5 blogs, top 5 songs, top 5 most viewed artists

So your wanting another three top 5 lists? Blogs, Songs and Artists?

Can you post a link to your site so I can see the layout?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
Blogs, Gallery and Artists? https://goo.gl/aXNX8t
douglas
@douglas
9 years ago
2,793 posts
What is your Artist quota ID?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
1
douglas
@douglas
9 years ago
2,793 posts
Add this code where you want it show.

        <div class="slider_content">
            
            <div class="body_1">
            
                <div class="container">

                    <div class="row">
                    
                        <div class="col4">
                            <div class="body_2" style="padding-left: 30px;">
                                <h2>Top 5 Blogs</h2><br>
                            </div>
                            <div class="body_2 m10">
                                {capture name="top_5_blogs_template" assign="top_5_blogs_row"}
                                    {literal}
                                        {if isset($_items)}
                                            {jrCore_module_url module="jrBlog" assign="burl"}
                                            <div class="container">
                                                {foreach $_items as $item}
                                                <div class="row">
                                                    <div class="col2">
                                                        <div class="p5">
                                                            {if isset($item.blog_image_size) && $item.blog_image_size > 0}
                                                                <a href="{$jamroom_url}/{$item.profile_url}/{$burl}/{$item._item_id}/{$item.blog_title_url}">{jrCore_module_function function="jrImage_display" module="jrBlog" type="blog_image" item_id=$item._profile_id size="icon" crop="auto" class="iloutline img_scale" alt=$item.blog_title title=$item.blog_title}</a>
                                                            {else}
                                                                <a href="{$jamroom_url}/{$item.profile_url}/{$burl}/{$item._item_id}/{$item.blog_title_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$item._profile_id size="icon" crop="auto" class="iloutline img_scale" alt=$item.blog_title title=$item.blog_title}</a>
                                                            {/if}
                                                        </div>
                                                    </div>
                                                    <div class="col10 last">
                                                        <div class="p5">
                                                            <h2><a href="{$jamroom_url}/{$item.profile_url}/{$burl}/{$item._item_id}/{$item.blog_title_url}">{$item.blog_title}</a></h2>
                                                            <br>
                                                            <span class="normal">{jrCore_lang module="jrBlog" id="28" default="By"} {$item.user_name}, {$item.blog_publish_date|jrCore_format_time:false:"%F"}</span>
                                                        {if jrCore_module_is_active('jrComment')}
                                                            <span class="normal"> | <a href="{$jamroom_url}/{$item.profile_url}/{$murl}/{$item._item_id}/{$item.blog_title_url}#comments"> {$item.blog_comment_count|default:0} {jrCore_lang module="jrBlog" id="27" default="comments"} &raquo;</a></span>
                                                        {/if}
                                                        </div>
                                                    </div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        {/if}
                                    {/literal}
                                {/capture}
                                {jrCore_list module="jrBlog" order_by="blog_comment_count numerical_desc" limit="5" template=$top_5_blogs_row}
                            </div>
                        </div>
                        <div class="col4">
                            <div class="body_2" style="padding-left: 30px;">
                                <h2>Top 5 Galleries</h2><br>
                            </div>
                            <div class="body_2 m10">
                                {capture name="top_5_galleries_template" assign="top_5_galleries_row"}
                                    {literal}
                                        {if isset($_items)}
                                            {jrCore_module_url module="jrGallery" assign="gurl"}
                                            <div class="container">
                                                {foreach $_items as $item}
                                                <div class="row">
                                                    <div class="col2">
                                                        <div class="p5">
                                                            <a href="{$jamroom_url}/{$item.profile_url}/{$gurl}/{$item.gallery_title_url}/all">{jrCore_module_function function="jrImage_display" module="jrGallery" type="gallery_image" item_id=$item._item_id size="icon" crop="auto" class="iloutline img_scale" alt=$item.gallery_title}</a>
                                                        </div>
                                                    </div>
                                                    <div class="col10 last">
                                                        <div class="p5">
                                                            <h2><a href="{$jamroom_url}/{$item.profile_url}/{$gurl}/{$item.gallery_title_url}/all">{$item.gallery_title}</a></h2>
                                                            <br>
                                                            {jrCore_module_function function="jrRating_form" type="star" module="jrGallery" index="1" item_id=$item._item_id current=$item.gallery_rating_1_average_count|default:0 votes=$item.gallery_rating_1_count|default:0}
                                                        </div>
                                                    </div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        {/if}
                                    {/literal}
                                {/capture}
                                {jrCore_list module="jrGallery" order_by="gallery_rating_overall_average_count numerical_desc" limit="5" template=$top_5_galleries_row}
                            </div>
                        </div>
                        <div class="col4 last">
                            <div class="body_2" style="padding-left: 30px;">
                                <h2>Top 5 Artists</h2><br>
                            </div>
                            <div class="body_2 m10">
                                {capture name="top_5_artists_template" assign="top_5_artists_row"}
                                    {literal}
                                        {if isset($_items)}
                                            <div class="container">
                                                {foreach $_items as $item}
                                                <div class="row">
                                                    <div class="col2">
                                                        <div class="p5">
                                                            <a href="{$jamroom_url}/{$item.profile_url}">{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_image" item_id=$item._profile_id size="icon" crop="auto" class="iloutline img_scale" alt=$item.profile_name}</a>
                                                        </div>
                                                    </div>
                                                    <div class="col10 last">
                                                        <div class="p5">
                                                            <h2><a href="{$jamroom_url}/{$item.profile_url}">{$item.profile_name}</a></h2>
                                                            <br>
                                                            <span class="normal">Views: {$item.profile_view_count|default:0}</span>
                                                        </div>
                                                    </div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        {/if}
                                    {/literal}
                                {/capture}
                                {jrCore_list module="jrProfile" order_by="profile_view_count numerical_desc" limit="5" quota_id="1" template=$top_5_artists_row}
                            </div>
                        </div>
                        
                    </div>
                    
                </div>
                
            </div>
            
        </div>



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
nduguseliphaz
nduguseliphaz
@ecodeahpro
9 years ago
206 posts
Thanks @douglas for videos earlier I mean't youtube videos not uploaded videos
if you can assist me with that all will be okay with me. Thanks again. :)
douglas
@douglas
9 years ago
2,793 posts
Change this:

                            {capture name="top_videos_template" assign="top_videos_row"}
                            {literal}
                                {if isset($_items)}
                                {jrCore_module_url module="jrVideo" assign="vurl"}
                                <div class="container">

                                    {foreach from=$_items item="item"}
                                    {if $item@first || ($item@iteration % 4) == 1}
                                    <div class="row">
                                        {/if}
                                        <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                                            <div class="p3 center">
                                                <a href="{$jamroom_url}/{$item.profile_url}/{$vurl}/{$item._item_id}/{$item.video_title_url}">{jrCore_module_function function="jrImage_display" module="jrVideo" type="video_image" item_id=$item._profile_id size="medium" crop="auto" class="iloutline img_scale" alt=$item.video_title title=$item.video_title}</a><br>
                                            </div>
                                        </div>
                                        {if $item@last || ($item@iteration % 4) == 0}
                                    </div>
                                    {/if}
                                    {/foreach}

                                </div>
                                {/if}
                            {/literal}
                            {/capture}
                            {if isset($_conf.jrProJamLight_require_images) && $_conf.jrProJamLight_require_images == 'on'}
                                {jrCore_list module="jrVideo" order_by="video_file_stream_count numerical_desc" limit="16" template=$top_videos_row require_image="video_image"}
                            {else}
                                {jrCore_list module="jrVideo" order_by="video_file_stream_count numerical_desc" limit="16" template=$top_videos_row}
                            {/if}

to this:

                            {capture name="top_youtube_template" assign="top_youtube_row"}
                            {literal}
                                {if isset($_items)}
                                {jrCore_module_url module="jrYouTube" assign="yturl"}
                                <div class="container">

                                    {foreach from=$_items item="item"}
                                    {if $item@first || ($item@iteration % 4) == 1}
                                    <div class="row">
                                        {/if}
                                        <div class="col3{if $item@last || ($item@iteration % 4) == 0} last{/if}">
                                            <div class="p3 center">
                                                <a href="{$jamroom_url}/{$item.profile_url}/{$yturl}/{$item._item_id}/{$item.youtube_title_url}"><img src="{$item.youtube_artwork_url}" alt="{$item.youtube_title|jrCore_entity_string}" title="{$item.youtube_title|jrCore_entity_string}" class="iloutline img_scale"></a><br>
                                            </div>
                                        </div>
                                        {if $item@last || ($item@iteration % 4) == 0}
                                    </div>
                                    {/if}
                                    {/foreach}

                                </div>
                                {/if}
                            {/literal}
                            {/capture}
                            {jrCore_list module="jrYouTube" order_by="youtube_stream_count numerical_desc" limit="16" template=$top_youtube_row}



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags