vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add Google adsense search to your navbar dropdown (https://vborg.vbsupport.ru/showthread.php?t=103222)

ericgtr 12-17-2005 10:00 PM

Add Google adsense search to your navbar dropdown
 
For any of you running adsense, using the adsense search on your site will generate more revenue. If you don't already have it setup, log into your adsense account and click on the "AdSense for Search" link then customize it to your liking. More so to make it fit better in the dropdown box. You may also add your site to the search, it will generate more clicks.

Now add it do your Search dropdown, in the navbar template find:
Code:

<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
                </tr>

Add this underneath:
Code:

                <tr>
                        <td class="thead">Search Google</td>
                </tr>
<!-- SiteSearch Google -->
replace this text with your adsense search code
<!-- SiteSearch Google -->


noppid 12-18-2005 07:53 PM

What an awsome idea! Thanks for sharing this!

ericgtr 12-18-2005 08:06 PM

Sure :) It's a boring Sunday and it's snowing out so I decided to share some of my template mods with the group.

Rich 12-18-2005 10:27 PM

Hello,

Since I added this in the other modification (same thing as this) I figure I will add it here too.

This attachment explains how to give the google search its own dropmenu which gives it more attention and more revenue for you.

This is the other thread that does the same thing as this one:

https://vborg.vbsupport.ru/showthrea...ghlight=google

ericgtr 12-18-2005 10:34 PM

Thanks for this. The reason I decided to add this to the existing search is because that's the one I think most people will use, that's just me though :) Additionally, I was thinking about adding this to the search dropdown in the forum and thread views as well.

The Chief 12-18-2005 11:22 PM

installed and works great, thank you :)

[high]* The Chief clicks install[/high]

prawn 12-20-2005 08:50 AM

hey there!
thanks for that great idea.

i wanted to add that to my boards but i came across some more requirements i also worked out. i added the function to minimize the google form and stuff like that. you can take a look at what i mean by taking a quick visit on my forums here.

here's the code if you like it:
Code:

<tr>
<td class="thead"><a style="float:right" href="#top" onclick="return toggle_collapse('navbar_google')"><img id="collapseimg_navbar_google" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_navbar_google].gif" alt="" border="0" /></a>Google Suche</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" id="collapseobj_navbar_google" style="$vbcollapse[collapseobj_navbar_google]">
<div align="center">
<!-- SiteSearch Google -->
<!-- GOOGLE ADSENSE CODE HERE -->
<!-- SiteSearch Google -->
</div>
</td>
</tr>


ericgtr 12-20-2005 12:04 PM

Quote:

Originally Posted by prawn
hey there!
thanks for that great idea.

i wanted to add that to my boards but i came across some more requirements i also worked out. i added the function to minimize the google form and stuff like that. you can take a look at what i mean by taking a quick visit on my forums here.

here's the code if you like it:
Code:

<tr>
<td class="thead"><a style="float:right" href="#top" onclick="return toggle_collapse('navbar_google')"><img id="collapseimg_navbar_google" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_navbar_google].gif" alt="" border="0" /></a>Google Suche</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite" id="collapseobj_navbar_google" style="$vbcollapse[collapseobj_navbar_google]">
<div align="center">
<!-- SiteSearch Google -->
<!-- GOOGLE ADSENSE CODE HERE -->
<!-- SiteSearch Google -->
</div>
</td>
</tr>


Nice addition, thanks! :)

ericgtr 12-21-2005 07:46 PM

Quote:

Originally Posted by mini2
Is it possible (using CSS) to get the google search button to look like the other buttons on your website (mine are "flat" using CSS)?

Could be but it may be against their TOS to edit anything that isn't provided from their builder page. They are very touchy about how their ads are displayed and every day I keep reading new horror stories about people's accounts getting yanked so I try not to touch anything like that lol.

ericgtr 12-21-2005 07:54 PM

Ahh Gotcha, not sure how that would be done myself.


All times are GMT. The time now is 04:24 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
  • Page Generation 0.01161 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete