The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I want to tweak a call to search.php, so it does something similar as "search.php?do=finduser&u=[insert_userid]", but it doesn't display a list of posts of that user, but a list of the threads the user has replied in ( Quite similar to the list that you get when using search.php?do=getnew and ordered by the date of the last reply (of any user) in that thread ) Is that even possible with a different call to search.php? If it's not, is there a plug-in that implements this "my active threads"-feature? |
#2
|
||||
|
||||
![]()
If you look at the Advanced Search page you'll see a checkbox for whether you want the results returned as Thread or Posts:
HTML Code:
<fieldset class="fieldset"> <legend>Show Results as</legend> <div style="padding:3px"> <label for="rb_showposts_0"><input type="radio" name="showposts" value="0" id="rb_showposts_0" checked="checked" />Threads</label> <label for="rb_showposts_1"><input type="radio" name="showposts" value="1" id="rb_showposts_1" />Posts</label> </div> </fieldset> |
#3
|
|||
|
|||
![]()
Hmm, that is a clue in the right direction
![]() How do I incorporate this showposts in an url? So I want something like this, but not exactly this, because this example doesn't work: ![]() /search.php?do=finduser&u=1095&showposts=0 |
#4
|
||||
|
||||
![]()
It doesn't look like that is a valid parameter for finduser (look around line 3468 in search.php). If you look at the Advanced Search page, you'll see that you can do what you want, you just don't use finduser as the 'do' variable. Take a look at the form and see if you can figure it out. If not, post back and I'll take a look at it.
|
#5
|
|||
|
|||
![]()
Thank you for your help Lynne. You're probably a good teacher, because you pointed me in the right direction, without giving me the answer immediately
![]() Code:
<form name="MyAT" method="post" action="search.php?do=process"> <input type="hidden" value="process" name="do"/> <input type="hidden" value="1" name="quicksearch"/> <input type="hidden" value="1" name="childforums"/> <input type="hidden" value="1" name="exactname"/> <input type="hidden" value="" name="s"/> <input type="hidden" value="0" name="showposts" /> <input type="hidden" value="$bbuserinfo[securitytoken]" name="securitytoken"/> <input type="hidden" value="$bbuserinfo[username]" name="searchuser" /> <input class="button" type="submit" value="My Active Topics"/> </form> ![]() |
#6
|
||||
|
||||
![]()
So you got it to work? All right!
|
#7
|
|||
|
|||
![]()
Yup, it works!
![]() |
#8
|
||||
|
||||
![]()
Hmmm, I do know that search looks to see if the query has already been performed recently - see the code around line 440. So, if you have 'nocache' set to true, it will not do that. I'm not sure if that is something you can set in your form as a hidden input? It might be worth a try.
|
#9
|
|||
|
|||
![]()
Works! You're my new internethero
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|