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
Google-Search Details »»
Google-Search
Version: 1.00, by Hotte Hotte is offline
Developer Last Online: Jan 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-24-2002 Last Update: Never Installs: 28
 
No support by the author.

Hi
with this hack you can get your own google-search from your vbulletin. This hack needs some PEAR-Classes and you need a google-account.

Requirements:
- you need the following PEAR-Classes:
- SOAP (available at http://cvs.php.net)
- Net/Dime (available at http://cvs.php.net)
- SOAP_Google (available at http://www.sebastian-bergmann.de/?page=google)
- Google-Account (free at http://www.google.com/apis/)

installation notes
Make sure that you have the required pear-classes installed. Infos about PEAR are available at http://pear.php.net
If you receive require/include-errors edit websearch.php and add the path to pear.
Edit websearch.php and enter your google-key
Upload websearch.php to your forums-directory
add the 3 templates
create a link to websearch.php where you want

Have fun

edit: If you don?t want getting the pearclasses from cvs, take a look here

get a blank page after submitting the search? read this

want to integrade the google-search into your regular search enginge? look here

Show Your Support

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

Comments
  #12  
Old 07-26-2002, 11:37 AM
Hotte Hotte is offline
 
Join Date: Oct 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unzip the PEAR-Classes and upload them in the following format on your webserver:
Code:
/pear
|
+-> SOAP_Google.php
|
+-> /pear/Net
  |
  +-> Dime.php
|
+-> /pear/SOAP
  |
  +-> <files from the SOAP-0.6.2.tgz>
Then enter the absolut path to the pear-dir in the websearch.php
Reply With Quote
  #13  
Old 07-26-2002, 11:56 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And I don't need root access to do this? I read somewhere that all this should be above the web root, to prevent people from executing some of the scripts over the Internet.

Let me just make sure I got this straight.

I'm on a shared server. My webroot is: /home/jjr512/public_html (That's where I put the vB root, too.) So I could put all this starting in /home/public/pear, correct?
Reply With Quote
  #14  
Old 07-26-2002, 12:00 PM
Hotte Hotte is offline
 
Join Date: Oct 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
I'm on a shared server. My webroot is: /home/jjr512/public_html (That's where I put the vB root, too.) So I could put all this starting in /home/public/pear, correct?
Why /home/public/pear? Upload pear to /home/jjr512/public_html/pear or /home/jjr512/pear if you don?t want the classes accessable from the browser.
Reply With Quote
  #15  
Old 07-26-2002, 12:02 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, misspoke... /home/jjr512/pear is what I meant. Other than that, it's all good? I'm about to upload it all, so I guess I'll find out in a moment...
Reply With Quote
  #16  
Old 07-26-2002, 12:05 PM
Hotte Hotte is offline
 
Join Date: Oct 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don´t forget to enter "/home/jjr512/pear" in websearch.php
Reply With Quote
  #17  
Old 07-26-2002, 12:06 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey! It works! Woohoo!

Next time you need a nomination for Hack of the Month...let me know!

My only suggestion would be to find a way so that on the initial page, before you do a search, the search box only appears once. I understand you have it twice so that after someone does a search, the search box will appear both above and below the results, but before there are any results, having the exact same thing twice, one above the other, looks a little silly.
Reply With Quote
  #18  
Old 07-26-2002, 06:00 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

At first, when I saw this, I asked myself how to get the pear things, noow that I know, I will install. Thanks.
Reply With Quote
  #19  
Old 07-26-2002, 06:16 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need to get the SOAP class, but I'd have to download the files 1 by 1. Where can I get a zipped (or tgz) forms of it? I can't find it anywhere.

Nice hack, BTW.
Reply With Quote
  #20  
Old 07-26-2002, 06:35 PM
Hotte Hotte is offline
 
Join Date: Oct 2001
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Link14716
I need to get the SOAP class, but I'd have to download the files 1 by 1. Where can I get a zipped (or tgz) forms of it? I can't find it anywhere.

Nice hack, BTW.
Take a look at the last line of my first post
Reply With Quote
  #21  
Old 07-26-2002, 06:55 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did, but I still couldn't find it

EDIT: I just saw the search box and found it
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 07:08 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.06772 seconds
  • Memory Usage 2,307KB
  • 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
  • (1)bbcode_code
  • (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
  • (3)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