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:
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:
//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:
//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!