SMF Ads Support Forum
September 09, 2010, 12:20:30 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Help keep this project going by donating.
 
   Home   Help Downloads Login Register  
Your Ad Here
Pages: [1]   Go Down
  Print  
Author Topic: Can't get ads in Duruu theme  (Read 671 times)
0 Members and 1 Guest are viewing this topic.
merajc
Newbie
*
Offline Offline

Posts: 7


Email
« on: February 08, 2010, 04:00:26 am »

I tried the guide here at the forum, but I get the following error:
Code:
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
Logged
vbgamer45
Owner
Jr. Member
*
Offline Offline

Posts: 46


« Reply #1 on: February 08, 2010, 08:31:02 am »

Attach your index.template.php
Logged
merajc
Newbie
*
Offline Offline

Posts: 7


Email
« Reply #2 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  Tongue
Logged
vbgamer45
Owner
Jr. Member
*
Offline Offline

Posts: 46


« Reply #3 on: February 08, 2010, 08:41:19 am »

Attach the one that is broken
Logged
merajc
Newbie
*
Offline Offline

Posts: 7


Email
« Reply #4 on: February 08, 2010, 09:11:21 am »

Attached. Thanks!
Logged
ccbtimewiz
Sr. Member
****
Offline Offline

Posts: 326



WWW
« Reply #5 on: February 09, 2010, 12:02:22 pm »

Find:
Code:
//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:
//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">
Logged
merajc
Newbie
*
Offline Offline

Posts: 7


Email
« Reply #6 on: February 09, 2010, 12:23:22 pm »

Got it working!  Grin

Now let me just test this. Thanks!
« Last Edit: February 09, 2010, 12:25:25 pm by merajc » Logged
SMF Ads Support Forum
   

Your Ad Here
 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
SMFAds for Free Forums