discopimp
Joined: 10 Dec 2004
Posts: 16
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"> {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">
"{SONG_NAME}"
<?php if ({QUOTA_RATE} == 'yes') { ?>
<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"> ( 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> </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">
"01"
<?php if (yes == 'yes') { ?>
<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"> </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">
"02"
<?php if (yes == 'yes') { ?>
<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"> </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">
"03"
<?php if (yes == 'yes') { ?>
<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"> </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">
"04"
<?php if (yes == 'yes') { ?>
<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"> </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">
"05"
<?php if (yes == 'yes') { ?>
<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"> </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 ....
Back to top
Brian
Jamroom Team
Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA
Back to top
cHrOnO
Joined: 15 Jan 2005
Posts: 13
Back to top
cHrOnO
Joined: 15 Jan 2005
Posts: 13
Back to top
jackdaris
Joined: 16 Oct 2004
Posts: 371
Location: Star Ship Enterprise 2693
Back to top