Page 1 of 1

Search query from a URL

Posted: Wed Jan 10, 2018 3:42 pm
by Shira
Would it be possible to have a URL where we can "launch a search"? i.e aioncodex.com/us/query=kroban

I'm the developer of ARM (dps meter tool for Aion) and I would like to add an in-game command like ".codex kroban" and it would open the browser with your website and the search query. You could perform the search after loading the page just like how it works now to prevent leeching etc (to avoid getting the data without actually visiting your site and thus negating your ad revenue).

Re: Search query from a URL

Posted: Thu Jan 11, 2018 8:16 pm
by Kiriak
You can use the existing script for this:
http://aioncodex.com/query.php?a=search&l=us&sq=kromede
"kromede" here is the search keyword.

Re: Search query from a URL

Posted: Fri Jan 12, 2018 8:22 am
by Shira
Kiriak wrote:
Thu Jan 11, 2018 8:16 pm
You can use the existing script for this:
http://aioncodex.com/query.php?a=search&l=us&sq=kromede
"kromede" here is the search keyword.
But that just gives me the data, I want to load your site as if the user performed a search normally

Re: Search query from a URL

Posted: Fri Jan 12, 2018 3:10 pm
by Kiriak
You can parse that data and present it in any form you wish to.

Re: Search query from a URL

Posted: Fri Jan 12, 2018 3:17 pm
by Shira
I know, but I'd prefer to just direct the user to your website as if they entered the url and performed a search, then continue in the browser.

Re: Search query from a URL

Posted: Fri Jan 12, 2018 5:56 pm
by Kiriak
The data returned by the script has it all to construct any result you need.
But if you want to have just a direct link, how about this:
http://aioncodex.com/us/search/?query=kroban

Will it be enough for you?

Re: Search query from a URL

Posted: Sat Jan 13, 2018 9:51 am
by Shira

Re: Search query from a URL

Posted: Sun Jan 14, 2018 11:00 am
by Kiriak
Thanks for your support of my new site!