Coinbase

Author Topic: My Ad Mod created duple ad  (Read 4236 times)

0 Members and 1 Guest are viewing this topic.

Offline sasawawa

  • Newbie
  • *
  • Posts: 8
My Ad Mod created duple ad
« on: April 17, 2007, 11:00:46 pm »
Yesterday my hosting has problem, i lost my data, have to reinstall Ad Mod. But after that when i add a new ad, i got two same ad in my Ad Management Zone.

For example:

Edit Ads
Name                               Modify
Rotating Banner             Modify
Flexible ad                 Modify
160X600 skyscraper ad    Modify
Rotating Banner             Modify
Flexible ad                       Modify
160X600 skyscraper ad     Modify

You can see every ad shows two ,in fact, i only add once.

And more, display ads on the bottom of the page and within posts is fine, works well, but when i chose that "display ads on every page as a tower on the left side "option, i got two same ads( see my screenshot) ,when i chose" Display ads on every page as a tower on the right side" , Ad Mod works fine.

Strange, :'(

Any one can point out what's wrong ?

Thanks a bunch.

Regards


Offline sasawawa

  • Newbie
  • *
  • Posts: 8
Re: My Ad Mod created duple ad
« Reply #1 on: April 17, 2007, 11:03:40 pm »
Btw, my forum  is  using SMF 1.1.2 version, Ad Mod  v2.3  :'(

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: My Ad Mod created duple ad
« Reply #2 on: April 26, 2007, 09:17:04 am »
The edits have been done twice. Look in the 4 template files for duplicate code from the ad mod and remove it from them and possibly from the index.php file.

Offline sasawawa

  • Newbie
  • *
  • Posts: 8
Re: My Ad Mod created duple ad
« Reply #3 on: May 10, 2007, 08:30:46 pm »


The edits have been done twice. Look in the 4 template files for duplicate code from the ad mod and remove it from them and possibly from the index.php file.
Thanks,Admin
 :'(

I didn't find dupicate code of the ad mod directory ,just uploaded the ad mod files once again, covered the old files, still doesn't work, this is the index.php file content:

Code: [Select]
<?php

// This file is here solely to protect your Packages 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;

?>


Moreover, after i added ads( ad mod still created duple ad ) ,only admin can see the ad, the ad is not available for members  :(
Could you help me fix out the problem?

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: My Ad Mod created duple ad
« Reply #4 on: May 13, 2007, 10:34:09 am »
You need to look in the index.php file in the ROOT of your SMF for duplicate code not in the index.php of the theme you use. Set permissions for each membergroup so they can see the ads.

Offline rmg

  • Newbie
  • *
  • Posts: 7
Re: My Ad Mod created duple ad
« Reply #5 on: June 08, 2007, 12:00:09 pm »
You need to look in the index.php file in the ROOT of your SMF for duplicate code not in the index.php of the theme you use. Set permissions for each membergroup so they can see the ads.

I am not a programmer... So when I checked the index.php on the ROOT of my smf, I got shocked lol the codes are screwed up. I mean, the coding, it was everywhere, no space etc..

do you have any idea where can we locate the "duplicate code" of ad mod?

I will very appreciate your help :)

EDIT : I already edited the index.php file, and was able to removed those duplicate ads..
I used to have this doubled on my Ad management Option :
Name    Modify
Adsense1    Modify

And as you can see, I was able to delete the other one, but when I tried to put the ads displayed on the index, I still see double  :-\

Help...
« Last Edit: June 08, 2007, 12:38:49 pm by rmg »

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: My Ad Mod created duple ad
« Reply #6 on: June 12, 2007, 05:28:45 pm »
This means that there is duplicate code in the template files. Look for it in the 4 template files mentioned in the stickie in the Theme Support board.

Offline momsandtots

  • Newbie
  • *
  • Posts: 6
Re: My Ad Mod created duple ad
« Reply #7 on: June 20, 2007, 10:11:02 am »
Here are my 4 files. Thank you Bigguy for helping me with this.

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: My Ad Mod created duple ad
« Reply #8 on: June 24, 2007, 10:54:16 am »
@ momsandtots: Sorry for the wait. I looked at all your files and the only one that had duplicate code was the index.php file. I have removed it now and if you re-upload it it should work properly. :)

SMF Ads Support Forum

Re: My Ad Mod created duple ad
« Reply #8 on: June 24, 2007, 10:54:16 am »
.

 

.