![]() |
Google Adsense In Navbar
This is a really quick template change, just an additional location for those of you looking to add google adsense to your board.
In your navbar template find (there are multiple instances of this code, use the first instance): Code:
<if condition="$show['member']"> Code:
<!-- start adsense code --> Hope this helps someone out, I am far from a coder, however, wanted to atleast attempt to give back to the community :) If you happen to use, please CLICK INSTALL |
Installed thanks :)
|
Quote:
|
Nice!
|
Quote:
|
I just used the Adsence after first post hack minues the <if> condition, and spacers, like so:
PHP Code:
BTW Technically your mod edits the breadcrubm i believe. :p |
doesnt work at all for me
|
nice,.. Im going to use it on my forums,..
|
Quote:
Mine looks like: <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div> </if> </td> <!-- google ads --> <td class="alt2" valign="top" nowrap="nowrap"> <script type="text/javascript"><!-- google_ad_client = ""; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <!-- /google ads --> <if condition="$show['member']"> <td class="alt2" valign="top" nowrap="nowrap"> <div class="smallfont"> |
Good idea there!
|
Quote:
Let me know :) |
yes i do, but i also have the "double navbar" feature, but blah. I donno.
|
got it, my code is alot diff. thanks
/me installs |
easy money.. Nice job Mike!
|
Quote:
|
Pretty slick. ;)
|
This is interesting as weve had our Google in the Nav bar for a ver long time now although hadnt thought of it to be a hack. Its was just a thought as that space always looked unused to me so one of the admins put it there. Of course it changes size based on screen resolution also...
|
Quote:
|
Quote:
|
Quote:
|
Where did you get THAT idea from :D
I'am using this for 4 months now ;) |
Quote:
I also use an add in the forumdisplay, but it hasn't been doing well. |
Quote:
|
Quote:
|
can you help me arange it like this please?
|
How to show it only on the portal, forum and topic pages?
I don't like it on search pages (also against ToS). |
Quote:
so noone knows how to do this? |
installed it, its awesome and looks great ;)
[high]* The Chief clicks install[/high] |
Great trick Mike.. I love it!
|
I think this might be against TOS..."No Google ad may be placed on any non-content-based pages." as this ad will show up on reply/login pages etc. which have no content.
I think a link unit might be ok though. |
<font color="Red">work good </font>
|
does anyone know if this is a TOS violation??
Any way to have it turn off in non-content pages? |
Quote:
Code:
<if condition="(THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'index')"> Code:
</if> |
Great mod, thank you :)
|
it is no longer a TOS violation from what I understand.
I believe the modified the TOS to better work with forums. |
Quote:
Better to be safe than sorry with Google I say. thanks again |
I have vbadvanced and vblinks, so I did
Code:
<if condition="(THIS_SCRIPT == 'newthread')"> and Code:
</if> |
Quote:
|
THANKS >clicks install<
|
I'm missing something silly here. Please help :)
This is the complete code from my header. Where am I going wrong? Quote:
|
All times are GMT. The time now is 06:09 PM. |
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:
|