Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
User Site Design, Integration and Customization:
Please Help: Need songs listed side by side / where to edit?
discopimp



Joined: 10 Dec 2004
Posts: 16

Posted: 12/27/04 06:14 
me again,

i installed a fresh copy of jamroom on another server, uploaded 5 songs but didn't change anything else ... the system is working ok until i make the changes ...

when i change the code of the song_footer.tpl and song_header.tpl with the mods you suggest i still get the same error than before:


Quote:
Parse error: parse error, unexpected T_STRING in .../bandsites/artists/2/index.php on line 91


it's strange that it works on your system and not on mine, even on a fresh copy ???

Back to top
discopimp



Joined: 10 Dec 2004
Posts: 16

Posted: 12/27/04 06:33 
to be sure i did everything right, here is the code from the various files:

song_footer.tpl:

Quote:
</td>
<td width=20% class="thMusicI">&nbsp;{SONG_ADVISE_IMAGE}</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">{SONG_GENRE}</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR">{SONG_ALBUM}</td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR">{SONG_LABEL}</td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR">{SONG_CREDITS}</td></tr>

</table>
</td>
</tr>


</table>
</td>
<?php
if (({SONG_NUMBER} % 2) == 0)
{
     echo '</tr><tr>';
}
?>


song_header.tpl:

