The Arcive of vBulletin Modifications Site. |
|
Put Google AdSense in your forums Details »»
|
|||||||||||||||||||||||||
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 /> <if condition="THIS_SCRIPT != 'newthread' AND THIS_SCRIPT != 'newreply' AND THIS_SCRIPT != 'editpost' AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'register'"> <!-- Google AdSense --> YOUR_ADSENSE_CODE_HERE <!-- / Google AdSense --> </if> updated added login and search and register Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Can't forget login.php
Code:
<if condition="THIS_SCRIPT != 'newthread' AND THIS_SCRIPT !='newreply' AND THIS_SCRIPT != 'editpost' AND THIS_SCRIPT != 'login'"> |
|
#3
|
|||
|
|||
|
wait....
adsense cant be placed on newthread and quickreply pages? is that what your telling me? |
|
#4
|
|||
|
|||
|
Looks like it..
Quote:
|
|
#5
|
||||
|
||||
|
Actually it also can't be on regiser and who's online. I think member's lists too but not sure on that one.
|
|
#6
|
||||
|
||||
|
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
|
|
#7
|
||||
|
||||
|
Quote:
![]() (I would surround the google code with a <div align="center"> though. Makes it look nicer.) |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
What about the whole User CP? Isn't that asking for user input as well?
|
|
#10
|
||||
|
||||
|
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?
|
![]() |
|
|