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 show up twice

Started by thinker, July 01, 2007, 08:02:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thinker

Everytime I post an ad, it shows up twice both in the "Edit Ad section" and on my website http://www.mitraz.com/forum/index.php. I found several posts on this same issue but could not locate an answer. Please help. Thanks.

thinker

Just realized-in addition to my earlier problem, ads only shows up under admin login and not guest or a regular subscriber!!!

ITA003

Do you have Enable the permission in:

Admin -> Permission -> group - Enable ads?

Where group are the group you want show the ads!

thinker

#3
Thanks. This solves the second problem. But I am down to 1. It enters the same add twice side by side on it's own and when remove any one of them bothof them are removed at the same time. I tried different ways. I am not clicking twice. Ads are showing up twice.

ITA003

Look for duplicated code in
index.template.php (in your theme directory)

thinker

Thanks ITA003. I tried removing the duplicates but it's breaking my forum. So I gave up. This mod requires a bug fix. Have you tried this mod in your forum. What's your forum?

MarcBkk

#6
Hi Thinker. I was just about to post something on this same problem and the I saw your post just today on the subject already. I clicked on your link and the ads do not seem to be repeating so it seems you got the problem solved?

Anyway, I got the same problem with ads duplicating, but I don't have a permissions problem like you did. I am running it on a test board here where you can see the add also duplicating:

http://www.photographythailand.com/Forum/index.php?board=31.0

I am not sure how the theme would have gotten duplicate code embedded like ITA003 suggested, when we are both using the default SMF theme and not a 3rd party theme.

If you have managed to get it sorted out, then I would appreciate hearing how you did it.

Many thanks.

Marc

bigguy

There are duplicate ad codes in your template files and/or in the index.php file in the ROOT of your SMF install.

MarcBkk

Thanks. Can you tell me what the search code in the root index.php file might look like so I can search and remove it? My guess it is not in the tempalte file since it seems to occur with all templates in fact.

bigguy

Look at the "Theme support" board at the stickies. It has all the edits in it you need. :)

MarcBkk

Thanks. I checked the index.php file against the 3 bits of code you said in the sticky needs to be added, which was all there already, but I did not find any duplicate code I could remove   :'(