![]() |
Google-Search
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 |
Screenshot
|
kewl hack, nice work
|
hey very nice..
|
I think it's sort of neat also, never knew you could imbed google results on your site.
|
Cool. :)
|
Would be nice if there were a little better detailed information on which pear files you need. Plus where do you put them. Instructions said nothing to the sort of where they go. Overall this looks to be a good hack. Would even be better if the instructions were more CLEAR.
|
Shame pears are not independable.
|
Quote:
ve got SOAP_Google.php, Net_DIME-0.2.tgz, and SOAP-0.6.2.tgz. But now what? Is this something that someone with a shared hosting account can use, or do I have to have root access to the server? |
Indeed...I would like to know this:)
Satan |
Unzip the PEAR-Classes and upload them in the following format on your webserver:
Code:
/pear |
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? |
Quote:
|
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...
|
Don´t forget to enter "/home/jjr512/pear" in websearch.php
|
Hey! It works! Woohoo! :D
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. :) |
At first, when I saw this, I asked myself how to get the pear things, noow that I know, I will install. Thanks. :)
|
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. :) |
Quote:
|
I did, but I still couldn't find it :(
EDIT: I just saw the search box and found it :) |
I just installed it but when I submit a search, it gives me a blank page. :(
|
Quote:
|
yes, otherwise I wouldn't been able to see the front page of the search.
EDIT: I just double checked. All 3 are there. |
Quote:
Code:
<form method="get" action="$PHP_SELF"> Code:
<form method="get" action="websearch.php"> This must be done 2 times (for the searchboxes at the top and the bottom) |
I am having the same problem.
It seems like the script terminates inside PHP Code:
|
Sparkz: And when you put debug-text above that? Will that show up?
|
My debug text... :)
I'm getting a blank page like Link up here... Tried debugging my way through the script and that's where I ended up. |
hmmm
you have the google-key entered? |
yup.
In any case, if I didn't, I'd expect to get a reply back telling me about this :) |
Looks like it dies while trying to execute
PHP Code:
|
is your webserver behind some kind of firewall that makes trouble?
|
It is behind a firewall, but I don't think traffic originating from the inside is restricted...
|
or try these pear-classes. they are the same that i´m using. perhaps we have diffrent versions or something like that.
|
Just spoke with the sysadmin there. Shouldn't be any restrictions on outgoing traffic at all.
|
Trying your pear stuff now... I downloaded mine fresh from CVS 30 minutes or so ago
|
perhaps this helps. which php-version are you using? as modul or cgi? linux or windows?
|
No luck..
PHP-4.2.2 as DSO, apache-1.3.26 on a RH7.1 PHP and apache (and most everything else too, for that matter) compiled from scratch by me. |
hmmm
i?ve the same config. strange. don?t know why it doesn?t work on your forum. but... hmmm... last chance: perhaps there is an old pear-version in the includepath from the php.ini. at line 10 in websearch.php change Code:
$ipath.=":$pearpath"; Code:
$ipath=".:$pearpath"; |
No luck... Weird...
I have tried juggling with the include_path too... Search the system for pear-related stuff too... Only the standard stuff that comes with the PHP-install |
I was getting a blank page, too, before I knew how to setup the pear stuff and the other stuff. Once Hotte explained it to me, I didn't have the problem anymore. Are you sure you have it setup exactly as he described above?
|
All times are GMT. The time now is 04:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|