View Full Version : How to add Find all post by user into USER CP
tuankm123
04-26-2008, 02:52 AM
Hi all,
I would like to add "Find all post by user" into USER CP. Please help me to do like that.
Thanks
Lynne
04-26-2008, 03:03 AM
You mean you want a button in the user's cp to find all their own posts? Instead of them just going to their member page and clicking on the link?
tuankm123
04-26-2008, 07:39 PM
You mean you want a button in the user's cp to find all their own posts? Instead of them just going to their member page and clicking on the link?
You are right, I would like to have a link in the user's cp to find all their own threads
. Please tell me how to do like that.
Thanks in advanced
Lynne
04-26-2008, 07:57 PM
This is the code from MEMBERINFO:
<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>
Have you tried putting that somewhere in your USERCP_SHELL template (or in whatever template you want it in for the usercp)?
tuankm123
04-27-2008, 12:27 AM
I did, but when I clicked, the URL will be:
http://www.xyz.com/search.php?do=finduser&u=
We do not have id for user here so there was an error as follows:
Invalid member specified. If you followed a valid link, please notify the Administrator
Thanks for your help
Lynne
04-27-2008, 02:39 AM
I did, but when I clicked, the URL will be:
http://www.xyz.com/search.php?do=finduser&u=
We do not have id for user here so there was an error as follows:
Invalid member specified. If you followed a valid link, please notify the Administrator
Thanks for your help
Whoops, I'm sorry. One of these days I will learn to use userinfo and bbuserinfo at the right time!! The call would be:
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]" rel="nofollow"><phrase 1="$bbuserinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a>
tuankm123
04-27-2008, 02:57 AM
Whoops, I'm sorry. One of these days I will learn to use userinfo and bbuserinfo at the right time!! The call would be:
<a href="search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]" rel="nofollow"><phrase 1="$bbuserinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a>
Thanks Lynne, I got it, however, do we have any way to show their threads they created, not their posts.
Thanks
Lynne
04-27-2008, 03:20 AM
Well, again, just seeing what is in MEMBERINFO:
<a href="search.php?$session[sessionurl]do=finduser&u=$userinfo[userid]&starteronly=1" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a>
And then just change $userinfo to $bbuserinfo.
tuankm123
04-28-2008, 01:15 AM
Thank you very much. I got it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.