vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Putting html into php? (https://vborg.vbsupport.ru/showthread.php?t=174037)

Grampz 03-24-2008 05:06 PM

Putting html into php?
 
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

Quote:

Originally Posted by DPtheGod (Post 1473536)
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

Quote:

Originally Posted by Grampz (Post 1473933)
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:

PHP Code:

<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.


All times are GMT. The time now is 08:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01011 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete