The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Search The Internet v1.0 (Major Engines) Details »» | |||||||||||||||||||||||||
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
|
Comments |
#12
|
|||
|
|||
I just installed. I have 2 questions:
1-what is the purpose of the second template search_the_internet_window ? 2-How do I get rid of the java error from a search result? Whether google's , yahoo etc... the search engine website always comes up with a java error. |
#13
|
|||
|
|||
Nice hack. Could be useful to my forum. Thanks.
|
#14
|
||||
|
||||
Cheers for the input.
DestyNova, no, not really - 1 template will be pulled in to each page (for the search bar, which won't give any performance loss), but apart from that, no. If you opt to use the logs, then 1 query will be added (only if somone searches), but it's very small... again, you won't notice a loss in performance. Lionel, the purpose of the 'search_the_internet_window', is to keep the results of any search "clean". It's the new window that pops up to display your search results. And, which JavaScript error are you getting? Is it the one telling you that you cannot be auto. re-directed, because you have no javscript support (or have it disabled), or does the search engine page with the results come up, but you have JavaScript errors? If it's the latter of those two, the JavaScript errors will be from the search engine site itself. Again, cheers everyone for the input. ... ps : oops.. I forgot to say earlier... if the "error" is the one saying you cannot be re-directed because of no JavaScript support, then don't worry, that's normal... the script takes this into account, and outputs a URL for you to click on, which will take you to the search results. Lionel... i've used this add-on/hack at your site, and i'm not getting any errors. What browser are you using? |
#15
|
||||
|
||||
Works like a charm hasnt installed for a complete hour yet, and my users are already using it like mad
http://www.ochroma.net/forums my users are wanting to know if there is a way to add www.ditto.com search engines, it some search engine that lets you search for avatars I believe. |
#16
|
||||
|
||||
Yep, search engines can be added easily, i'll go through a little tutorial here in a moment, using your www.ditto.com as an example.
Watch this space. |
#17
|
|||
|
|||
tHE DSS
thanks for answer my QQ, I m going to install this one :thumbup: good job |
#18
|
||||
|
||||
Adding more search engines to this hack is really quick and easy. Just follow this guide.
First thing to do, is get the URL and parameters that the new search engine needs/takes. Using hypedave's suggestion for Ditto.com as an example, I went to http://www.ditto.com, and did a search for footballs... this gave me the results, and from the address bar, I took the URL of : http://ditto.com/search_results.asp?ss=footballs&viewstyle=compact Look for your search string in the URL to get the search string parameter for that search engine. Here, I looked in the URL for footballs. I see ss=footballs, so, the search string parameter for Ditto.com, is ss= You may need to re-arrange the URL to work with this hack, as the search string parameter in this hack, needs to be the very last parameter in the URL. So, i've just moved this one, so the URL now looks like this (I did this in Notepad) : http://www.ditto.com/search_results.asp?viewstyle=compact&ss= ... the search string parameter (ss=), is now the last parameter. There is another parameter for Ditto.com, for viewstyle... I chose the "compact" for this example. You can see that in the URL. Now, open up the 'websearch.php' script, and find the following : PHP Code:
PHP Code:
Save the 'websearch.php' file. Now, you need to edit the 'search_the_internet' template. In this template, find this : Quote:
Quote:
========== ========== The only other thing to do, is if you are keeping search logs. In this case, the statistics script won't recognise your new engine (ditto.com here).... it's not a problem whilst searching for logs, but the main stats page, where you get a count by engine, counts will show up as (Unknown Engine ... so, if you want it to actually tell you it's Ditto.Com, open up your 'stistats.php' file, and find the following : PHP Code:
PHP Code:
That's it... that's all you got to do. Just make sure that when adding engines, you keep the engine's 'key value' consistent through-out each change... here, the keyword is simply 'ditto'... like in : $engineName_array = array('google','yahoo','altaVista','excite','lycos ', 'ditto'); option value="ditto">Search -> Ditto case "ditto" : doSearch("http://www.ditto.com/search_results.asp?viewstyle=compact&ss="); break; I find that the most damndest part, is getting the search engines needed parameters... as somtimes, the only effective way of doing it, is viewing their page source, and looking at their HTML FORM keys. Doing it the URL way though, should be fine for most of the time. Happy searching. |
#19
|
|||
|
|||
wow, great can you update your hack?
|
#20
|
||||
|
||||
Hiya, DestyNova.
I would update the hack, but i'm not sure that the majority of people would like Ditto.com as part of the default installation. If I was to be told otherwise, then yeah, i'd certainly update it. If it is the Ditto.com engine that you would like, but feel that you might not be able to follow the above guide fully, then PM me an email address, and i'll send you an edited copy, with the Ditto.com added. |
#21
|
||||
|
||||
works great thank you very much "tHE DSS" !!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|