![]() |
Two issues.
1. While I've been testing this and customizing the templates for my site a bit, I've been using this test search: lyrics "road to nowhere" So I could compare how the results look on my site with the real Google, I did the same search there, too. And I've noticed that my site does not have the exact same set of results that the real Google has. Check it out for yourself. You'll see that the first result is the same, but from there, they start to get more different. Why is this? 2. With the same test search as just mentioned, when the results come back, the search box is filled only with lyrics. In other words, the entire part in the quotes has been dropped out. |
I was able to solve Issue #2 by making the following changes to your websearch.php.
Near the bottom, find this line: PHP Code:
PHP Code:
Also: Because Google limits our accounts to 1000 searches per day, this isn't something that you probably want just anybody being able to use. You have an exclusion to not allow unregistered/unlogged-in people to use it, but I've gone a step further. I've added a new usergroup setting so that you can set each usergroup to be able to use it or not. This may be useful to people who have more privilege levels than what standard vBulletin offers, such as paid members vs. non-paying members, or whatever the case may be. If you'd like instructions on how to set this up, let me know. |
Quote:
|
I read them, I just don't understand them enough to know that, lol. :D
|
LOL :)
|
Quote:
|
Quote:
|
Can we have a live demo please?
I can't get this to work :=( All i get is a search result blank page :confused: |
Me too. Ive tried about 4 hours, and make all step by step. Nothing appears after searching. The "websearch-Page" is there and when i search i get a blank white screen.
This sucks! What can i do. I want this hack, but i don?t know what to do.... My Forum is in the webdirectory called "forum". In this directory is the pearl-folder with the content "soap(with the classes)", "soap_google", "net (with dime.php)".... Please help! ;) |
Try the following: Download the latest pear-base system @ http://pear.php.net/package-info.php?pacid=14 (or use the attachment)
Upload the unzipped file in your pear-directory with all subdirectories. make sure you entered your pearpath in websearch.php then change Code:
$ipath.=":$pearpath"; Code:
$ipath=".:$pearpath"; |
BINGO :)
You have to edit your php.ini file and check include-path. |
Very nice *hack* Hotte, thanks :)
|
there is no need to edit the php.ini for the include_path. this is done by the script. but i wonder why a missing pear-class doesn´t produce errors. hmmm
|
I've been getting some emails, instant messages, etc. from people asking me how I got this to work. Some are asking me how, exactly, I setup the pear/soap/etc. files. All I can say is, I setup all those files exactly as Hotte described earlier with his directory tree diagram, and edited the path to those files into websearch.php, and after that, it worked fine. Make sure the path you put into websearch.php is an absolute path, like /home/accountname/pear, not a URL-type path. That's really all I can say; I can't explain it any better than that, because I followed that tree precisely and followed the other directions precisely, so if I tried to explain how I got it to work for me I'd just be repeating what Hotte has already said. Sorry to anyone else who can't get it to work. :(
|
He Guys it works......i cant stand it it works!!!
This is bringing me down!! :) |
Ok, for all who have problems getting this hack working (blank page after submitting a search):
Download all the required PEAR-Classes at http://pear.php.net or get this attachment. Upload the pearclasses where you want on your server. I suggest to put them outsite the document-root. After you uploaded the pearclasses, you must have the following structur of you peardirectory: Code:
|- OS |
Working flawlessly with search.php, there's no need to have a websearch.php file :)
Something like: 1st table - Forum Search Engine 2nd table - Search Options 3rd table - Websearch Engine - Powered by Google |
could you explain the steps?
|
i can explain the steps how to integrate the google-search into the regular search. but for now, i´m enjoying my beer.
|
Cheers!
|
It's Hotte's hack, and i'll not do anything without his permission :)
|
nuno: feel free to explain the steps how to integrade the google-search into the regular search. it should nothing more than add the actions to search.php + a small template modification :)
Myself prefer hacks that are as most compatlible to upgrades as possible :) |
Ok
Lemme know what you think then enjoy :) |
edited the first post with a link to your post nuno
|
Okie dokie, thanks Hotte :)
Waiting to hear some feedback from you guys. :banana: |
Hello Guys!!
My Serach works great, and my users love it!! Is there any way to put this options in the websearch?? See Attachment!! Thanx!! :D |
Thank you nuno, very kind
|
Hmm, I just seem to get the DIME CVS log when I submit a search?
|
ok, found the problem.
Doesn't work with php version below 4.1 :( |
Updated php... works GREAT :)
Nice hack, well done. |
Hi all,
im getting the following error (using php 4.2.1) Fatal error: Call to undefined function: xml_parser_create() in /bla/bla/pear/SOAP/Parser.php on line 93 any Ideas? Tina |
You need to configure your PHP with xml support.
You can find more info here: http://www.php.net/manual/en/ref.xml.php |
Hi Sparkz,
thanks for the info. I thought that would be it but wasnt sure. got it working now - great stuff! |
How can make the result can display chinese or japanese ....
those asian language ... my return result all that name become "?" .... any idea ? thanks |
no one know how to dispaly the chinese in the result page ??
because all the asian language become "?" in my forum ! |
hey , why no body answer my question ??
really no one know the answer ?? |
it "works" however i get this above the header template when i get the search results
Quote:
|
Quote:
|
When I try to use the search, I see the following message:
Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/joost/forum/websearch.php on line 13 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/joost/pear/SOAP_Google.php on line 18 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/joost/pear/SOAP/Client.php on line 23 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/joost/pear/SOAP/Value.php on line 22 Warning: open_basedir restriction in effect. File is in wrong directory in /www/htdocs/joost/pear/SOAP/Base.php on line 37 What's that means |
This hack is awesome, but I want to see a Live Demo before installing it, also a new version a bug-free version would be GREAT! :nervous:
|
All times are GMT. The time now is 04:17 AM. |
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:
|