PDA

View Full Version : Miscellaneous Hacks - Boost your revenues with google search adsense


mysticla
05-04-2011, 10:00 PM
Just simple templates modification, but you can boost your revenue with adsense..
my mod doesn't change the basic vbulletin design templates (see on screenshoot)

Preparation:
1. make your google search adsense, to obtain "partner-pub-id"
2. open navbar templates, see instruction on below:


Find
PHP code
<form action="search.php?do=process" method="post" id="navbar_search">
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<input type="text" value="" name="query" class="textbox" />
.....
</span></span>


Replace with
PHP code
<form action="http://www.google.co.id/cse" id="cse-search-box" target="_blank">
<input type="hidden" name="cx" value="partner-pub-1677807936883236:1006600269" />
<input type="hidden" name="ie" value="UTF-8" />
<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>


Change with your search adsense "partner-pub-id" Code
partner-pub-1677807936883236:1006600269


Don't forget to Mark As Installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=263212)
or
Nominate it for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=263212&type=1)

BadgerDog
05-06-2011, 10:54 AM
So this completely replaces vBulletin's own internal search routine?

Thanks .. :)

Regards,
Doug

Brandon Sheley
05-06-2011, 01:45 PM
I don't see the google search in your screenshot.

mysticla
05-06-2011, 01:56 PM
I don't see the google search in your screenshot.

it does not change at all the existing design, but when members use the search function, it will be connected to your google adsense.

just try install it first :) for more details

irishblacknight
05-07-2011, 08:22 PM
If it's not displaying the Google logo it would be in breach of their terms of service:
http://www.google.com/cse/docs/tos.html?gl=IE&hl=en_US

mysticla
05-07-2011, 10:43 PM
If it's not displaying the Google logo it would be in breach of their terms of service:
http://www.google.com/cse/docs/tos.html?gl=IE&hl=en_US

:) see the results when someone uses it
and absolutely not breach google terms of service