Log in

View Full Version : Putting html into php?


Grampz
03-24-2008, 05:06 PM
Okay, I'm going to sound like a total newbie here and when it comes to php and forum ownership, I guess I am. I am wanting to use Google Adsense on my forum and they give you html coding to place into your site. Where should I put this html coding so that my ads start showing up? I am using vBulletin® Version 3.6.7. Any help would be greatly appreciated.

DPtheGod
03-24-2008, 07:17 PM
Log into your ACP, and go to Styles & Templates, then choose the skin you want to put them in, and determine where you want them. I put mine in the FORUMDISPLAY and SHOWTHREAD templates, as well as FOOTER template. If you use the first two, put the code below the navbar and header.

Let me know if you need any help. :)

Opserty
03-24-2008, 08:25 PM
Placing it in the footer template should make it appear on all the forum pages.

Grampz
03-25-2008, 05:48 AM
Log into your ACP, and go to Styles & Templates, then choose the skin you want to put them in, and determine where you want them. I put mine in the FORUMDISPLAY and SHOWTHREAD templates, as well as FOOTER template. If you use the first two, put the code below the navbar and header.

Let me know if you need any help. :)

If I use the footer option, where would be the best place to put the ad code?

GameWizard
03-25-2008, 06:02 AM
Wherever you want it to appear. Since you're a newbie. Best thing to do is to experiment and play around with it. That's the only real way to learn. There really isn't a way to mess anything up. The great things with computers is the undo button. :)

Just stick the code wherever you think you'd like it to show up, and then if it doesn't look right, put it somewhere else. Make sense?

DPtheGod
03-25-2008, 06:24 AM
If I use the footer option, where would be the best place to put the ad code?

I have mine placed at the very top of the template under the <br /> tag. I have two of those tags where my template begins, I can't remember if I added one in or not.

So my footer template goes like this:

<br />
<br />
// adsense code
<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]<br />
// and so on...

And so forth. It'll put it above the "powered by vBulletin (version)" message. :)

Grampz
03-26-2008, 04:02 AM
Thanks everyone for your help. I think I may like the way this worked.