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?
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.
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?
Check the index.php file for duplicate code.
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
Not the one in the themes directory, in the root of SMF.
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!
Your welcome. :)