Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
What I do wrong for charts on profile
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/07/12 08:04 
Hello to all,

what I did wrong?




Code
{jr_chart type="audio"
    chart_days="30"    
   order='5'
   pagebreak='8'
    tpl_dir='theme'
    theme='Maestro'
    from_theme='yes'
    band_id=$BAND_ID
    band_name=$BAND_NAME
    header_template=""
   row_template="chart_row_audio.tpl"
   footer_template="chart_footer.tpl"
   require_image='1'}


This wont want work on themes but on skin it do work. I realy need a limited box for the charts on the profile themes. (without use max_songs string, because it need same chart ranking place as with in the main site)

I tryt everything what I can also tryt pagebreak="8" or show="8" but with "show" nothing works.

The "Default Results per Page" on the chart settings have no effect on the themes


Best regards,
Acidphantom

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 05/08/12 04:00 
I don't believe there is a from_theme='yes' parameter for the jr_chart function, try removing that from your function and see if it works then.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/08/12 05:38 
I did change the whole string but still have no luck...


this string:

Code
{jr_chart type="audio" chart_days="30" band_id=$BAND_ID pagebreak="8" header_template="" row_template="chart_row_audio.tpl" footer_template="chart_footer.tpl"}


pagebreak not works Sad

with this string :

Code
{jr_chart type="audio" chart_days="30" pagebreak="8" header_template="" row_template="chart_row_audio.tpl" footer_template="chart_footer.tpl"}


pagebreak works again without band_id=$BAND_ID ( I need one what works for the 1 artist only on the profile themes )


Best regards,
Acidphantom

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 05/08/12 10:03 
I would checkout how its done in the Flashback theme files.

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/08/12 11:51 
I did but also not worked on my theme... always by use "band_id=$BAND_ID" pagebreak have no funktion Crying or Very sad

on the flashback theme is used " showall="true" " can I place a number inside it ?



Best regards,
Acidphantom

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 05/09/12 08:07 
The showall parameter is for showing media that has had no plays in the charts, you can't set a number, its either true or false.

The band_id parameter should work, where are you placing the jr_chart function? Make sure the variable $BAND_ID is available where your using it?

Hope this helps,
Douglas


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/09/12 13:56 
I want use it in my theme with this string


Code
{jr_chart type="audio" chart_days="30" band_id=$BAND_ID pagebreak="8" header_template="" row_template="chart_row_audio.tpl" footer_template="chart_footer.tpl"}



But pagebreak will not have any funktion with the "band_id=$BAND_ID"

I use it on the side block of my theme. Same as like on my index page...

On index is show all artists charts but on theme should be only for the artists who own the artist site.

It realy not works. If you like PM me to give you urls

Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 05/09/12 16:52 
So this:


Code
{jr_chart type="audio" chart_days="30" band_id=$BAND_ID pagebreak="8" header_template="" row_template="chart_row_audio.tpl" footer_template="chart_footer.tpl"}


is giving you the correct output, its just not paginating? What does the code for your pagination look like?


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/10/12 02:33 

Code
{*chart_row.tpl*}

{if $CHART_TYPE == 'audio'}
<div class="chart_row">
  <table width="100%" align="center" cellpadding="2">
    <tr>
      <td align="center" width="5%" nowrap="nowrap" style="text-align:center">{$SONG_RANK}</td>
    
     {***** paSCSeamless Module Addition *****}
      {if $SONG_SOUNDCLOUD_ID != '' && is_numeric($SONG_SOUNDCLOUD_ID)}
      {paSCSeamless_GetTrackData soundcloud_data=$SONG_SOUNDCLOUD_DATA assign="_scData"}
        <td width="5%" align="center"><a href="{$ARTIST_URL}"> {if $SONG_IMAGE_SIZE > 0} <img src="{$_scData.artwork_url}" width="30" height="24" alt="{$SONG_NAME}"> {else} <img src="{$BAND_IMAGE_URL}&amp;width=30&amp;max_height=30&amp;skin=Maestro" alt="{$SONG_NAME}"> {/if}</a></td>
      {else}
       <td width="5%" align="center"><a href="{$ARTIST_URL}"> {if $SONG_IMAGE_SIZE > 0} <img src="{$SONG_IMAGE_URL}&amp;width=30&amp;crop_height=24&amp;skin=Maestro"  width="30" height="24" alt="{$SONG_NAME}"> {else} <img src="{$BAND_IMAGE_URL}&amp;width=30&amp;max_height=30&amp;skin=Maestro" alt="{$SONG_NAME}"> {/if}</a></td>
     {/if}
      {*****}
    
      <td align="center" width="5%"><img src="{$SKIN_URL}/images/chart_{$SONG_DIRECTION}.png" alt="{$SONG_DIRECTION}" title="{$SONG_DIRECTION}"></td>
      <td align="center" width="5%">{$SONG_PREV_RANK} </td>
      <td width="35%"><a href="{$ARTIST_URL}">{$SONG_NAME|jr_safe_truncate:16}</a></td>
       <td width="20%"><a href="{$JAMROOM_URL}/index.php?t=songs&g={$SONG_GENRE|jr_urlencode}">{$SONG_GENRE|jr_safe_truncate:20}</a></td>
      <td class="cbs" align="right" width="20%">
      <button style="font-size:8px" class="ad1" onclick="window.location='{$JAMROOM_URL}/index.php?t=radio&song_id={$SONG_ID}';" >{jr_lang id='206' default='Play'}</button>
      <button style="font-size:8px" class="pb1" onclick="preview('song','{$SONG_ID}');" >{jr_lang id='205' default='Preview item'}</button></td>
    </tr>
  </table>
</div>
{/if}


Back to top
Douglas
Jamroom Team


Joined: 08 Oct 2004
Posts: 6639
Location: Tornado Alley!

Posted: 05/10/12 05:25 
You don't have any pagination code in that template, what does your chart_footer.tpl have in it?


_________________
Douglas Hackney
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Acidphantom



Joined: 01 Apr 2008
Posts: 783
Location: Germany

Posted: 05/10/12 05:56 

Code
 {* chart_footer.tpl *}
<br />
<script type="text/javascript" language="javascript">
$(function(){ldelim}
   chartNurl = '{$NEXT_PAGE_URL}';
   chartPurl = '{$PREV_PAGE_URL}';
   initChartScript();
   paginator('{$PAGENUM}','{$NEXT_PAGE_NUM}','#chart_prev_btn','#chart_next_btn');
{rdelim});
</script>


Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.