Jump to content
Sign in to follow this  
VJ

[Contribution] WebSearch for OSC v1.0 released

Recommended Posts

WebSearch for OSC(MS2) v1.0 is now available at http://www.oscommerce.com/community/contributions,1360.

 

This add-on lets you search the Web from a search infobox. And, it runs on Google API, producing the same matches as when you search Google.

 

This add-on was developed and tested on OSC 2.2MS2.

 

You can find this add-on in action, at http://www.vjdom.com.

 

VJ

Share this post


Link to post
Share on other sites

VJ :lol:

 

You make some awsome addons!!, thats a great addition

I read somewhere that placing external seaches on your site can generate loads more traffic... love how it moulds into the theme rather then take on the standard Google look. :arrow: :shock:

 

Cheers MaxiDVD

Share this post


Link to post
Share on other sites
You make some awsome addons!!, thats a great addition  

I read somewhere that placing external seaches on your site can generate loads more traffic... love how it moulds into the theme rather then take on the standard Google look. :arrow: :shock:  

 

Gee, thanks :-).

 

Ahhh, good to hear external searches help traffic... didn't realize that before.

 

VJ

Share this post


Link to post
Share on other sites

Dear VJ,

Thanks for the great addon.

I do have a problem with it, so if you can help me I would really appreciate it.

 

Fatal error: Call to a member function on a non-object in /home/sites/miracles/public_html/shop/includes/classes/web_search_results.php on line 47

 

Thanks so much

Edited by mattice

Share this post


Link to post
Share on other sites

Here is the code:

      $this->gs->setQueryString($this->search_string);	

    $rs = $this->gs->doSearch();
     $this->number_of_rows = $rs->getEstimatedTotalResultsCount(); //line 547

     //result accuracy
     $this->result_accuracy = $rs->getEstimateIsExact() ? TEXT_DISPLAY_WEB_SEARCH_RESULT_EXACT : TEXT_DISPLAY_WEB_SEARCH_RESULT_APPROX;

 

 

getEstimatedTotalResultsCount is located in /includes/GoogleSearch.php

Share this post


Link to post
Share on other sites

Guys,

 

I have enhanced the cosmetic look of the WebSearch for osC.

 

Check out the new revision in the contribution library/database.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×