SMF Ads Support Forum

Themes/Language => Theme Support => Topic started by: merajc on February 08, 2010, 04:00:26 am

Title: Can't get ads in Duruu theme
Post by: merajc on February 08, 2010, 04:00:26 am
I tried the guide here at the forum, but I get the following error:
Code: [Select]
Template Parse Error!

There was a problem loading the /Themes/Duruu/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'

Please do help.

Regards
Title: Re: Can't get ads in Duruu theme
Post by: vbgamer45 on February 08, 2010, 08:31:02 am
Attach your index.template.php
Title: Re: Can't get ads in Duruu theme
Post by: merajc on February 08, 2010, 08:38:28 am
I attached the original index.template.php because I'm sure the one I modified is a mess  :P
Title: Re: Can't get ads in Duruu theme
Post by: vbgamer45 on February 08, 2010, 08:41:19 am
Attach the one that is broken
Title: Re: Can't get ads in Duruu theme
Post by: merajc on February 08, 2010, 09:11:21 am
Attached. Thanks!
Title: Re: Can't get ads in Duruu theme
Post by: ccbtimewiz on February 09, 2010, 12:02:22 pm
Find:
Code: [Select]
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
<div id="solkose">

Replace with:
Code: [Select]
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads = show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}
echo '
<div id="solkose">
Title: Re: Can't get ads in Duruu theme
Post by: merajc on February 09, 2010, 12:23:22 pm
Got it working!  ;D

Now let me just test this. Thanks!