New search interface?

Come here for help or to post comments on Sphider
Post Reply
timp
Posts: 5
Joined: Thu Oct 19, 2017 6:29 am

New search interface?

Post by timp »

Sphider was written in the days before CMS were common (I used it back then) and is therefore not designed to work within one.

This is fine for the 'back end' process but quite difficult for the search function. I've used some javascript to make it work within a iframe in MODx. (See challengenews.online/challenge/search/?query=&search=1. (The Intrusion Detection System incorporated into the version of Sphider on that site causes a problem if I define the link as a link!)

The search returns it's own HTML at present. I would suggest it be changed to return an array and then the user interface part use the array.

The end result would probably look identical to what is there now, but it would create the ability create a different front end, from within a CMS, for example. It would not be a difficult step to extend that to a back end that returns a JSON string.

Tim
User avatar
captquirk
Site Admin
Posts: 299
Joined: Sun Apr 09, 2017 8:49 pm
Location: Arizona, USA
Contact:

Re: New search interface?

Post by captquirk »

Actually, if you look at the code, it already DOES return an array! Each page of results is an array, and the number of elements is user defined, with the default set at 10.
timp
Posts: 5
Joined: Thu Oct 19, 2017 6:29 am

Re: New search interface?

Post by timp »

Sorry, I haven't gotten very deeply into the code yet.

Does that mean it would be relatively straightforward to split the search into service and presentation components?

Tim
User avatar
captquirk
Site Admin
Posts: 299
Joined: Sun Apr 09, 2017 8:49 pm
Location: Arizona, USA
Contact:

Re: New search interface?

Post by captquirk »

Should be very easy with anyone knowledgeable in PHP.
SantiagoSow
Posts: 1
Joined: Mon Jan 22, 2018 10:36 am

Re: New search interface?

Post by SantiagoSow »

timp wrote: Sat Nov 11, 2017 5:04 am Sorry, I haven't gotten very deeply into the code yet.

Does that mean it would be relatively straightforward to split the search into service and presentation components?

Tim
Hi Tim, this would be done with php. Did you manage to figure out how to do it?
This is the best way to use Hydromax ever.
Post Reply