Mod Version: 1.00 ,, vB Version: 4.2.x
This mod will replace vb search in navbar with google custom search.. you can still use advance search from navbar. google search provide much better result when you try to search word under 4 letters..
1. First download google.php upload in your forum root
2. Go to your AdminCP Go to Styles & Templates -> Style Manager
select Style then click Create New Template rename Template to GOOGLE
Paste this code in google Template :
3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find
and
remove all code between this with
Note : Replace
with your won website name
Replace
with your won adsense code..

This mod will replace vb search in navbar with google custom search.. you can still use advance search from navbar. google search provide much better result when you try to search word under 4 letters..
1. First download google.php upload in your forum root
2. Go to your AdminCP Go to Styles & Templates -> Style Manager
select Style then click Create New Template rename Template to GOOGLE
Paste this code in google Template :
PHP:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle}</title>
{vb:raw headinclude}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw pagetitle}</h1>
</div>
<h2 class="blockhead">Google Custom Search</h2>
<div class="blockbody">
<div class="blockrow">
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 800;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
</div>
</div>
{vb:raw footer}
</body>
</html>
3. Then Open Navigation / Breadcrumb Templates Click Collapse button click navbar Template find
PHP:
<div id="globalsearch" class="globalsearch">
and
PHP:
<ul class="navbar_advanced_search">
remove all code between this with
PHP:
<form action="http://www.mobilephonetalk.com/google.php" id="cse-search-box">
<input type="hidden" name="cx" value="partner-pub-8038994048300561:7c8fy7cujxg" />
<input type="hidden" name="cof" value="FORID:9" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<span class="textboxcontainer"><span><input type="text" value="" name="q" class="textbox" /></span></span>
<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="sa" onclick="document.getElementById('navbar_search').submit;" /> </span></span>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
Note : Replace
PHP:
http://www.mobilephonetalk.com
Replace
PHP:
partner-pub-8038994048300561:7c8fy7cujxg

Eklentiler
Son düzenleme: