View Full Version : Pull user ID from UserCP
UltimateOreo!
06-18-2007, 08:04 AM
How can I pull a user ID from the user cp to be linked in a url? I just need to know the variable that will pull the info.
Distance
06-18-2007, 08:16 AM
The variable would be $post[userid]
With linkage it would be:
<a class="smallfont" href="$admincpdir/user.php?do=edit&u=$post[userid]">$post[userid]</a>
Which includes the phrase :)
UltimateOreo!
06-20-2007, 08:33 PM
What I want to do put a link in the usercp that links to their profile.php page. The problem is, I can't seem to get their userID from the usercp.php Any alternate ideas how to get their userid?
Paul M
06-21-2007, 12:34 AM
It's not going to be $post[] in the usercp - at a guess, without looking, I would say $userinfo['userid'].
Dismounted
06-21-2007, 05:34 AM
It should still be $bbuserinfo in the User CP.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.