solved Charts

SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
On the Charts page, the list doesn't include the artist's name. I have Song Title, Genre and Album Name but no "Artist." How can I fixe this? Please see http://www.gmeshowcase.info/song_chart

Thanks.
updated by @gmeshowcase: 01/01/15 03:33:40AM
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
10 years ago
224 posts
it is {$item.profile_name}
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
Thanks. What Template file would I add this to?
Bandwerkstatt
Bandwerkstatt
@bandwerkstatt
10 years ago
224 posts
this is the call

{jrCore_list 	module="jrAudio" 
                chart_field="audio_file_stream_count" 
                template="charts_row.tpl" 
                chart_days="7"
                limit="20" 
                }

and then you create a chart_row.tpl file and put your code

{if isset($_items)}
{foreach from=$_items item="item"}

and here you can put your source code
{$item.profile_name}
{$item.audio_title}


{/foreach}
{/if}

if you put {debug} between {foreach} and {/foreach}, you can see all availeble variables you can use
updated by @bandwerkstatt: 11/17/14 08:48:08AM
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
I already have a chart page showing. Would it be this file that I edit? skins/jrNova/song_chart_row.tpl ?
douglas
@douglas
10 years ago
2,790 posts
jcoppage:
I already have a chart page showing. Would it be this file that I edit? skins/jrNova/song_chart_row.tpl ?

Yes, that is the template you'll want to modify.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
I need to replace "genre" with "artist" since this site is all one genre. How could I do that?
douglas
@douglas
10 years ago
2,790 posts
jcoppage:
I need to replace "genre" with "artist" since this site is all one genre. How could I do that?

Find this:

<span class="capital">{jrCore_lang module="jrAudio" id="12" default="genre"}:</span> <span class="media_title">{$item.audio_genre}</span>&nbsp;

replace with this:

<span class="capital">Artist:</span> <span class="media_title">{$item.profile_name}</span>&nbsp;



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
I've tried this edit on the Charts and the Songs page templates and saved. Nothing is updating. Still showing genre.
douglas
@douglas
10 years ago
2,790 posts
Did you clear your cache?

ACP > System Tools > Clear Cache


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
yes.
michael
@michael
10 years ago
7,715 posts
If your updating the file via FTP, be aware that if there are any changed to that same template via the TEMPLATES tab editor in the ACP those changes will take priority.

Check that you are not using an over-ridden template.
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
Here's the code I have that is not working. I'm not using FTP:

{$item.audio_title}
Artist: {$item.profile_name} 
 
{if isset($item.audio_album) && strlen($item.audio_album) >0}album: {$item.audio_album}{else}{/if}
{jrCore_lang skin=$_conf.jrCore_active_skin id="49" default="plays"}: {$item.audio_file_stream_count}
{jrCore_module_function function="jrRating_form" type="star" module="jrAudio" index="1" item_id=$item._item_id current=$item.audio_rating_1_average_count|default:0 votes=$item.audio_rating_1_count|default:0 }
douglas
@douglas
10 years ago
2,790 posts
Did you activate the template after making the modifications?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
SheliaReed
SheliaReed
@gmeshowcase
10 years ago
64 posts
Bingo! The little check box, checked. Fixed! Thank you!
douglas
@douglas
10 years ago
2,790 posts
Glad you got it working! :)


--

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

Tags