Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search The Internet v1.0 (Major Engines) Details »»
Search The Internet v1.0 (Major Engines)
Version: 1.00, by tHE DSS tHE DSS is offline
Developer Last Online: Oct 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-09-2002 Last Update: Never Installs: 66
 
No support by the author.

Search The Internet Hack - (Copyright 2002+), tHE DSS
V1.0 (10th August 2002)

Additional code (enhanced by tHE DSS) used from Freddie's Quick Stats Hack at https://vborg.vbsupport.ru/showthrea...threadid=37193


As with anything of this nature, I will not be held responsible for any damage that may be caused during installation of this hack, or in the future during usage of this hack. Although steps have been taken to ensure a smooth installation, and smooth usage, you install and use this hack entirely at your own risk.

// #######################
// #######################

This hack gives your visitors an excellent quick and easy way of finding information on the Internet, without having to leave your site.

5 search engines are included at the moment (google, yahoo, alta vista, excite & lycos). A search "bar" is present on every page on your forum site, in the footer by default - your visitors simply type in a search, select the engine to search on (from a drop down box), and that's that.

A new window will open up, with the seach results displayed.

It gets even better, because this hack can optionally keep search logs on who is searching what from where, and when. A great help for webmasters interested in their visitors wants and needs.

Webmasters can quickly track down information from the search logs via the vB AdminCP. In-fact, webmasters can control the logs completely, from the AdminCP.

It gets better yet, as this hack is so easy to install.

// #######################
// #######################

I will no doubt be adding features to this hack as and when I get a spare half hour - the "upgrades" will simply entail uploading a replacement file (no vB scripts will need replacing).

Cheers.

Show Your Support

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

Comments
  #52  
Old 08-12-2002, 09:58 AM
Big M Big M is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack, easy to install, works well.
Thanx for your time & effort.
Reply With Quote
  #53  
Old 08-12-2002, 03:55 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent.

I've looked at all the sites that I can find a URL for, to see this working at your places..... i'm impressed with everyone... thanks all for installing.
Reply With Quote
  #54  
Old 08-12-2002, 10:49 PM
blackice912's Avatar
blackice912 blackice912 is offline
 
Join Date: Jun 2002
Location: Tacoma, WA
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* blackice912 likes and will use [/high]
Reply With Quote
  #55  
Old 08-13-2002, 07:35 PM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a really nice hack. I just installed it and everything seems to be working great.

Check it out:

http://www.njflyfishing.com
Reply With Quote
  #56  
Old 08-14-2002, 12:14 AM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All doing me proud. Thanks for installing.
Reply With Quote
  #57  
Old 08-15-2002, 08:42 PM
Attrox's Avatar
Attrox Attrox is offline
 
Join Date: Jan 2002
Location: St.Paul, MN
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh wow, I've been looking for this for quite awhile now. Nice job.
Reply With Quote
  #58  
Old 08-16-2002, 05:29 AM
joebow joebow is offline
 
Join Date: Jul 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack! Easy to install .... Nice Job!
Reply With Quote
  #59  
Old 08-18-2002, 07:47 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! This looks really useful. I am thinking of a little bit different use.

Shouldn't the default really be to search the forum itself? Anyway, I am thinking of using this also to search my own photopost database of pictures, and my links database, but I will probably make the default a simple search of the forum.

Some notes:

1) I found each template (both search_the_internet and search_the_internet_window) have what appears to be a few instances of the same minor html bug: Each has a few, I believe three instances of valign="center". and the actual options for the valign tag are "bottom" "middle" or "top", so it probably should be "middle?"

2) If you do decide as I did to make the default search option a search of your forum, you may find this useful:

add this case option to websearch.php with the others:
Quote:
case "myforum" :
doSearch("http://www.yourforum.com/search.php?action=simplesearch&sortby=lastpost&sor torder=descending&forumchoice=-1&searchdate=-1&query=");
break;
Then, open the search_the_internet template and replace the
Quote:
<option value="google" selected>Search--> Google
bit with the following:

Quote:
<option value="myforum" selected>Search -> Your Forum Name Here
<option value="google" selected>Search -> Google
That will make a simple keyword search of your forum the default search

3) Then, if you'd like to change the layout a bit to what I found to be a little more straightforward presentation, you can get rid of all that Search -> This engine stuff in the pulldown and insert the word Search as a text label for the box. You can see it in the footer at http://forum.bonsaitalk.com but it looks like

Search for: [ input box ] Search in: [ pulldown box ] [(go button)]

I think that's cleaner anyway, plus moving the submit button (which I relabled Go! to a position right next to the pulldowns.

4) Somewhere I have some Javascript for a pulldown that doesn't require a GO! button. That might be even better since this is a Jscript menu anyway. I'll look around.

5) Here's another one you'll definitely want to add, especially if you are Amazon Affiliate:
add to the case statement in websearch.php, replacing the "tag=" part with your own affiliate ID, or use mine, heck I don't care!

Quote:
case "amazon" :
doSearch("http://www.amazon.com/exec/obidos/external-search?mode=blended&tag=wwwbonsailinn-20&keyword=");
break;
default :
and modify your search_the_internet template accordingly:
Quote:
<option value="amazon" >Search--> Amazon

Fun Hack!

Regards,

Matt
Reply With Quote
  #60  
Old 08-18-2002, 10:32 AM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For sure.

I like what you've done.

I didn't have the "search forum" in there, or as default, because there are already options for that. I simply wanted a "search the internet" add-on.

I'll certainly consider your suggestions for the next version, though, each to their own tastes.

Nicely done though.
Reply With Quote
  #61  
Old 08-18-2002, 05:55 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A mod for online.php to clean things up a bit. This will decode websearch a bit

1. in online.php find:
Quote:
case 'gallery':
$userinfo[where] = "Viewing Picture <a href='gallery.php?s=$session[sessionhash]'>Gallery</a>";
break;
case 'spider':
$userinfo[where] = "Search Engine Spider";
break;
Add after that:
Quote:
// mec 081802 start print websearch
case 'websearch':
$userinfo[where] = "<a href=\"$userinfo[location]\" TITLE=$userinfo[location]>Using Websearch Function</a>";
break;
2. Next find
Quote:
case 'attachment.php':
if (strstr($token1,'postid')) {
$blowup = explode('=', $token1);
$postid = intval($blowup[1]);
$postids .= ",$postid";
} else if (strstr($token2,'postid')) {
$blowup = explode('=', $token2);
$postid = intval($blowup[1]);
$postids .= ",$postid";
}
and insert BEFORE it:
Quote:
case 'websearch.php':
$userinfo[activity] = 'websearch';
break;
You can of course, omit the comment, change the date or use your own initials. This is just a technique I use to find mods later.

3) Test it out. When a user uses this search function, you should see something like

Using Websearch Function (with the Function hotlinked to the search, and if you hover on it you will be able to see the search url, of course you could read that out of the "explorer bar" at the bottom of the browser, anyway)

Regards,

Matt
Reply With Quote
Reply


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 03:11 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.04771 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
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
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete