vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   AdSense With NavBar Modification (https://vborg.vbsupport.ru/showthread.php?t=130060)

Infinity101 10-26-2006 10:00 PM

AdSense With NavBar Modification
 
I have notice several people becoming more and more interested with advertising on their site. While some modifications work better than others, this modification when used correctly can help increase user revenue.

This modification will create a second navbar menu and use the adsense link unit and selected vBulletin links to fill it.

- Edit Nabar template -
Locate:
Code:

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

Add under:
Code:

<!-- nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">
                               
                        <if condition="$show['member']">
                                <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>               
                        </if>
<if condition="$show['member']">
                        <td class="vbmenu_control">
                </if>
                <else />       
                        <td class="vbmenu_control">

                              GOOGLE LINK UNIT CODE HERE


</td>
                        <if condition="$show['searchbuttons']">
                                <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
                                <if condition="$show['member']">
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                                <else />
                                <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                                </if>
                        </if>               
                </if>
        </tr>
        </table>
</div>
<!-- / nav buttons bar -->

- Note : I have not had Google check the ad-placement in regard for program policies.

Forgive my poor HTML abilities to make a more sophisticated method, this post is more to give further ideas how to use AdSense on your forum :)

cuphongle 10-27-2006 01:06 AM

i tried it, it doesnt look that good, but i fixed it a lil

www.theynd.com
Quote:

</div>
<!-- / nav buttons bar -->
before that, just add google adsense
i dont know how it is for other styles, but thats how i got it on mine
but very nice addition - - - without it, i wouldnt be able to add it to my site
thanks

Infinity101 10-27-2006 01:10 AM

Quote:

Originally Posted by cuphongle
i tried it, it doesnt look that good, but i fixed it a lil

Yep, that is one of the problems. I have tested on a few forums, some it will look really good, others it just doesn't look good at all. It really depends on how you can modify the appearance to match your site.

vietfancy 10-27-2006 04:42 AM

is it against adsense TOS?

cuphongle 10-27-2006 04:52 AM

I dont know, you should try emailing them.

Rich 10-27-2006 10:57 AM

Quote:

Originally Posted by vietfancy
is it against adsense TOS?


Why would you ask that? If you have an adsense account, it becomes your responsibility to know what is and what isn't safe to add in regards to google adsense.

Lets say I tell you it is safe and I was wrong. Then someone reports your site to google and they decide to boot you from the program. Would you be writing google trying to explain that "Rich" said it was safe to use? If they bothered to respond (which they likely wouldn't) , they would tell you this:

"Unfortunantly, Rich is not employed by Google. The TOS explains what is and what isn't allowed."

See now why it is your responsibility to know the TOS?


All times are GMT. The time now is 11:47 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.01009 seconds
  • Memory Usage 1,729KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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