Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Theme logo Problem

Asked Modified Viewed 1,572 times
C
cleptostatus101
C
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

Ok, Installed a new theme Gen-X, when I run it it seems fine but the banner dosn't run i get this error when i even try to view the image through the URL i get this error


Parse error: syntax error, unexpected T_STRING in /usr/local/djcsites/dajoob.com/cleptonet/themes/Gen-X/images/logo.jpg on line 42angry

this is the theme code:|

<?

/************************/
/* Theme Settings */
/************************/

$body_text = "#D7DCE9";
$body_bg = "#34353B";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table class='bodyline' width='$theme_width' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
echo "<tr><td align='center' valign='top'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='60%' background='".THEME."images/cellpic_bkg.jpg' height='110'><a href='".BASEDIR."index.php'><img src='".THEME."images/logo.jpg' alt='' title='".$settings[sitename]."'></td>";
echo "<td width='40%' background='".THEME."images/cellpic_bkg.jpg' height='110'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order"wink;
if (dbrows($result) != 0) {
echo "<td class='cellpic'>\n";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---"wink {
if ($i != 0) { echo " <img src='".THEME."images/divider.gif' alt=''> "; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : ""wink;
if (strstr($data['link_url'], "http://"wink || strstr($data['link_url'], "https://"wink) {
echo "<a href='".$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target."'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : ""wink."</td>\n";
echo "<td align='right' class='cellpic' nowrap><strong>".ucwords(showdate($settings['subheaderdate'], time()))."</strong>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
echo "<tr valign='top'>";
echo "<td valign='middle' align='right'>";
echo "<table width='100%' cellpadding='4' bgcolor='#34353B' cellspacing='0' border='0'>";
}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "</tr>\n</table>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
echo "<td>".stripslashes($settings['footer'])."<br>";
echo "<tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='30'>";
echo "<tr><td class='footer' valign='middle' width='35%'>";
if ($license == false) {
echo "Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' alt='PHPFusion' style='vertical-align:middle;'></a> v".$settings['version']." © 2003-2005";
}
echo "</td>";
echo "<td class='footer' align='center' width='22%'>";
echo "The <span class='stats'>Gen-X</span> Theme by: <a target='_blank' href='http://phpfusion.org'><img alt='PHPFusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:middle;'></a></td>";
echo "<td class='footer' align='right' width='33%'><span class='stats'><b>".$settings['counter']."</b></span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n"wink;
echo "</td></tr></table></center></table></table></table>\n";
}


function render_news($subject, $news, $info) {

global $locale;

echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : ""wink."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']." ";
echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {

global $locale;

echo "<table style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic3.gif' height='24'><img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$subject</font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #191928'>";
echo "<tr><td background='".THEME."images/cellpic2.gif' bgcolor='#34353B' height='22'><font class='head-title'> $title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}

// Close table end
function closetable() {
echo "</td></tr></table>\n";
}

function openside($title) {

echo "<table style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img src='".THEME."images/small_arrow.gif' alt='' hspace='3'><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body' width='100%'>";
}

function closeside() {
echo "</td></tr></table><table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='100%' background='".THEME."images/panfoot.gif'> </td>
</tr>
</table>";
tablebreak();
}

function opensidex($title,$open="on"wink {

$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";

echo "<table border='0' style='border: 1px solid #191928' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='right' src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname'wink\"><font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#191928' class='side-body'width='100%' '".THEME."images/back1.gif'>";
echo "<div id='box_$boxname'".($open=="off"?" style='display:none'":""wink.">\n";
}


function closesidex() {

echo "</div></td></tr></table>";
tablebreak();
}

// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Edited by cleptostatus101 on 14-04-2006 20:49,
0 replies

1 post

R
Reflectoman
R
------------------------------------------------
Adnan Ahmed Online
File Hosting | Image Hosting | Free SMS
  • Member, joined since
  • Contributed 176 posts on the community forums.
  • Started 9 threads in the forums
answered
Member

i dont know about the others, but i'd be glad to try to help, but i will not count the lines to find line 42 .. please identify it by making it red or something.
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet