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
  #72  
Old 09-22-2002, 09:42 PM
tHE DSS's Avatar
tHE DSS tHE DSS is offline
 
Join Date: Jun 2002
Location: UK
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Locate this bit, in the 'stistats.php' script :

PHP Code:
$engineName_array = array('google','yahoo','altaVista','excite','lycos''ditto');
$engineCount_array = array(0,0,0,0,0,0);
$unknownCount 0;
$engine_count=$DB_site->query("SELECT searchengine FROM zz_sti_log");
if (!
$num_rows $DB_site->num_rows($engine_count) <=0) {
    while (
$row $DB_site->fetch_array($engine_countMYSQL_ASSOC)) {
        switch (
$row[searchengine]) {
            case 
$engineName_array[0] :
                
$engineCount_array[0]++;
                break;
            case 
$engineName_array[1] :
                
$engineCount_array[1]++;
                break;
            case 
$engineName_array[2] :
                
$engineCount_array[2]++;
                break;
            case 
$engineName_array[3] :
                
$engineCount_array[3]++;
                break;
            case 
$engineName_array[4] :
                
$engineCount_array[4]++;
                break;
            case 
$engineName_array[5] :
                
$engineCount_array[5]++;
                break;
            default :    
$unknownCount++;
        }
    }

Be sure that you have added the engines, and the default count to these two arrays :

PHP Code:
$engineName_array = array('google','yahoo','altaVista','excite','lycos''ditto');
$engineCount_array = array(0,0,0,0,0,0); 
.. the default count should always be 0. The script will give false results otherwise.

And then, be sure you've added each engine to the case statement :

PHP Code:
case $engineName_array[5] :
                
$engineCount_array[5]++;
                break; 
Each engine needs it's own "clause".
Reply With Quote
  #73  
Old 09-22-2002, 11:12 PM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tHE DSS ... thank you, that did it!

Another question if you don't mind ... is there an easy way to include / log the keyword searches done from the forum's main search page?

Also, I noticed that when doing a search of myforum from your hack, Who's Online sometimes lists it as "Searching Forums" with no link and sometimes it says "Using Websearch Function" with a link to search results. My concern is permissions and if Moderators and/or Admins do a search, will those results be available to others that don't normally have access to all forums.

Thanks again.

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

Glad you sorted it.

Regarding logging searches from your forums (using the vB supplied search functions), i'd say that some vB scripts would need a little hacking.

I'll look into that.

With regards to searching and Who's Online, I can't say i'm too sure. I think those modifications were made by memobug, and to be truthful, I haven't really studied it.

May be worth trying it out, by logging in as yourself, doing a search, and then taking the URL from the Who's Online link (right click the link, select Properties, and copy the URL).. log out, and then paste the URL into the address bar, and see what comes up.
Reply With Quote
  #75  
Old 09-22-2002, 11:51 PM
Destee's Avatar
Destee Destee is offline
 
Join Date: Oct 2001
Location: destee.com
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Again tHE DSS!

I've played with it some more and now am only able to get it to show the "Searching Forums" text (not linked). Hmmmm ... I would have swore I saw it linked earlier ... I'll keep watching it and maybe Memobug will post and put my mind at ease.

In regard to logging searches from the main search page, certainly at your convenience, as you've already given much!

:heart:

Destee
Reply With Quote
  #76  
Old 09-29-2002, 03:43 AM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know how I can make it so this will also allow people to search the forum?

Dark Shogun
Reply With Quote
  #77  
Old 09-29-2002, 07:30 PM
-=dm=- -=dm=- is offline
 
Join Date: Nov 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*install*

working fine on 2.2.4

I have a litle question, is it possible to change the colors of the search field?

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

dm, try adding 'class="bginput"' to the INPUT tag in your 'search_the_internet' template.

Go into that template, and change this :

Code:
<input type="text" name="searchString" size="25" maxlength="255" value="">
... to this :

Code:
<input type="text" class="bginput" name="searchString" size="25" maxlength="255" value="">
... that should keep the colours consistent.

Dark Shogun, I think a few here have done what you are asking - I feel really really bad about not sticking around right now to expalain, but i'm way behind on a site upgrade. Have a look around this support thread, and see if somone has explained it.
Reply With Quote
  #79  
Old 10-23-2002, 02:22 AM
kreftt's Avatar
kreftt kreftt is offline
 
Join Date: Dec 2001
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great.

no problems at all and 2 minutes of installation.

working fine on 2.2.8.

thanx a bunch
Reply With Quote
  #80  
Old 12-03-2002, 09:22 AM
Visionray's Avatar
Visionray Visionray is offline
 
Join Date: Feb 2002
Location: DC - USA
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack!
Reply With Quote
  #81  
Old 12-26-2002, 02:02 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack

Just installed it on my 2.2.9 forum and works great ..

One thing though .. some users want it .. and some don't ..

So could someone please show me how to make it so people can pick if they want it or not via their control panel?

That would be cool .. .. cheers
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 12:59 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.04848 seconds
  • Memory Usage 2,333KB
  • 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_code
  • (3)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