vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   Tweak it(search) (https://vborg.vbsupport.ru/showthread.php?t=86747)

SKPro 04-09-2003 09:00 PM

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.

pattox 04-10-2003 10:39 AM

You should attach a screenshot and attach the hack in a .txt file

filburt1 04-10-2003 11:43 AM

<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
  • Page Generation 0.01462 seconds
  • Memory Usage 1,710KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete