News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Can't get ads in Duruu theme

Started by merajc, February 08, 2010, 04:00:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

merajc

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

vbgamer45

Like what I do please support me on https://www.patreon.com/vbgamer45

merajc

I attached the original index.template.php because I'm sure the one I modified is a mess  :P

vbgamer45

Like what I do please support me on https://www.patreon.com/vbgamer45

merajc


ccbtimewiz

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">

merajc

#6
Got it working!  ;D

Now let me just test this. Thanks!