PDA

View Full Version : Trigger/submit search via GET URL params


sinucello
01-02-2009, 02:18 PM
Hi,

I installed ubiquity (http://labs.mozilla.com/2008/08/introducing-ubiquity/) and would like to add a command for searching my vBulletin forum.

Is it possible to trigger the vBulletin search directly via GET and some URL params?

I tried:
http://www.vbulletin.com/forum/search.php?query=usability&titleonly=1&dosearch=1
which calls the search form with the right options but I still have to submit the form manually.

That makes sense for guest-users as I don`t want to deliver a captcha-workaround for spammers but if a user is already logged-in (cookie) the form should be submitted automatically.

Is this possible?

Thank you - all the best,
Sacha

Lynne
01-02-2009, 02:54 PM
It is possible to trigger search via GET parameters, but they need to be valid parameters. Your query url above is missing the most important parameter - do=process. Try adding that in and see if it does what you want.

sinucello
01-02-2009, 03:21 PM
Hello Lynne,

that was exactly what I needed.

thank you very much,
Sacha