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
  #32  
Old 08-10-2002, 11:13 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I only have 1 template set so i will have a look at global (tomorrow as it's really late now) I will also upload my global.php
Reply With Quote
  #33  
Old 08-10-2002, 11:32 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think vB may not like you attaching licensed scripts. Best to get rid of it... it's ok, i've seen it and found the problem.

I was right about the "if Guest" thing.

Here is what I see :

PHP Code:
if ($bbuserinfo['userid']==0) {
  eval(
"\$headinclude = "".gettemplate('headinclude')."";");
  eval(
"\$header .= "".gettemplate('header')."";");
    
// parse tHE DSS, Search The Internet template (global)
    
eval("\$search_the_internet = "".gettemplate('search_the_internet')."";");
...
...
... 
So, replace this :

PHP Code:
if ($bbuserinfo['userid']==0) {
  eval(
"\$headinclude = "".gettemplate('headinclude')."";");
  eval(
"\$header .= "".gettemplate('header')."";");
    
// parse tHE DSS, Search The Internet template (global)
    
eval("\$search_the_internet = "".gettemplate('search_the_internet')."";");

  eval(
"\$vbpopup .= "".gettemplate('vbpopup')."";");
  eval(
"\$footer .= "".gettemplate('footer')."";");
} else {
  eval(
"\$headinclude = "".gettemplate('headinclude')."";");
  eval(
"\$header .= "".gettemplate('header')."";");
  eval(
"\$footer .= "".gettemplate('footer')."";");

... with this :

PHP Code:
eval("\$headinclude = "".gettemplate('headinclude')."";");
eval(
"\$header .= "".gettemplate('header')."";");

// parse tHE DSS, Search The Internet template (global)
eval("\$search_the_internet = "".gettemplate('search_the_internet')."";");

if (
$bbuserinfo['userid']==0) {
    eval(
"\$vbpopup .= "".gettemplate('vbpopup')."";");
}

eval(
"\$footer .= "".gettemplate('footer')."";"); 
I've cleaned up that chunk of code for you at the same time - there was no need for the "decisions" to be arranged like that... my changes will make my hack/add-on work for all usergroups, and will give better peformance of your 'global.php'... not much mind.. but it's better.

Backup your 'global.php' file first, before you do the above... just in case.
Reply With Quote
  #34  
Old 08-11-2002, 02:48 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack Thansk!~
Reply With Quote
  #35  
Old 08-11-2002, 03:30 AM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

one question, how can I do it that it's only viewable for registered and logged in Members ?

thanks,
Schorsch
Reply With Quote
  #36  
Old 08-11-2002, 05:58 AM
Aaron RV's Avatar
Aaron RV Aaron RV is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:disappointed:

step 1 = ok
step 2 = ok
step 3 = ok
step 4 = ok
step 5 = ok

After in my search_bar:

PHP Code:
Database error in vBulletin 2.2.6:

Invalid SQLINSERT INTO zz_sti_log (logid,userid,username,searchstring,searchengine,ipaddress,timedateVALUES ('NULL','4','****','****','yahoo','ip... | no proxy detected','1029048553')
mysql errorTable '******_net.zz_sti_log' doesn't exist

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

Schorsch, i'll reply to you in the next post.... i'll just do Aaron RV first, because that error could leave him "open".

Aaron RV, do you want to keep the optional search logs?

If so, from STEP 05, you skip STEP 05.5, and go onto STEP 06, where you create the table logs.

What you haven't done, is put the 'createSTI_table.php' script into your 'admin/' directory, and run the script, and clicked 'YES! Create The Table'.

Go from STEP 5, then SKIP STEP 05.5, and follow from STEP 06. You should be ok from there.

If you DO NOT want to keep the optional search logs, then you need to DO STEP 05.5... wherby you "comment out" the line the 'install.txt' tells you to.

The line(s) you are looking for, are in the 'websearch.php' script, and look like this :

PHP Code:
// comment out the following line, if you do not wish to keep search logs.
    
$DB_site->query("INSERT INTO 
So, if you are NOT wanting to keep the optional search logs, where you see the above lines in the 'websearch.php' script, put TWO forward slashes ( // ), like this :

PHP Code:
// comment out the following line, if you do not wish to keep search logs.
    // $DB_site->query("INSERT INTO 
The line here, $DB_site->query("INSERT INTO, is truncated here, to save space... but you'll find that line ok in the script.
Reply With Quote
  #38  
Old 08-11-2002, 10:52 AM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Schorsch, to make it so that only Registered & Logged In members can see the search bar, find these lines in your 'global.php' script :

PHP Code:
// parse tHE DSS, Search The Internet template (global)
eval("\$search_the_internet = "".gettemplate('search_the_internet')."";"); 
... and replace with :

PHP Code:
if ($bbuserinfo[userid] != 0) {
    
// parse tHE DSS, Search The Internet template (global)
    
eval("\$search_the_internet = "".gettemplate('search_the_internet')."";");

That will do it.

But, letting Guests use the search bar aswell, may actually help you, if you are keeping search logs. Because, you can track down what Guests are searching for on their way out of your site..... then maybe you can adjust your site to appeal more.
Reply With Quote
  #39  
Old 08-11-2002, 05:42 PM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi tHE DSS,

that doesn't work, guests still can see the search bar.

what can I do ?

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

Sorry, Schorsch, please accept my apologies.... I made a slight typo.

I've now edited my post where I showed you how to make it for non-guests only... if you now replace the stated code with the now stated replacement code, it will work.

Again, sorry dude.
Reply With Quote
  #41  
Old 08-11-2002, 06:04 PM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

jep, works now thank you very much, great hack !!!

best regards,
Schorsch
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 02:02 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.07170 seconds
  • Memory Usage 2,340KB
  • 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
  • (8)bbcode_php
  • (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