![]() |
Edit User link in postbit UserName popup menu
1 Attachment(s)
This is a simple template modification that a couple of members over on vB.com and Lynne helped me sort out. Just thought I'd post it here to give back to the community a little.
This will add an icon and link in the popup menu in postbit when you click on the User's name. The link is only accessible by the user groups you choose and opens the Admin User Manager page for that user. To install: ACP> Styles & Templates> Search in Templates for "memberaction_dropdown" In that template find: Code:
<vb:if condition="$show['emaillink']"> Add below that: Code:
<vb:if condition="is_member_of($bbuserinfo, X, Y)"> In the popupmenu.css template find this code: Code:
.memberaction_body.popupbody li .siteicon_email { Code:
.memberaction_body.popupbody li .siteicon_edit { Change the X and Y in the above code to the Usergroup IDs that you want to allow access (those groups will have to have admin rights to edit users as well). You will also need to upload the image I've attached to your images/site_icon directory. A big thank you to wilford brimley for updating the code for v4.2. |
tagged and thanks
save the icon as edit.png ? |
Yes, save it as edit.png
|
Installed as a test on v4.04pl1 ... :)
After updating template and adding PNG file as described, this function doesn't appear anywhere in drop down menu, but thanks anyway ... Regards, Doug |
Did you remember to enter in the Usergroup ID numbers?
|
installed
5 stars keep it up bro happy new yaer |
Quote:
Example .. "is_member_of($bbuserinfo, 5, 6, 7)"> Not sure why it just doesn't appear, but perhaps it's because of the earlier version of vb4 ... Thanks any way .. Regards, Doug |
Might be the older version of vB as you say.
|
This will save me a bunch of time. Thanks!
|
I have to edit every member that joins my site, so I need a quick way to get to that page. Glad it will save you some time as well.
|
All times are GMT. The time now is 09:57 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:
|