Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
adapted cobalt3 problems
nebzine



Joined: 11 Oct 2004
Posts: 473
Location: Newcastle UK

Posted: 04/19/12 10:22 
Hi

im using an adapted version of the skin cobalt with jamroom 3.45 and am having a problem with the ranking not bringing in any content. see http://www.spintronic.biz - the only bit that seems to work is the chart on the front page. my ranking row template looks like this :


Code
{*
   the jr_ranking_row.tpl is the default "row" file used by the Jamroom Ranking System
   and contains small sections for each of the types supported by the ranking system
*}

{* make sure our config is loaded for use *}
{config_load file="`$SKIN_DIR`/nautica.cfg"}

<tr>

{if $MODE == 'artist'}
  <td class="container">{$BAND_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$BAND_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$BAND_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3><a href="{$ARTIST_URL}"><img src="{$SKIN_URL}/images/jump.png" alt="{$BAND_NAME}" title="{$BAND_NAME}"></a></h3>
    {if $ORDER == 5}
      &raquo; {jr_lang id="30" default="plays"}: {$BAND_TOTAL_COUNT|jr_number_format}<br />
    {elseif $ORDER == 23}
      &raquo; <a href="{$ARTIST_URL}fans.php">{jr_lang id="248" default="fans"}: {$BAND_FAN_COUNT|jr_number_format}</a><br />
    {/if}
    {if $BAND_QUOTA > 0}
      &raquo; <a href="index.php?t=browse_artist&amp;search_area=band_soundlike&amp;search_string={$BAND_SOUNDLIKE|default:"unknown"|jr_urlencode}">{$BAND_SOUNDLIKE|default:"unknown"}</a><br />
    {/if}
    &raquo; <a href="index.php?t=browse_artist&amp;search_area=band_location&amp;search_string={$BAND_LOCATION|default:"unknown"|jr_urlencode}">{$BAND_LOCATION|default:"unknown"}</a>
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$BAND_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$BAND_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=band&amp;band_id={$BAND_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'member'}
  <td class="container" style="text-align:center">{$MEMBER_RANK}</td>
  <td width="05%" class="sub_header">
    <a href="{$ARTIST_URL}"><img src="{$MEMBER_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$MEMBER_NAME}" width="64" /></a>
  </td>
  <td class="container">
    <h3><a href="{$ARTIST_URL}"><img src="{$SKIN_URL}/images/jump.png" alt="{$MEMBER_NAME}" title="{$MEMBER_NAME}"></a></h3>
    <br />
    {if $ORDER == 11}
      &raquo; <a href="{$ARTIST_URL}fans.php">{jr_lang id="249" default="friends"}: {$BAND_FAN_COUNT|jr_number_format}</a><br />
    {/if}
    &raquo; {jr_lang id="58" default="member since"}: {$MEMBER_CREATED|jr_date_format:"date1"}</a>
  </td>
  <td nowrap="nowrap" class="container" style="text-align:right">
    {jr_rating_image rating=$MEMBER_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$MEMBER_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=band&amp;band_id={$MEMBER_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'song' && $ORDER == 6}
  <h3>&raquo; <a href="index.php?t=browse_song&g={$SONG_GENRE|jr_urlencode}">{$SONG_GENRE}</a></h3><br />


{elseif $MODE == 'song'}
  <td class="body_3" style="text-align:center">{$SONG_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$SONG_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$SONG_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$SONG_NAME}</h3>
    {jr_lang id="38" default="hifi stream" assign="hifi_s"}
    {jr_lang id="40" default="hifi download" assign="hifi_d"}
    {jr_lang id="39" default="lofi stream" assign="lofi_s"}
    {jr_lang id="41" default="lofi download" assign="lofi_d"}
    {jr_media_access type="image" alt=$hifi_s media="hifi_stream" media_url=$SONG_HIFI_PLAY_URL skin="nautica" media_size=$SONG_HIFI_SIZE download=$SONG_HIFI_DOWNLOAD}
    {jr_media_access type="image" alt=$hifi_d media="hifi_download" media_url=$SONG_HIFI_DOWNLOAD_URL skin="nautica" media_size=$SONG_HIFI_SIZE download=$SONG_HIFI_DOWNLOAD}
    {jr_media_access type="image" alt=$lofi_s media="lofi_stream" media_url=$SONG_LOFI_PLAY_URL skin="nautica" media_size=$SONG_LOFI_SIZE download=$SONG_LOFI_DOWNLOAD}
    {jr_media_access type="image" alt=$lofi_d media="lofi_download" media_url=$SONG_LOFI_DOWNLOAD_URL skin="nautica" media_size=$SONG_LOFI_SIZE download=$SONG_LOFI_DOWNLOAD}
    {if $SONG_ADVISE == 'yes'}
      &nbsp;({jr_lang id="37" default="explicit content"})
    {/if}
    <br />
    &raquo; <a href="{$ARTIST_URL}">{$BAND_NAME}</a><br />
    &raquo; <a href="index.php?t=browse_song&amp;g={$SONG_GENRE|jr_urlencode}">{$SONG_GENRE}</a>
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {if $ORDER == 5}
      <div style="float:left">{jr_lang id="30" default="plays"}: {$SONG_TOTAL_COUNT|jr_number_format|default:"0"}</div>
    {/if}
    {jr_rating_image rating=$SONG_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$SONG_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=song&amp;band_id={$BAND_ID}&amp;song_id={$SONG_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'video' && $ORDER == 6}
  <h3>&raquo; <a href="index.php?t=browse_video&g={$VIDEO_GENRE|jr_urlencode}">{$VIDEO_GENRE}</a></h3><br />


{elseif $MODE == 'video'}
  <td class="body_3" style="text-align:center">{$VIDEO_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$VIDEO_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$VIDEO_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$VIDEO_NAME}</h3>
    {jr_lang id="42" default="video stream" assign="video_s"}
    {if $VIDEO_EXTENSION != 'flv'}
      {jr_lang id="43" default="video download" assign="video_d"}
      {jr_media_access type="image" alt=$video_s media="video_stream" media_url=$VIDEO_PLAY_URL skin="nautica" media_size=$VIDEO_SIZE download=$VIDEO_DOWNLOAD}
      {jr_media_access type="image" alt=$video_d media="video_download" media_url=$VIDEO_DOWNLOAD_URL skin="nautica" media_size=$VIDEO_SIZE download=$VIDEO_DOWNLOAD}
    {else}
      {jr_media_access type="image" alt=$video_s media="video_stream" media_url="`$JAMROOM_URL`/index.php?t=video_player&amp;video_id=`$VIDEO_ID`" skin="nautica" media_size=$VIDEO_SIZE download=$VIDEO_DOWNLOAD onclick="popwin(this.href,'video_player','`$smarty.config.popup_width`','`$smarty.config.popup_height`','yes');return false"}
    {/if}
    {if $VIDEO_ADVISE == 'yes'}
      &nbsp;({jr_lang id="37" default="explicit content"})
    {/if}
    <br />
    &raquo; <a href="{$ARTIST_URL}">{$BAND_NAME}</a><br />
    &raquo; <a href="index.php?t=browse_video&amp;g={$VIDEO_GENRE|jr_urlencode}">{$VIDEO_GENRE}</a>
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$VIDEO_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$VIDEO_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=video&amp;band_id={$BAND_ID}&amp;video_id={$VIDEO_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'photo'}
  <td width="25%" class="body_3" style="text-align:center"> 
    <br />
    <a href="{$PHOTO_IMAGE_URL}&amp;width={$smarty.config.photo_width|default:"480"}" title="{$PHOTO_CAPTION|escape}" rel="lightbox[photo]"><img src="{$PHOTO_IMAGE_URL}&amp;width=96&amp;skin=nautica" alt="{$PHOTO_TITLE}" title="{$PHOTO_TITLE}" width="96" /></a><br />
    {$PHOTO_TITLE}<br /><a href="{$ARTIST_URL}photo.php">{$BAND_NAME}</a></br ><br />
    {jr_rating_image rating=$PHOTO_RATING_AVERAGE image="html" style="font-size:6px;letter-spacing:2px" class="rating" skin="nautica"}
  </td>


{elseif $MODE == 'blog'}
  <td width="100%" colspan="2" class="container">
    {if $BAND_ID == 0}
      <a href="{$MESSAGE_COMMENTS_URL}&amp;tpl_dir=skin&amp;skin=nautica&amp;template=jr_blog_comment.tpl"><h3>{$MESSAGE_TITLE}</h3></a>
    {else}
      <a href="{$MESSAGE_COMMENTS_URL}&amp;template=script_comment.tpl"><h3>{$MESSAGE_TITLE}</h3></a>
    {/if}
  </td>
  </tr><tr>
  <td width="70%" class="title">
    &raquo;
    {if $BAND_ID > 0}
      <a href="{$ARTIST_URL}">{$USER_NICKNAME}</a>
    {else}
      <a href="{$JAMROOM_URL}/">{$USER_NICKNAME}</a>
    {/if}
    {$MESSAGE_TIME|jr_date_format:"date1"}
    {if strlen($MESSAGE_CATEGORY) > 0}
      &nbsp;&raquo;
      {if $BAND_ID > 0}
        <a href="{$ARTIST_URL}Blog_{$MESSAGE_CATEGORY|jr_theme_string}.php">{$MESSAGE_CATEGORY}</a>
      {else}
        <a href="{$JAMROOM_URL}/index.php?t=browse_blog&amp;band_id=0&amp;c={$MESSAGE_CATEGORY|jr_urlencode}">{$MESSAGE_CATEGORY}</a>
      {/if}
    {/if}
  </td>
  <td width="30%" class="title" style="text-align:right">
    {* see if we have comments *}
    {if is_file('comment.php')}
      {* if we have comments, any posts by our "admin" are going to be processed via the template in the skin directory, otherwise we jump over to the profile *}
      {if $BAND_ID == 0}
        &raquo; <a href="{$MESSAGE_COMMENTS_URL}&amp;tpl_dir=skin&amp;skin=nautica&amp;template=jr_blog_comment.tpl">{jr_lang id="62" default="comments"}: {$MESSAGE_COMMENT_COUNT|default:"0"}</a>
      {else}
        &raquo; <a href="{$MESSAGE_COMMENTS_URL}&amp;template=script_comment.tpl">{jr_lang id="62" default="comments"}: {$MESSAGE_COMMENT_COUNT|default:"0"}</a>
      {/if}
    {/if}
  </td>


{elseif $MODE == 'event'}
  <td class="body_3">{$EVENT_RANK}</td>
  <td width="05%" class="container">
    <a href="{$ARTIST_URL}"><img src="{$EVENT_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$EVENT_NAME}" width="64" /></a>
  </td>
  <td class="container">
    <h3>{$EVENT_TITLE}</h3>
    {jr_lang id="68" default="hifi stream" assign="hifi_s"}
    <br />
    &raquo; <a href="{$ARTIST_URL}">{$BAND_NAME}</a><br />
    &raquo; <a href="index.php?t=browse_event&amp;search_area=event_location&amp;search_string={$EVENT_LOCATION|default:"unknown"|jr_urlencode}">{$EVENT_LOCATION}</a><br />
    &raquo; {$EVENT_WDAY_LONG}, {$EVENT_MONTH_LONG} {$EVENT_DAY} {$EVENT_YEAR} @ {$EVENT_HOUR12}:{$EVENT_MINUTE} {$EVENT_AMPM}
  </td>
  <td nowrap="nowrap" class="container" style="text-align:right">
    {* Song Rating and Reviews *}
    {jr_rating_image rating=$EVENT_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$EVENT_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=event&amp;band_id={$BAND_ID}&amp;event_id={$EVENT_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'radio'}
  <td class="body_3" style="text-align:center">{$RADIO_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$RADIO_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$RADIO_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$RADIO_NAME}</h3>
    {if $RADIO_MODE == 'hifi'}
      {jr_lang id="38" default="hifi stream" assign="tag"}
      {assign var="mid" value="hifi_stream"}
    {else}
      {jr_lang id="39" default="lofi stream" assign="tag"}
      {assign var="mid" value="lofi_stream"}
    {/if}
    {jr_media_access type="image" alt=$tag media=$mid media_url=$RADIO_PLAY_URL skin="nautica" media_size="10" download="no"}
    <br />
    &raquo;
    {if $RADIO_BAND_ID > 0}
    <a href="{$ARTIST_URL}">{$BAND_NAME}</a>
    {else}
    <a href="{$JAMROOM_URL}">{jr_lang id="230" default="System Station"}</a>
    {/if}
    <br />
    &raquo; {jr_lang id="219" default="songs in playlist"}: {$RADIO_NUM_SONGS}
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$RADIO_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$RADIO_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=radio&amp;band_id={$BAND_ID}&amp;radio_id={$RADIO_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'channel'}
  <td class="body_3" style="text-align:center">{$CHANNEL_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$CHANNEL_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$CHANNEL_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$CHANNEL_NAME}</h3>
    {jr_lang id="42" default="video stream" assign="tag"}
    {if $CHANNEL_TYPE != 'flv'}
      {jr_media_access type="image" alt=$tag media="video_stream" media_url=$CHANNEL_PLAY_URL skin="nautica" media_size="10" download="no"}
    {else}
      {jr_media_access type="image" alt=$tag media="video_stream" media_url="`$JAMROOM_URL`/index.php?t=video_player&amp;channel_id=`$CHANNEL_ID`" skin="nautica" media_size="10" download="no" onclick="popwin(this.href,'video_player','`$smarty.config.popup_width`','`$smarty.config.popup_height`','yes');return false"}
    {/if}
    <br />
    &raquo;
    {if $CHANNEL_BAND_ID > 0}
    <a href="{$ARTIST_URL}">{$BAND_NAME}</a>
    {else}
    <a href="{$JAMROOM_URL}">{jr_lang id="246" default="System Channel"}</a>
    {/if}
    <br />
    &raquo; {jr_lang id="247" default="videos in channel"}: {$CHANNEL_NUM_VIDEOS}
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$CHANNEL_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$CHANNEL_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=channel&amp;band_id={$BAND_ID}&amp;channel_id={$CHANNEL_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'store'}
  <td class="body_3" style="text-align:center">{$ITEM_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$ITEM_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$ITEM_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$ITEM_NAME}</h3>
    &raquo; <a href="{$ARTIST_URL}">{$BAND_NAME}</a><br />
    &raquo; {$ITEM_CURRENCY_SYMBOL}{$ITEM_PRICE} ({jr_lang id="217" default="handling"}: {$ITEM_CURRENCY_SYMBOL}{$ITEM_HANDLING|default:"0"})<br /><br />
    <form style="margin-bottom: 0px;" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="{$ITEM_EMAIL}">
    <input type="hidden" name="item_name" value="{$ITEM_NAME}">
    <input type="hidden" name="item_number" value="{$ITEM_NUMBER}">
    <input type="hidden" name="amount" value="{$ITEM_COST}">
    <input type="hidden" name="handling" value="{$ITEM_HANDLING}">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="{$ITEM_CCODE}">
    <input type="hidden" name="return" value="{$ARTIST_URL}thank_you.php">
    <input type="hidden" name="cancel_return" value="{$ARTIST_URL}thank_you.php">
    <input type="submit" value="{jr_lang id="218" default="buy now"}" class="jform button">
    </form>
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$ITEM_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$ITEM_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=item&amp;band_id={$BAND_ID}&amp;item_id={$ITEM_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'vault'}
  <td class="body_3" style="text-align:center">{$VAULT_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$VAULT_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$VAULT_NAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3>{$VAULT_NAME}</h3>
    &raquo; <a href="{$ARTIST_URL}">{$BAND_NAME}</a><br />
    {if $VAULT_PRICE > 0}
      &raquo; {$VAULT_CURRENCY_SYMBOL}{$VAULT_PRICE}
    {else}
      &raquo; <b>{jr_lang id="279" default="free!"}</b>
    {/if}
    {* check on our stock level *}
    {if $VAULT_STOCKED > 0}
      &nbsp;
      {if $VAULT_STOCK_SOLD >= $VAULT_STOCKED}
        {assign var="sold_out" value="true"}
        {jr_lang id="277" default="sold out"}*
      {else}
        ({jr_lang id="278" default="in stock"}: {$VAULT_STOCK_LEFT})
      {/if}
    {/if}
    <br /><br />
    {if $VAULT_PRICE > 0}
      <input type="button" value="{jr_lang id="275" default="add to cart"}" class="jform button" onclick="window.location='{$VAULT_CART_ADD_URL}'">
    {else}
      <input type="button" value="{jr_lang id="276" default="download now"}" class="jform button" onclick="location.href='{$VAULT_DOWNLOAD_URL}'">
    {/if}
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$VAULT_RATING_AVERAGE image="html" class="rating" skin="nautica"}
    {if $QUOTA_COMMENTS == 'yes' && is_file('comment.php')}
      <br /><br /><input type="button" value="{jr_lang id="52" default="reviews"}: {$VAULT_COMMENT_COUNT|default:"0"}" class="jform button" onclick="window.location='comment.php?mode=view_comments&amp;type=vault&amp;band_id={$BAND_ID}&amp;vault_id={$VAULT_ID}&amp;template=script_comment.tpl'">
    {/if}
  </td>


{elseif $MODE == 'user'}
  <td class="body_3" style="text-align:center">{$USER_RANK}</td>
  <td width="05%" class="head_1">
    <a href="{$ARTIST_URL}"><img src="{$USER_IMAGE_URL}&amp;width=64&amp;skin=nautica" alt="{$USER_NICKNAME}" width="64" /></a>
  </td>
  <td class="body_3">
    <h3><a href="{$ARTIST_URL}"><img src="{$SKIN_URL}/images/jump.png" alt="{$USER_NICKNAME}" title="{$USER_NICKNAME}"></a></h3>
    <br />
    &raquo; {jr_lang id="249" default="friends"}: {$FAN_COUNT|jr_number_format}
  </td>
  <td nowrap="nowrap" class="body_3" style="text-align:right">
    {jr_rating_image rating=$USER_RATING_AVERAGE image="html" class="rating" skin="nautica"}
  </td>


{elseif $MODE == 'content'}

  <td class="body_3" nowrap="nowrap">{$CONTENT_UPDATED|jr_date_format:"date3"}</td>
  <td class="head_1">{$USER_NICKNAME}</a>
  <td class="body_3">
    <h3><a href="{$JAMROOM_URL}/index.php?c={$CONTENT_NAME}">{$CONTENT_TITLE}</a></h3>
  </td>

{/if}

</tr>
<tr><td colspan="4" class="body_1" style="height:1px"></td></tr>


would appreciate any pointers. actually just had a thought that maybe its due with it referencing the wrong css???


_________________
Nebzine (site was North East Bands Zine)

http://www.myspace.com/wonkothesane0
http://www.reverbnation.com/wonkothesane
Back to top
nebzine



Joined: 11 Oct 2004
Posts: 473
Location: Newcastle UK

Posted: 04/19/12 12:41 

Code
{include file="$SKIN_DIR/jr_overall_header.tpl"}
<body>

<!-- #content: holds all except site footer - causes footer to stick to bottom -->
<div id="content">

  <!-- #header: holds the logo and top links -->
  <div id="header" class="width">

    <img src="{$JAMROOM_URL}/skins/nautica/images/logo.png"  alt="Wonko"/>

    <ul>
      <li><a href="index.php">Home</a></li>
      </ul>

  </div>
  <!-- #header end -->


  <!-- #headerImg: holds the main header image or flash -->
  <div id="headerImg" class="width"></div>



  <!-- #menu: the main large box site menu -->
  <div id="menu" class="width">

    <ul>
    <li>
        <a href="index.php?t=browse_song" onFocus="blur()">
          <span class="title ">Music</span>
          <span class="desc">View songs by recently added</span>        </a>      </li>
      <li>
        <a href="index.php?t=browse_photo" class="forum" onFocus="blur()">
          <span class="title ">Photos</span>
          <span class="desc style3">View photos by recently added</span>        </a>      </li>
        <li>
        <a href="index.php?t=contact" onFocus="blur()">
          <span class="title ">Contact</span>
          <span class="desc">Contact The Artist</span>
        </a>
        </li>
<li>
        <a href="index.php?t=browse_video" onFocus="blur()">
          <span class="title ">Video's</span>
          <span class="desc">A selection of Wonko videos </span>
        </a>
</li>
    </ul>

  </div>
  <!-- #menu end -->



  <!-- #page: holds the page content -->
  <div id="page">


    <!-- #columns: holds the columns of the page -->
    <div id="columns" class="widthPad">


    <!-- Left column -->
    <div class="floatLeft width73">
 <!-- Start Post -->
      <div class="post">

I've played in 2 bands and after a lot of unsuccessful attempts to find the right people to jam with , i now mainly record stuff at home for myself and occasionally jam with others.. Heres a selection of some of the songs I've written over the last eight years.
     


      </div>
      <!-- End Post -->
      <h1>Wonko The Sane<span class="dark"> | Spotlight</span></h1>


      <!-- Start Post -->
      <div class="post">

{* we're going to create a "spotlight" box at the top of each page with a random artist, member, song or video in it *}
{jr_random_number min="1" max="3" assign="choice"}

{if $choice == 1}
  <div class="head_2">{jr_lang id="46" default="song spotlight"}</div>
  <div class="body_2">
  {jr_ranking mode="artist" row_template="spotlight_audio.tpl" cache_time=$smarty.config.spot_cache_time}

{elseif $choice == 2 && is_file('video.php')}
  <div class="head_2">{jr_lang id="47" default="video spotlight"}</div>
  <div class="body_2">
  {jr_ranking mode="video_spotlight" row_template="spotlight_video.tpl" cache_time=$smarty.config.spot_cache_time}

{else}
  <div class="head_2">{jr_lang id="44" default="artist spotlight"}</div>
  <div class="body_2">
  {jr_ranking mode="artist" order="11" show="1" row_template="spotlight_artist.tpl" cache_time=$smarty.config.spot_cache_time}

{/if}


</div>

      </div>
      <!-- End Post -->
 
      <h1>Wonko The Sane<span class="dark"> | chart</span></h1>

      {* make sure we get a valid "chart days" setting - default will be 1 week *}
{if !is_numeric($d)}
  {assign var="d" value="7"}
{/if}

<div class="dark">
  {jr_lang id="26" default="music charts"} |
  {if $d == 7}
    {jr_lang id="59" default="1 week"} | <a href="index.php?t=chart_audio&amp;d=30">{jr_lang id="60" default="1 month"} </a> | <a href="index.php?t=chart_audio&amp;d=1000">{jr_lang id="61" default="all time"}</a>
  {elseif $d == 30}
    <a href="index.php?t=chart_audio&amp;d=7">{jr_lang id="59" default="1 week"}</a> | {jr_lang id="60" default="1 month"} | <a href="index.php?t=chart_audio&amp;d=1000">{jr_lang id="61" default="all time"}</a>
  {else}
    <a href="index.php?t=chart_audio&amp;d=7">{jr_lang id="59" default="1 week"}</a> | <a href="index.php?t=chart_audio&amp;d=30">{jr_lang id="60" default="1 month"}</a> | {jr_lang id="61" default="all time"}
  {/if}
</div>
<div class="dark">
  <table width="100%" cellspacing="2" cellpadding="2" border="1">
    {jr_chart type="audio" chart_days=$d showall="1" show="10" header_template="" row_template="chart_audio_row.tpl" footer_template="chart_footer.tpl" pagebreak=$smarty.config.pagebreak pagenum=$p}
  </table>
</div>


     <!-- further heading could go here-->
   
    </div>
    <!-- Left column end -->


   
    <!-- Right link column -->
    <div class="floatRight width25 lightBlueBg horzPad">

      <h2>Wonko The Sane<span class="dark"> | Blog</span></h2>

      <ul class="submenu1">
        <p>{jr_ranking mode="blog" show="5" band_id="4" row_template="jr_blog_entry.tpl"}</p>
      </ul>


      <h3>Wonko The Sane<span class="dark"> | stats</span></h3>

      <ul class="submenu2">
            {jr_lang id="74" default="Statistics"}<p></p>
    {jr_lang id="70" default="visits"}: {jr_counts type="page_views"}<br />
    {jr_lang id="71" default="plays"}: {jr_counts type="plays" }<br />
    {jr_lang id="72" default="streams"}: {jr_counts type="streams" }<br />
    {jr_lang id="73" default="downloads"}: {jr_counts type="downloads""}
     </ul>

   

      <h3>Who is<span class="dark"> | Online</span></h3>

      <ul class="submenu2">
     <p><img src="{$JAMROOM_URL}/skins/nautica/images/online.gif" alt="Image" title="Image" class="image" />{jr_whos_online template="users_online.tpl" cache_time=$smarty.config.online_cache_time}
</p>
       
     <ul> </ul></div>




    </div>
    <!-- Right links column end -->



    </div>
    <!-- #columns end -->

  </div>
  <!-- #page end -->

</div>
<!-- #content end -->
{include file="$SKIN_DIR/jr_overall_footer.tpl"}



_________________
Nebzine (site was North East Bands Zine)

http://www.myspace.com/wonkothesane0
http://www.reverbnation.com/wonkothesane
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 04/19/12 19:42 
What files are these?

one obvious issue is:


Code
{elseif $MODE == 'content'}

  <td class="body_3" nowrap="nowrap">{$CONTENT_UPDATED|jr_date_format:"date3"}</td>
  <td class="head_1">{$USER_NICKNAME}</a>
  <td class="body_3">


That second line of td's is not closed. </td>


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 04/19/12 19:44 
The obvious issue in the bottom set of code is this


Code

      <ul class="submenu2">
            {jr_lang id="74" default="Statistics"}<p></p>
    {jr_lang id="70" default="visits"}: {jr_counts type="page_views"}<br />
    {jr_lang id="71" default="plays"}: {jr_counts type="plays" }<br />
    {jr_lang id="72" default="streams"}: {jr_counts type="streams" }<br />
    {jr_lang id="73" default="downloads"}: {jr_counts type="downloads""}
     </ul>


you {jr_counts type="downloads""} has 2 closing ". change that to {jr_counts type="downloads"}

then we can start looking for what the issue is.

What are you expecting to see?

-- edit --

Code
      <ul class="submenu1">
        <p>{jr_ranking mode="blog" show="5" band_id="4" row_template="jr_blog_entry.tpl"}</p>
      </ul>


Those P tags dont look like they are in the right location.

-- edit edit --

Code
               <h3>Who is<span class="dark"> | Online</span></h3>

                        <ul class="submenu2">
                            <p><img src="{$JAMROOM_URL}/skins/nautica/images/online.gif" alt="Image" title="Image" class="image"/>{jr_whos_online template="users_online.tpl" cache_time=$smarty.config.online_cache_time}
                            </p>

                            <ul></ul>


That <ul></ul> looks weird too. where is the closing </ul> for the unordered list starting above it. and the p's instead of LI's


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
nebzine



Joined: 11 Oct 2004
Posts: 473
Location: Newcastle UK

Posted: 04/25/12 05:27 
thanks - ive corrected the code as advised. i realised that the problem i was having (and im kicking myself now) is that my sandbox has php 5.3.x and i am using jamroom 3 , so need php 5.2.x for it to work properly - ive now downloaded and have started to configure a wamp environment so i can continue to build this skin and theme locally and so far the ranking calls are working correctly for spotlight etc. (still a few config problems to sort out , but better than before). thanks for your attention to this code.


_________________
Nebzine (site was North East Bands Zine)

http://www.myspace.com/wonkothesane0
http://www.reverbnation.com/wonkothesane
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.