![]() |
How to add direct link to find all my posts when logged in?
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. |
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. |
That worked perfectly!! Thanks Digital Jedi
|
Quote:
|
Your right Slehmann, I didn't even notice that I wonder if there is a way to do it?
|
It shouldn't. That's just a slightly tweaked version of the link from MEMBERINFO.
|
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. :)
|
I've been unconscious since Tuesday. So, no worries.
|
mine just shows replies for both. some of my users brought it to my attention.
should look like this, right? Quote:
|
Well, you never closed the first <a> tag. See the code in red? You left that out.
Code:
<td class="vbmenu_control"> |
Quote:
|
Mind if I see a link to your site? Maybe a test account?
|
<a href="http://www.fordtruckfanatics.com" target="_blank">www.fordtruckfanatics.com</a>
|
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.
|
Code:
<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> |
Yeah, looks like thread search was different in 3.6. Try search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&e xactname=1&searchuser=$bbuserinfo[urlusername]
|
get "Invalid User specified. If you followed a valid link, please notify the administrator"
|
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/showt...eads-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.
|
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):
Code:
<td class="vbmenu_control"> |
That works.
Thanks to the both of you for your help. I really appreciate it. |
Also be sure to change each & to & for validation reasons. Looks like that one will work in 3.8 as well.
|
Quote:
Quote:
|
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.
|
Here's how i did it a while back guys, probably the same as you gave:
HTML Code:
<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> |
All times are GMT. The time now is 02:26 AM. |
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:
|