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)
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)