![]() |
Put Google AdSense in your forums
Kinda interesting info to share.
The AdSense TOS says you can't put ads in pages that are exclusively asking input from the user, which means in vBulletin creating a thread page, replying or editing a post. This code will put your ads between the navbar and forum/thread listing. Edit your "navbar" template, and after Code:
<!-- / nav buttons bar --> Code:
<br /> updated added login and search and register |
Can't forget login.php
Code:
<if condition="THIS_SCRIPT != 'newthread' AND THIS_SCRIPT !='newreply' AND THIS_SCRIPT != 'editpost' AND THIS_SCRIPT != 'login'"> |
wait....
adsense cant be placed on newthread and quickreply pages? is that what your telling me? |
Looks like it..
Quote:
|
Actually it also can't be on regiser and who's online. I think member's lists too but not sure on that one.
|
Have you tested the drop down/thread tools menu after adding this...in partucular anything that goes over 10 replies? I've discovered MAJOR issues with AJAX and anything that goes on the nav bar. I would love to try this but not if it is going to mess with the nav bar again. BTDT. Liz
|
Quote:
(I would surround the google code with a <div align="center"> though. Makes it look nicer.) |
Quote:
|
What about the whole User CP? Isn't that asking for user input as well?
|
if i want to put this right next to the main banner on the site how can i do this? what template do i edit and where do i put the code?
|
All times are GMT. The time now is 02:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|