Quote:
<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;{SONG_NAME}&quot;
<?php if ({QUOTA_RATE} == 'yes') { ?>
&nbsp; &nbsp; <i><a href="{SONG_RATING_FORM}" {POPUP_JAVALINK}>Rate This Song!</a> Current Rating: {SONG_RATING_AVG}</i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">{SONG_LENGTH}</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src="{SONG_IMAGE_GD}" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">


and the resulting index.php after i genrated the HTML:

Quote:

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html">
<meta name="Generator" content="Jamroom 2.14">
<title>(test)-(music)</title>
<link rel="stylesheet" type="text/css" href=".../jamroom/themes/jm_cobalt_2.1/page.css">
<script language="javascript">
var win = null;
function popwin(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
</head>

<body class="thBody">
<center>

<table class="thTable">
<tr>
<td width=75% class="thHeader">&nbsp;( test )</td>
<td width=25% class="thHeader" style="text-align: right"><span style="font-size: 11px;">Total Plays: <?php @include(".../jamroom/counter.php?counter=song&band_id=1&song_id=1&mode=total_count"); ?></span>&nbsp;</td>
</tr>
<tr><td width=100% colspan=2 class="thHeader"><img src=".../jamroom/image.php?band_id=1&mode=band_image&width=800&height=200" border=0 width=800 height=200></td></tr>
<tr><td width=100% colspan=2 class="thBandInfo"></td></tr>

<tr><td width=100% colspan=2 class="thHeader">
<table width=100% cellpadding=0 cellspacing=0 class="thMsgTable"><tr>
<td class="thCatHead">( m u s i c )</td>
<?php if ('yes' == 'yes') { ?><td class="thCatHead"><a href="message.php">( m e s s a g e s )</a></td><?php } ?>
<?php if ('yes' == 'yes') { ?><td class="thCatHead"><a href="store.php">( s t o r e )</a></td><?php } ?>
<?php if ('yes' == 'yes') { ?><td class="thCatHead"><a href="events.php">( e v e n t s )</a></td><?php } ?>
<?php if ('yes' == 'yes') { ?><td class="thCatHead"><a href="radio.php">( r a d i o )</a></td><?php } ?>
<td class="thCatHead"><a href="about.php">( a b o u t )</a></td>
</tr></table>
</td></tr>
<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;01&quot;
<?php if (yes == 'yes') { ?>
&nbsp; &nbsp; <i><a href=".../jamroom/rating.php?mode=rate_song&band_id=1&song_id=1" onclick="popwin(this.href,'name','400','500','yes');return false">Rate This Song!</a> Current Rating: <?php @include(".../jamroom/rating.php?mode=song_average&band_id=1&song_id=1"); ?></i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">00:15</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src=".../jamroom/image.php?band_id=1&song_id=1&mode=song_image&width=120&height=120" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">
<a href=".../jamroom/play.php?band_id=1&song_id=1&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/play_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/play.php?band_id=1&song_id=1&mode=song_hifi">play hi-bitrate</a> (mp3) (broadband)<br>
<a href=".../jamroom/download.php?band_id=1&song_id=1&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/down_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/download.php?band_id=1&song_id=1&mode=song_hifi">download hi-bitrate</a> (121.35 KB)<br>
</td>
<td width=20% class="thMusicI">&nbsp;</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">Abstract</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR"></td></tr>
</table>
</td>
</tr>


</table>
</td>
<?php
if ((1 % 2) == 0)
{
     echo '</tr><tr>';
}
?>

<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;02&quot;
<?php if (yes == 'yes') { ?>
&nbsp; &nbsp; <i><a href=".../jamroom/rating.php?mode=rate_song&band_id=1&song_id=2" onclick="popwin(this.href,'name','400','500','yes');return false">Rate This Song!</a> Current Rating: <?php @include(".../jamroom/rating.php?mode=song_average&band_id=1&song_id=2"); ?></i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">00:10</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src=".../jamroom/image.php?band_id=1&song_id=2&mode=song_image&width=120&height=120" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">
<a href=".../jamroom/play.php?band_id=1&song_id=2&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/play_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/play.php?band_id=1&song_id=2&mode=song_hifi">play hi-bitrate</a> (mp3) (broadband)<br>
<a href=".../jamroom/download.php?band_id=1&song_id=2&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/down_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/download.php?band_id=1&song_id=2&mode=song_hifi">download hi-bitrate</a> (78.29 KB)<br>
</td>
<td width=20% class="thMusicI">&nbsp;</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">Abstract</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR"></td></tr>
</table>
</td>
</tr>


</table>
</td>
<?php
if ((2 % 2) == 0)
{
     echo '</tr><tr>';
}
?>

<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;03&quot;
<?php if (yes == 'yes') { ?>
&nbsp; &nbsp; <i><a href=".../jamroom/rating.php?mode=rate_song&band_id=1&song_id=3" onclick="popwin(this.href,'name','400','500','yes');return false">Rate This Song!</a> Current Rating: <?php @include(".../jamroom/rating.php?mode=song_average&band_id=1&song_id=3"); ?></i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">00:15</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src=".../jamroom/image.php?band_id=1&song_id=3&mode=song_image&width=120&height=120" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">
<a href=".../jamroom/play.php?band_id=1&song_id=3&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/play_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/play.php?band_id=1&song_id=3&mode=song_hifi">play hi-bitrate</a> (mp3) (broadband)<br>
<a href=".../jamroom/download.php?band_id=1&song_id=3&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/down_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/download.php?band_id=1&song_id=3&mode=song_hifi">download hi-bitrate</a> (124.41 KB)<br>
</td>
<td width=20% class="thMusicI">&nbsp;</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">Abstract</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR"></td></tr>
</table>
</td>
</tr>


</table>
</td>
<?php
if ((3 % 2) == 0)
{
     echo '</tr><tr>';
}
?>

<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;04&quot;
<?php if (yes == 'yes') { ?>
&nbsp; &nbsp; <i><a href=".../jamroom/rating.php?mode=rate_song&band_id=1&song_id=4" onclick="popwin(this.href,'name','400','500','yes');return false">Rate This Song!</a> Current Rating: <?php @include(".../jamroom/rating.php?mode=song_average&band_id=1&song_id=4"); ?></i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">00:07</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src=".../jamroom/image.php?band_id=1&song_id=4&mode=song_image&width=120&height=120" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">
<a href=".../jamroom/play.php?band_id=1&song_id=4&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/play_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/play.php?band_id=1&song_id=4&mode=song_hifi">play hi-bitrate</a> (mp3) (broadband)<br>
<a href=".../jamroom/download.php?band_id=1&song_id=4&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/down_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/download.php?band_id=1&song_id=4&mode=song_hifi">download hi-bitrate</a> (59.51 KB)<br>
</td>
<td width=20% class="thMusicI">&nbsp;</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">Abstract</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR"></td></tr>
</table>
</td>
</tr>


</table>
</td>
<?php
if ((4 % 2) == 0)
{
     echo '</tr><tr>';
}
?>

<td colspan=2 width=100%>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td class="thMusicH">
&quot;05&quot;
<?php if (yes == 'yes') { ?>
&nbsp; &nbsp; <i><a href=".../jamroom/rating.php?mode=rate_song&band_id=1&song_id=5" onclick="popwin(this.href,'name','400','500','yes');return false">Rate This Song!</a> Current Rating: <?php @include(".../jamroom/rating.php?mode=song_average&band_id=1&song_id=5"); ?></i>
<?php } ?>
</td>
<td class="thMusicH"><span style="text-align: right">00:15</span></td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=0 cellspacing=0 border=0>

<tr>
<td width=02% class="thMusicI"><img src=".../jamroom/image.php?band_id=1&song_id=5&mode=song_image&width=120&height=120" border=0 height=120 width=120></td>
<td width=78% class="thMusicP">
<a href=".../jamroom/play.php?band_id=1&song_id=5&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/play_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/play.php?band_id=1&song_id=5&mode=song_hifi">play hi-bitrate</a> (mp3) (broadband)<br>
<a href=".../jamroom/download.php?band_id=1&song_id=5&mode=song_hifi"><img src=".../jamroom/themes/jm_cobalt_2.1/images/down_hifi.gif" align=absmiddle border=0></a>
<a href=".../jamroom/download.php?band_id=1&song_id=5&mode=song_hifi">download hi-bitrate</a> (119.51 KB)<br>
</td>
<td width=20% class="thMusicI">&nbsp;</td>
</tr>

</table>
</td>
</tr>

<tr>
<td width=100% colspan=2>
<table width=100% cellpadding=1 cellspacing=2 border=0>
<tr><td class="thMusicL">genre</td><td class="thMusicR">Abstract</td></tr>
<tr><td class="thMusicL">album</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">label</td><td class="thMusicR"></td></tr>
<tr><td class="thMusicL">credits</td><td class="thMusicR"></td></tr>
</table>
</td>
</tr>


</table>
</td>
<?php
if ((5 % 2) == 0)
{
     echo '</tr><tr>';
}
?>

</tr>
</table>

<table class="thTable">
<tr>
<td class="thHeader">
<table width=100% cellpadding=0 cellspacing=0 class="thMsgTable"><tr>
<td class="thFooterL"><a href="http://www.jamroom.net" target=_blank><img src=".../jamroom/themes/jm_cobalt_2.1/images/powered.png" width=102 height=47 border=0 alt="this site is Powered by Jamroom - the Musicians Website Manager" title="this site is Powered by Jamroom - the Musicians Website Manager"></a></td>
<td class="thFooterR">updated: 27 Dec 2004 01:20 PM<br>visitor: <?php @include(".../jamroom/counter.php?counter=page&band_id=1&filename=index.php"); ?></td>
</tr></table></td>
</tr>
</table>
</td>
</tr>

</table>

</body>
</html>


NOTE i replaced the path to my folder with a .../ in this post, just for privacy, the original code has the right path in it ...

Back to top
discopimp



Joined: 10 Dec 2004
Posts: 16

Posted: 12/27/04 06:47 
in my ongoing quest to get this to work, i came across the following post in a php forum. although it is not related to jamroom, maybe this is why it doesn't work ...


Quote:
If you embed the editor within PHP page, chances are that you'll get a PHP error like PARSE ERROR, unexpected T-STRING at.... This problem occurs if the short tags notation of PHP is enabled, allowing you to use the notation for PHP script tags. Unfortunately the directive necessary to embed the component will also be parsed as code, thus producing the error above.


To solve this problem, you'll have to rewrite the import tag as follows:

<? echo '<' . '?import namespace="AI" implementation="aiEditor.htc" />' ?>


Even more of a bother is the fact that some servers seem to parse html and other files as PHP as well, so you'll have to rewrite the import statement in the same way in the aiTable.html, aiImage.html and aiLink.html files as well.


could it be that this is a similar problem ? If so, should i get my provider to check the php settings or adapt the code ?

just a longshot .... Confused

Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 12/27/04 08:44 

discopimp:


could it be that this is a similar problem ? If so, should i get my provider to check the php settings or adapt the code ?

just a longshot .... Confused


that's not the reason for the error (at least I don't believe so).

I just sent you an emal with a modified jm_cobalt_2.2 theme that does what you are looking for. Let me know if that helps out.

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
cHrOnO



Joined: 15 Jan 2005
Posts: 13

Posted: 01/18/05 01:31 
Bigguy, could you send me that 2?

Thank you!

Back to top
cHrOnO



Joined: 15 Jan 2005
Posts: 13

Posted: 01/19/05 14:08 
Thanks Brian. I got it! Wink

Back to top
jackdaris



Joined: 16 Oct 2004
Posts: 371
Location: Star Ship Enterprise 2693

Posted: 03/06/05 14:16 

bigguy:

discopimp:


could it be that this is a similar problem ? If so, should i get my provider to check the php settings or adapt the code ?

just a longshot .... Confused


that's not the reason for the error (at least I don't believe so).

I just sent you an emal with a modified jm_cobalt_2.2 theme that does what you are looking for. Let me know if that helps out.

Thanks!

- Brian


Hi Brian,

Can I still get the modified theme.

Jack

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

< Previous12
 
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.