SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: Learjet45 on August 30, 2009, 03:52:05 pm

Title: Issue with PS Black Theme
Post by: Learjet45 on August 30, 2009, 03:52:05 pm
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:
Code: [Select]
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.
Title: Re: Issue with PS Black Theme
Post by: pmf41 on August 30, 2009, 08:58:09 pm
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
Code: [Select]
function template_menu()to
Code: [Select]
function template_menu();