News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Ads duplicate

Started by kenang82, April 05, 2007, 11:40:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kenang82

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?

bigguy

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.

kenang82

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?

bigguy

Check the index.php file for duplicate code.

kenang82

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

bigguy

Not the one in the themes directory, in the root of SMF.

kenang82

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!

bigguy