SA-MP Forums Archive
[HELP] Auto-generate a search query on sa-mp forums. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: [HELP] Auto-generate a search query on sa-mp forums. (/showthread.php?tid=640869)



[HELP] Auto-generate a search query on sa-mp forums. - Eoussama - 08.09.2017

Hello there everyone,
first of all, do not be deceived by the title and think that's something fancy or anything, I just couldn't find a more reasonable title, that's all.

Lots of users on forums put links that forwards you to a list of all their work,
I tried to do the same, I went a head and filtered my search query to show only threads started by me in specific sections, but the query had some sort of Id (can be seen on the url) that expires after few minutes,

I'm here to ask if anyone could tell how can I generate auto search queries that do not expire.


Re: [HELP] Auto-generate a search query on sa-mp forums. - Kaperstone - 08.09.2017

Try to host a list with links?
You can make a list on github and view it as raw or somethin'


Re: [HELP] Auto-generate a search query on sa-mp forums. - cuber - 08.09.2017

Replace the "showthread.php" with "showpost.php". Replace the "p=" with "t=". After the large number type "&postcount=number" of the post.

EXAMPLE:
https://sampforum.blast.hk/showthread.php?pid=3925255#pid3925255

http://forum.sa-mp.com/showpost.php?...5&postcount=15


Re: [HELP] Auto-generate a search query on sa-mp forums. - SimonItaly - 08.09.2017

Код:
http://forum.sa-mp.com/search.php?do=finduser&u=<userid>
Код:
http://forum.sa-mp.com/search.php?do=finduser&u=<userid>&starteronly=1
For example, this
http://forum.sa-mp.com/search.php?do...&starteronly=1
should give you all the threads I've ever started, even if you're not logged in.

It works with wget.



The regex is unfinished and the HTML tags are messy, but it kinda works.


Re: [HELP] Auto-generate a search query on sa-mp forums. - Freaksken - 08.09.2017

Information about a search via URL can be found here.

Mine is the following:
Код:
http://forum.sa-mp.com/search.php?do=process&searchuser=Freaksken&exactname=1&starteronly=1&sortby=forum&order=ascending&forumchoice[]=21&forumchoice[]=70&forumchoice[]=84&forumchoice[]=71&forumchoice[]=17&forumchoice[]=83&forumchoice[]=82&forumchoice[]=64&forumchoice[]=18



Re: [HELP] Auto-generate a search query on sa-mp forums. - Eoussama - 08.09.2017

Thanks a lot guys, that helped.