View Full Version : How to add direct link to find all my posts when logged in?
jpietrowiak
01-06-2011, 02:20 AM
I would like to add direct link to find all my posts when logged in to VB to add to either navbar or welcome user box. Is this possible? I see I can do it by going to the search function enter my user name but would like a direct link for my forum so people can find there posts easy if they do not subscribe to them.
Thanks for any help you can provide.
Digital Jedi
01-06-2011, 07:14 AM
The URL for that kind of search would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid].
For threads started it would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1.
jpietrowiak
01-06-2011, 07:10 PM
That worked perfectly!! Thanks Digital Jedi
slehmann
01-12-2011, 10:16 PM
The URL for that kind of search would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid].
For threads started it would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1.
I added and thought it was working great but just realized that the one for threads started is bringing up threads that I have replied to but not started.
jpietrowiak
01-12-2011, 10:49 PM
Your right Slehmann, I didn't even notice that I wonder if there is a way to do it?
Digital Jedi
01-14-2011, 02:14 AM
It shouldn't. That's just a slightly tweaked version of the link from MEMBERINFO.
jpietrowiak
01-14-2011, 03:04 PM
Not sure why I thought that it didn't work that day when I checked it out, but Jedi you are right. It did what you said it does. Sorry for the confusion or my loss of consciousness that day. :)
Digital Jedi
01-14-2011, 06:51 PM
I've been unconscious since Tuesday. So, no worries.
slehmann
01-14-2011, 10:25 PM
mine just shows replies for both. some of my users brought it to my attention.
should look like this, right?
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">My Threads/<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">Replies</a></td>
Digital Jedi
01-14-2011, 11:02 PM
Well, you never closed the first <a> tag. See the code in red? You left that out.
<td class="vbmenu_control">
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">My Threads</a>/
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">Replies</a>
</td>
slehmann
01-14-2011, 11:49 PM
Well, you never closed the first <a> tag. See the code in red? You left that out.
<td class="vbmenu_control">
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">My Threads</a>/
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]">Replies</a>
</td>
:o always miss the little things. I did add but it still is replies and not just threads I started.
Digital Jedi
01-15-2011, 12:03 AM
Mind if I see a link to your site? Maybe a test account?
slehmann
01-15-2011, 12:39 AM
<a href="http://www.fordtruckfanatics.com" target="_blank">www.fordtruckfanatics.com</a>
Digital Jedi
01-15-2011, 01:55 AM
Could be the forum version your on. Try this. Check your MEMBERINFO template and look for the show posts/show thread links. Post both of those here so I can take a look at them. They look a little different to me.
slehmann
01-15-2011, 01:03 PM
<td><a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
Digital Jedi
01-15-2011, 02:18 PM
Yeah, looks like thread search was different in 3.6. Try search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$bbuserinfo[urlusername]
slehmann
01-15-2011, 02:33 PM
get "Invalid User specified. If you followed a valid link, please notify the administrator"
Digital Jedi
01-15-2011, 03:20 PM
That should have done the trick. I just found the exact same URL posted by Wayne Luke for 3.6 back in '07. http://www.vbulletin.com/forum/showthread.php/228064-Search-own-threads-and-posts Make sure you still don't have any typos. Other than that, it should be working, unless you've got some malformed code higher up in the page that's conflicting.
JamesC70
01-15-2011, 04:53 PM
I've been using this code in my navigation bar since the 3.6.x days (and it still works on 3.8.6 PL1):
<td class="vbmenu_control">
<a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Threads</a> /
<a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a>
</td>
The difference is $bbuserinfo[username] instead of $bbuserinfo[userid]. ;)
slehmann
01-15-2011, 06:47 PM
That works.
Thanks to the both of you for your help. I really appreciate it.
Digital Jedi
01-16-2011, 03:12 AM
Also be sure to change each & to & for validation reasons. Looks like that one will work in 3.8 as well.
BirdOPrey5
01-16-2011, 07:48 PM
get "Invalid User specified. If you followed a valid link, please notify the administrator"
The problem was vBulletin auto-added a space to DJ's text, probably to force word wrapping... had you made "bbuserinfo" without spaces it probably would have worked.
Yeah, looks like thread search was different in 3.6. Try search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$bbuserinfo[urlusername]
Digital Jedi
01-16-2011, 10:43 PM
I noticed that when I did a search this line of code, Google's search results showed mine, and a few other's code with that space also in there. But when I copied it form the thread, it pasted fine. Weird.
Simon Lloyd
01-17-2011, 01:07 AM
Here's how i did it a while back guys, probably the same as you gave:
<a href="http://www.thecodecage.com/forumz/search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]" target="_parent" title="Any post you made">My Posts</a>
<a href="http://www.thecodecage.com/forumz/search.php?$session[sessionurl] do=process&showposts=0&starteronly=1&exactname=1&s earchuser=$bbuserinfo[urlusername]" target="_parent" title="Any thread you started">My Threads</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.