Search query from a URL

Here you can ask your questions and post suggestions about site's development.
Post Reply
Shira
Posts: 6
Joined: Wed Jan 10, 2018 2:11 pm

Search query from a URL

Post by Shira » Wed Jan 10, 2018 3:42 pm

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).

User avatar
Kiriak
Site Admin
Posts: 18
Joined: Wed Sep 11, 2013 10:30 am

Re: Search query from a URL

Post by Kiriak » 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.

Shira
Posts: 6
Joined: Wed Jan 10, 2018 2:11 pm

Re: Search query from a URL

Post by Shira » Fri Jan 12, 2018 8:22 am

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

User avatar
Kiriak
Site Admin
Posts: 18
Joined: Wed Sep 11, 2013 10:30 am

Re: Search query from a URL

Post by Kiriak » Fri Jan 12, 2018 3:10 pm

You can parse that data and present it in any form you wish to.

Shira
Posts: 6
Joined: Wed Jan 10, 2018 2:11 pm

Re: Search query from a URL

Post by Shira » Fri Jan 12, 2018 3:17 pm

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.

User avatar
Kiriak
Site Admin
Posts: 18
Joined: Wed Sep 11, 2013 10:30 am

Re: Search query from a URL

Post by Kiriak » Fri Jan 12, 2018 5:56 pm

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?

Shira
Posts: 6
Joined: Wed Jan 10, 2018 2:11 pm

Re: Search query from a URL

Post by Shira » Sat Jan 13, 2018 9:51 am


User avatar
Kiriak
Site Admin
Posts: 18
Joined: Wed Sep 11, 2013 10:30 am

Re: Search query from a URL

Post by Kiriak » Sun Jan 14, 2018 11:00 am

Thanks for your support of my new site!

Post Reply