PDA

View Full Version : Edit User Profile Link


ShackMaster
12-29-2010, 06:36 PM
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.

<tr><td class="vbmenu_option"><a href="moderator.php?$session[sessionurl]do=useroptions&amp;u=$userinfo[userid]">$vbphrase[edit_user_profile]</a></td></tr>

Any ideas on how I can make this work?

Thanks!

Digital Jedi
12-29-2010, 09:07 PM
You probably need to use $post[userid] instead of $userinfo[userid].

ShackMaster
12-30-2010, 03:43 AM
Yep... that did it... thanks!

Scandal
12-30-2010, 04:29 PM
Also, you can add the following conditional:
<if condition="can_moderate()">

</if>
:up:

ShackMaster
12-30-2010, 04:34 PM
I actually just use the usergroup id's in a condition.

I don't guess it matters does it?

Lynne
12-30-2010, 05:09 PM
Using can_moderate() adds a query to the page. If possible, it's better to use is_member_of