![]() |
Edit User Profile Link
I am trying to add a link to the postbit popup vbmenu (click on the username in postbit) that will take me to the user profile edit.
I have tried the following, but the link tells me there was no user selected, so I suppose the link does not realize the userid. Code:
<tr><td class="vbmenu_option"><a href="moderator.php?$session[sessionurl]do=useroptions&u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></td></tr> Thanks! |
You probably need to use $post[userid] instead of $userinfo[userid].
|
Yep... that did it... thanks!
|
Also, you can add the following conditional:
Code:
<if condition="can_moderate()"> |
I actually just use the usergroup id's in a condition.
I don't guess it matters does it? |
Using can_moderate() adds a query to the page. If possible, it's better to use is_member_of
|
All times are GMT. The time now is 09:20 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:
|