PDA

View Full Version : Search string for each forum ?


08-24-2000, 03:50 PM
well i got this off another forum and have seen it mentioned here...

using this string url
http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1

i can bring back the posts done in the past day in all forums... but i was wondering if there is such a string to bring back posts done in each forum

so i can add a link to each forum page like

View posts in this forum for the past 1 day

can this be done without actual hacking ?

08-24-2000, 05:32 PM
well wasn't that hard to find... all i needed to do was add &forumchoice=3 to the end of this url

http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1

so http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&forumchoice=3

for forum id = 3 etc

08-24-2000, 05:36 PM
just one problem how do i add it to the forumdisplay template so that

&forumchoice=x

where x is the id of the forum ?

08-24-2000, 05:44 PM
oh well figured it out

http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&forumchoice=$forumid :D

08-24-2000, 09:16 PM
wow.......answered all your own questions...this is a new one on me :D

This is a real useful bit of info...thanks! ;)

~Chris

08-24-2000, 09:55 PM
yeah looking back on it, it seemed strange talking to myself :lol

08-25-2000, 01:36 AM
No, talking to yourself is normal.

No, Mike, it's not normal.

Dammit! Yes it is...

:D

(sorry, he gets a little off topic...)

{SHUT UP!)

08-25-2000, 01:51 AM
hehe... ***looks up at which forum this is and asks...*** btw, which forum are you meant to mod, Mike ? :D

08-25-2000, 02:06 AM
No wonder you have so may posts, you talk to yourself.

08-25-2000, 10:02 AM
just following the almighty mod, Mike's lead :D

08-25-2000, 01:26 PM
Hey, you started it!

Anyway, if you want to continue (or if I do), can we take it to the Chit Chat forum?

08-25-2000, 01:28 PM
nah... this one can end here... :)

08-25-2000, 02:51 PM
you guys are quite odd...

08-26-2000, 10:23 AM
well here's another one, since i don't know php, this is my little contribution :(

search string to display for the last 24 hrs, post user/member sorted by particular forum

http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$searchuser&forumchoice=$forumid

i.e. this http://www.vbulletin.com/forum/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=eva2000 will bring back all the posts i did in the last 24 hrs...


http://www.vbulletin.com/forum/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=eva2000&forumchoice=8

this will bring back all the posts in this forum that i made in the last 24 hrs

does anyone have a list of all the functions for these strings ?


[Edited by eva2000 on 08-26-2000 at 07:30 AM]

08-26-2000, 07:57 PM
Can you use:

http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$username&forumchoice=$forumid

Parker

[Edited by Parker Clack on 08-26-2000 at 04:57 PM]

08-30-2000, 03:10 AM
yep that's the one i used above your post = http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$searchuser&forumchoice=$forumid

question: is there a way to put that or this
http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$searchuser

into a text field box so typing in the username brings back all posts by that user in the last 24 hrs ?

08-30-2000, 03:36 AM
Originally posted by eva2000


question: is there a way to put that or this
http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$searchuser

into a text field box so typing in the username brings back all posts by that user in the last 24 hrs ?

Sure you could do that. Try something like this:

<form method="get" action="search.php" name="">
<input type="text" name="searchuser" value="$searchuser">
<input type="submit" name="Submit" value="Search user!">
<input type="hidden" name="forumchoice" value="$forumid">
<input type="hidden" name="searchdate" value="1">
<input type="hidden" name="getdaily" value="yes">
</form>

08-30-2000, 04:35 AM
Here is what I used and it seems to work ok. You can play around with the variables for the number of days to look back for with the username.


<table width="100%">
<td align="right">
<form method="get" action="search.php" name="">
<smallfont>Search by Username</smallfont>&nbsp;
<input type="text" name="searchuser" value="$searchuser">
<input type="submit" name="Submit" value="Go">
<input type="hidden" name="forumchoice" value="$forumid">
<input type="hidden" name="searchdate" value="1">
<input type="hidden" name="getdaily" value="yes">
<input type="hidden" name="action" value="dosearch">
&nbsp;<smallfont><A HREF="http://www.hometheaterforum.com/htforum/search.php?getdaily=yes&action=dosearch&searchdate=1&forumchoice=$forumid">
View Posts Over Last 24 Hours</A></smallfont>
</form>
</td>
</table>