Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Template Modifications
Tweak it(search) Details »»
Tweak it(search)
Version: 1.00, by SKPro SKPro is offline
Developer Last Online: Nov 2003 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-09-2003 Last Update: Never Installs: 0
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-10-2003, 11:39 AM
pattox pattox is offline
 
Join Date: Jan 2003
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should attach a screenshot and attach the hack in a .txt file
Reply With Quote
  #3  
Old 04-10-2003, 12:43 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04095 seconds
  • Memory Usage 2,200KB
  • Queries Executed 16 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete