News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Issue with PS Black Theme

Started by Learjet45, August 30, 2009, 04:52:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Learjet45

I just installed the Ad Management Mod on my SMF 1.1.10 install. I think I made all the edits to the index.template.php theme right, but apparently not. I get this error:

Parse error: syntax error, unexpected T_IF, expecting '{' in .../Themes/Ps_Black/index.template.php on line 400
echo ' | ';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()

if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads = show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">', $ads['type']==0 ? $ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads = show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}


For the time being, I replaced the files with the old versions.

pmf41

#1
http://www.smfads.com/forums/index.php?topic=2390.0 the last post has the files already edited if you want to fix it yourself change function template_menu()to function template_menu();