SMF Ads Support Forum

Support => General Support => Topic started by: Count on September 05, 2006, 01:38:53 PM

Title: Ads displayed twice
Post by: Count on September 05, 2006, 01:38:53 PM
I just installed SMF 1.1 RC3 and Ads mod, and everything works just fine but all the ads are displayed twice. Regular small banners appear side-by-side if they fit on the screen, if they don't, the second one is below the first. What's causing this? Note that I'm rather new to SMF so if it's something blindingly obvious, just shoot me :)
Title: Re: Ads displayed twice
Post by: bigguy on September 05, 2006, 05:00:34 PM
Do you have all the options set to on in the ad management. If so this might be why they show twice.
Title: Re: Ads displayed twice
Post by: Count on September 06, 2006, 01:30:11 AM
Nope, if I choose "Show ads on every page right below the menu" and nothing else, the ad appears twice. Display ads on board index - appears twice. Thread index - appears twice. Get my drift?
Other packages I've installed are: Contact Page 1.0, Trim Url 1.0.1, Googlebot and spiders mod 2.0.0.

And one thing I forgot - when I have two (or more) ads enabled to the same spot (like welcome area) then the two ads displayed at the same time can be different ads or same ads, but always there are two.

You can go and check it out - I have currently three different ads enabled to the welcome area. Forum url is http://www.atomimiilu.fi/ (And no, it's not yet officially open as you can see from the lack of content :))
Title: Re: Ads displayed twice
Post by: bigguy on September 06, 2006, 11:23:44 AM
Then it sounds like the edits are there twice in the files that have been edited.
Title: Re: Ads displayed twice
Post by: Count on September 06, 2006, 12:45:19 PM
Quote from: bigguy on September 06, 2006, 11:23:44 AM
Then it sounds like the edits are there twice in the files that have been edited.

Hmm, I wonder how that could've happened? I guess there's no check for that?
I checked and you are correct, index.template.php had everything twice. I must've messed something up  ::)

Are there any other files I should check for doubles?
Title: Re: Ads displayed twice
Post by: bigguy on September 13, 2006, 08:24:19 PM
Open the "install.xml" file and check in there for template names to check.
Title: Re: Ads displayed twice
Post by: mrvegas on November 12, 2006, 01:46:37 PM
crap this has happened to me too....  :'(

So is there a way to automaticaly remove these lines like the install of the mod placed them?

I think what might of happened is that I had a previous version installed and I upgraded the forum and it quit working. then I just installed it again. So Im thinking the code from the previous version was still there...

well isnt this just dandy.

also...
Bigguy, are you the same peroson as at jamroom?
Title: Re: Ads displayed twice
Post by: bigguy on November 12, 2006, 03:42:07 PM
@ Count: Check all the template files in the theme you are currently using.

@ mrvegas: No I am not, sorry.
Title: Re: Ads displayed twice
Post by: wickedstangs on November 20, 2006, 02:19:06 PM
Happened to me too. What I did was not install the display.template.php and installed everthing esle and it worked.
Title: Re: Ads displayed twice
Post by: 5678 on November 28, 2006, 11:47:45 AM
i have same problem, check here  (http://razzledazzledeals.com/index.php)for example

QuoteI checked and you are correct, index.template.php had everything twice

how do i check the ((( index.template.php file ))) for the double code? do i do this via my host cpanel or within my forums admin panel?

please advise.

missy.
Title: Re: Ads displayed twice
Post by: bigguy on November 28, 2006, 07:28:21 PM
Download the index.template.php file to your desktop via ftp and open it with an editor like PHP designer 2007 (google that) and see if the code is in there twice. You can search for the code using the editor. You can find the code posted here for each template file in the themes board.
Title: Re: Ads displayed twice
Post by: Hendricius on March 23, 2007, 09:33:09 AM
have exactly the same error.

(http://img487.imageshack.us/img487/7789/scr39b58ftv4.png)
Title: Re: Ads displayed twice
Post by: bigguy on March 28, 2007, 12:23:51 PM
Check your modifications.english.php file, maybe edits were added there twice.