![]() |
Tweak it(search)
okay im not sure if this is much of a tweak or if it will work but i was looking at the google search thing you have and i just relised that you can make it search anywhere you want i think
Maybe this is common sence but for some it isn't where ever it says "searchengine" put the name,Lycos,or w/e you choose,...im not sure if this should work but i was just looking at it and thought it up 1. Create a template called forumhome_"searchengine"search, and populate it with these contents: <tr id="cat"> <td bgcolor="{categorybackcolor}" colspan="6"><normalfont color="{categoryfontcolor}"><b>Search $hostname</b></normalfont></td> </tr> <tr><form action="index.php" method="get"><input type="hidden" name="action" value=""searchengine"search"> <td bgcolor="{firstaltcolor}" colspan="6"><smallfont> Search with <font color="#0039b6">G</font> <font color="#c41200">o</font> <font color="#f3c518">o</font> <font color="#0039b6">g</font> <font color=#30a72f>l</font> <font color=#c41200>e</font> on $hostname for: <input type="text" size="20" name="query"> <input type="image" src="{imagesfolder}/go.gif"></smallfont></td></form> </tr> (note: if you have removed moderator columns from forumhome, change colspan="6" to colspan="5" (two occurances)) 2. In the template forumhome, find: $pminfo After that, add: $"search engine"search 3. Add the following to your phpinclude template: if (strpos($_SERVER['PHP_SELF'], 'index.php') != false) { $hostname = $_SERVER['SERVER_NAME']; if ($_GET['action'] == 'googlesearch') { $baseurl = 'give the url of the search; $query = urlencode($_GET['query']); header("Location: $baseurl$hostname%20$query"); exit; } else { eval("\$"searchengine"search = \"".gettemplate('forumhome_"searchengine"search'). "\";"); } } Done. |
You should attach a screenshot and attach the hack in a .txt file
|
<a href="http://www.vbulletintemplates.com/mods/showthread.php?threadid=3188" target="_blank">http://www.vbulletintemplates.com/mo...?threadid=3188</a>
Because this is not posted as an attachment it's risking deletion. |
All times are GMT. The time now is 06:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|