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
  #62  
Old 08-18-2002, 06:32 PM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have a site you'd like to include that has no built-in search engine to reference, you can still include it by using one of the features of the Google site that allows it to search within a domain.

1. Add this to the websearch.php case statement. Please note the space after the ".com " That's important!

Quote:
case "newsite" :
doSearch("http://www.google.com/search?q=site:thatdomain.com ");
break;
a) replace thatdomain.com with the domain to be searched; no "http://www" required!
b) replace newsite with a shorthand name for the site if you'd like.

2. Add this to your template along with the other options
Quote:
<option value="newsite">Site Title
a) replace newsite with the name you used in 1.b) above
b) replace Site Title with the name you'd like to appear for this search.

3. Test it out

You will get a Google screen with a listing for the site of interest

Regards,

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

That's very cool. Cheers man.

I was supposed to include the bit in the install.txt file about putting the "Searching The Internet"..... stuff, so that is ouput in Who's Online, but some-how forgot. :cry: I felt like a right t**t afterwards.... well, when I realised.

I'm trying to fastrak a vB installation, working alongside, and with a 2nd database for the normal website area, so time is pretty short for extra vB type work, so, in the meantime, it's recommended you implement that above from memobug.

Reply With Quote
  #64  
Old 08-19-2002, 03:29 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After getting this form working well in the footer, I tried moving it to the header template, but couldn't get anything to display.

I thought it might be a conflict with the form having the same name in the footer, so I stubbed out the footer and tried again, but still no display.

I had the word TEST displaying where I wanted it, then I changed out TEST for $search_the_internet, expecting to see the form, but no dice. I then tried putting it in its own table row. Still no form

Any ideas?

Regards,

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

To get this to display in your header, you'll need to replace the location of the "calling of the template" in your 'global.php' script.

This bit :

PHP Code:
// parse tHE DSS, Search The Internet template (global)
eval("\$search_the_internet = \"".gettemplate('search_the_internet')."\";"); 
... should be place ABOVE this (in the 'global.php') :

PHP Code:
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval(
"\$header .= \"".gettemplate('header')."\";"); 
It should work then.
Reply With Quote
  #66  
Old 08-20-2002, 10:27 AM
2 X Viverridae's Avatar
2 X Viverridae 2 X Viverridae is offline
 
Join Date: Jul 2002
Location: Undisclosed
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very slick hack, thanks a bunch!

Installation was easy, and your responses in this thread were both quick and helpful.

I have made it so the default search is my own forum, it's darn handy having it all right in one spot, with the option of users going to the advanced search if they wish.

1 question though - how would I make it so that when searching within my site, have it NOT launch in a new window, but use the existing one?
Reply With Quote
  #67  
Old 08-20-2002, 04:06 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiya,

Inside the "search_the_internet" template, exists the HTML form... the opening FORM tag has as one of it's parameters "target="_blank", this is what causes the searches to open up in a new page.

The reason being, people may be posting a thread, a reply, doing a PM, or simply just want/need to stay in the same screen, but they need to search somthing at the same time.

If you just wanted it to load into the same browser window, just for your forums search, then you'd need to take out the "target="_blank" paremeter from the FORM tag, and then inside the 'websearch.php' script, we'd need to add some JavaScript to pop-up a new window, if the search wasn't for your forum.

I don't like adding JavaScript pop-ups, as they can be un-reliable. But that would be the solution.

The main consideration would be, visitors needing to stay in the same screen, and do a search at the same time... you'd overwrite what they were doing.

It's upto yourself though.
Reply With Quote
  #68  
Old 08-20-2002, 09:21 PM
2 X Viverridae's Avatar
2 X Viverridae 2 X Viverridae is offline
 
Join Date: Jul 2002
Location: Undisclosed
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm - good point - I have a nasty habit of thinking about how *I* would do things, and generally I hate new windows...

However, putting myself in the position of the average end user, I can see how a fresh window would be a good idea. I'll leave it as is for now, thanks.
Reply With Quote
  #69  
Old 08-23-2002, 06:20 PM
dreamhost's Avatar
dreamhost dreamhost is offline
 
Join Date: Jun 2002
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love this one, been using it for a while now http://www.annointed.net/forums/index.php
Reply With Quote
  #70  
Old 08-25-2002, 01:20 AM
Grunt Grunt is offline
 
Join Date: Aug 2002
Location: TN
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another satisfied customer here...thanks!
Reply With Quote
  #71  
Old 09-22-2002, 09:12 PM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A note to thank Memobug for his additions to this hack. I've added them!

tHE DSS ... one question ... after making Memobug's additions, I edited stistats.php so the new engines could be logged (outside of 'unknown') and they are showing up because I moved them to the front in stistats.php ... 'myforum','network','amazon','google','yahoo','alt aVista','excite','lycos' ... but 'altaVista', 'excite', and 'lycos' are being logged as 'unknown' (even though they are listed, showing 0).

I reloaded my original stistats.php and altaVista, excite and lycos are showing up again. It seems that the logs are only wanting to count the first 5 engines and defaulting to zero and unknown for any beyond that point<?>.

Any reason why, if I've done everything as I should?

No rush because it's just the logs (and they are logging / unknown) and everything else is working perfectly.

Great hack, thanks a bunch.

Destee
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 01:22 PM.


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.04765 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
  • (2)bbcode_php
  • (2)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