![]() |
Different way to display posts of a user
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? |
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"> |
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 |
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.
|
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:
|
So you got it to work? All right!
|
Quote:
|
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.
|
Works! You're my new internethero ;)
|
All times are GMT. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|