{"id":196,"date":"2006-11-05T21:47:41","date_gmt":"2006-11-06T05:47:41","guid":{"rendered":"http:\/\/wapreview.com\/?p=196"},"modified":"2021-07-24T12:18:34","modified_gmt":"2021-07-24T19:18:34","slug":"wap-review-mobile-search-box","status":"publish","type":"post","link":"https:\/\/wapreview.com\/196\/","title":{"rendered":"Wap Review Mobile Search Box"},"content":{"rendered":"

\"I’ve added a search form to Wap Review Mobile. I was starting to have trouble finding my older posts and I figured my readers might appreciate being able to search the mobile blog too. On the PC edition of Wap Review I just use Google’s Site Search and I would have liked to do the same for mobile. Unfortunately, Google’s TOS, at least as I interpret it, doesn’t let you create your own search form which calls the mobile search engines at google.com\/xhtml or google.com\/wml.<\/p>\n

I tried a half dozen or so PHP site search modules and didn’t like any of them until I happened on Sphider<\/em> by Ando Saabas, which is a truly beautiful peace of code. It’s Open Source, clearly documented and has a slick admin panel that lets you configure it extensively. Installation was straight-forward and it worked out of the box the first time. Of course Sphider isn’t mobile specific, the search form and results pages need to be adapted for a mobile site. Sphider cleanly separates logic from presentation with all the html and css isolated in a template directory. You can have as many templates as you want each implementing different features and layout and you can switch templates from the Sphider console. I created a mobile template with accesskeys and some rudimentary browser sniffing to serve the search form and results as wml, cHtml or xhtml-mp depending on browser capabilities. I’m still working on the wml support for yeswap.com but when I finish I’ll make the mobile template available for download.<\/p>\n

Sphider uses search syntax almost identical to Google so using it should be self  explanatory. And, Or, +, –<\/em> and stemming<\/a> are all supported and Sphider will even suggest alternate spellings just like Google.<\/p>\n

Let me know if you find the search useful or encounter a bug and if you are looking for a site search engine, check out Sphider.<\/p>\n

Update: Sphider 1.3.6 and earlier have been found to have multiple security vulnerabilities<\/a>. I no longer use it on my sites and do not recommend it. <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

I’ve added a search form to Wap Review Mobile. I was starting to have trouble finding my older posts and I figured my readers might appreciate being able to search the mobile blog too. On the PC edition of Wap Review I just use Google’s Site Search and I would have liked to do the same for mobile. Unfortunately, Google’s TOS, at least as I interpret it, doesn’t let you create your own search form which calls the mobile search … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":21580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[211,964],"_links":{"self":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/196"}],"collection":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/comments?post=196"}],"version-history":[{"count":5,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":22965,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/posts\/196\/revisions\/22965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/media\/21580"}],"wp:attachment":[{"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/media?parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/categories?post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wapreview.com\/wp-json\/wp\/v2\/tags?post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}