MyBB Community Forums

Full Version: Ads on every page.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There are two sets of ads for their ad service, and one you put after the opening <body> tag in your website, and the other code you put where you want the ad to display. So when they say put it after the opening body tag I assumed they meant the index, so I put that code in the index template, but that makes the ads ONLY display on the index. I would like them to display on every single page of my site not just the index. So what template would I put that code it to make it do that?

Thanks in advance!
use header template OR footer template ...
(2011-12-30, 04:54 AM)ranjani Wrote: [ -> ]use header template OR footer template ...

It can only be on one page, and has to be after the opening <body> tag... I also don't think you read the post. :/
(2011-12-30, 04:24 AM)Philly Wrote: [ -> ]... but that makes the ads ONLY display on the index.
I would like them to display on every single page of my site not just the index . ...

(2011-12-30, 05:22 AM)ranjani Wrote: [ -> ]
(2011-12-30, 04:24 AM)Philly Wrote: [ -> ]... but that makes the ads ONLY display on the index.
I would like them to display on every single page of my site not just the index . ...

Why did you quote me than bold my own sentence that doesn't really help me. :/
Ranjani is right, if you want your ads displayed on every page, then use the header or footer to place your ad. Hence, anything in the header or footer templates are displayed on every page.

Place your ad code after the <navigation> in your header and see what happens, you'll find it's what you want.
(2011-12-30, 09:40 AM)Frank.Barry Wrote: [ -> ]Ranjani is right, if you want your ads displayed on every page, then use the header or footer to place your ad. Hence, anything in the header or footer templates are displayed on every page.

There is two ad codes to have the ads displayed with what I am using which is buysellads. In order to get the ad to display you must put the first code after the opening <body> tag. The second code you put where you would like the ad. I have put the first code into the index template because it can only be placed ONCE, and must be after the OPENING <body> tag. The second code I have placed into my advertisements plugin. With that being said the second code is in the header, and footer, and the first is in the index. So I need to know what template the first code should go into since it being in the index template makes it only display in the index template. It can only be displayed in one template though. Hopefully I explained it well enough, and you read it all the way threw. Thanks in advance.
Omg, everything in the header template is after the opening body tag, just try what I told you and see if that works, try it.
(2011-12-30, 09:53 AM)Frank.Barry Wrote: [ -> ]Omg, everything in the header template is after the opening body tag, just try what I told you and see if that works, try it.

Welp you where right. lol It worked. I also went back and read what they said, and it turns out I even read it wrong. It says, "You only need to install the STEP 1 code ONCE in the header file of your website. This STEP 1 code should NOT appear more than once in a single page." I didn't even realize it said header. Oh well... I guess I deserved having to write it twice lmao... Thanks for the help man!
No problem Wink