SMF Ads Support Forum

Support => General Support => Topic started by: kenang82 on April 05, 2007, 11:40:23 PM

Title: Ads duplicate
Post by: kenang82 on April 05, 2007, 11:40:23 PM
I installed ad management mod in my smf1.1.2. However, whnever I add a da code, the ads duplicate. I have to manually remove the duplicate from index.template.php. Why is this so? How can I cure the problem?
Title: Re: Ads duplicate
Post by: bigguy on April 09, 2007, 10:17:31 PM
Sounds like the code is in twice somewhere. You will have to go over the template files to find out where and remove the duplicate code.
Title: Re: Ads duplicate
Post by: kenang82 on April 10, 2007, 11:23:50 AM
Quote from: bigguy on April 09, 2007, 10:17:31 PM
Sounds like the code is in twice somewhere. You will have to go over the template files to find out where and remove the duplicate code.
That is what I did. But is there anyway i can "cure" the problem without having need to manually delete the ads codes?
Title: Re: Ads duplicate
Post by: bigguy on April 10, 2007, 08:01:52 PM
Check the index.php file for duplicate code.
Title: Re: Ads duplicate
Post by: kenang82 on April 10, 2007, 10:18:51 PM
Quote from: bigguy on April 10, 2007, 08:01:52 PM
Check the index.php file for duplicate code.

<?php

// This file is here solely to protect your Themes directory.

// Look for Settings.php....
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
{
   // Found it!
   require(dirname(dirname(__FILE__)) . '/Settings.php');
   header('Location: ' . $boardurl);
}
// Can't find it... just forget it.
else
   exit;

?>

No duplicate here
Title: Re: Ads duplicate
Post by: bigguy on April 11, 2007, 09:57:14 AM
Not the one in the themes directory, in the root of SMF.
Title: Re: Ads duplicate
Post by: kenang82 on April 11, 2007, 10:04:36 AM
Quote from: bigguy on April 11, 2007, 09:57:14 AM
Not the one in the themes directory, in the root of SMF.

IT WORKS!!!!! THANK YOU VERY MUCH!
Title: Re: Ads duplicate
Post by: bigguy on April 16, 2007, 07:56:42 PM
Your welcome. :)