Back to vBulletin 4.x Template Modifications

Edit User link in postbit UserName popup menu
Mod Version: 1.1, by Mobo

vB Version: 4.2.0 Rating: (4 votes - 5.00 average) Installs: 17
Released: 31 Dec 2010 Last Update: Never Downloads: 0
Not Supported Template Edits Additional Files Re-usable Code  

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']">
        <li class="right">
            <img src="{vb:stylevar imgdir_siteicons}/email.png" alt="" />
            <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&amp;u={vb:raw memberinfo.userid}" rel='nofollow'>
                {vb:rawphrase send_email}
            </a>
        </li>
        </vb:if>

Add below that:

Code:
<vb:if condition="is_member_of($bbuserinfo, X, Y)">
        <li class="left">    
            <a href="admincp/user.php?do=edit&u={vb:raw memberinfo.userid}" TARGET="_blank" class="siteicon_edit">Edit User
            </a>
        </li>
        </vb:if>

In the popupmenu.css template find this code:

Code:
.memberaction_body.popupbody li .siteicon_email { 
	background:url({vb:stylevar imgdir_siteicons}/email.png) {vb:stylevar left} 2px no-repeat; 
}
And add below that:

Code:
.memberaction_body.popupbody li .siteicon_edit { 
	background:url({vb:stylevar imgdir_siteicons}/edit.png) {vb:stylevar left} 2px no-repeat; 
}

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.

Download

No files for download.

Screenshots

Click image for larger version
Name:	EditUser.jpg
Views:	671
Size:	45.3 KB
ID:	125039  

Similar Mods

Mini Mods Postbit Popup Menu - Add Admin/Mod Options vBulletin 3.8 Template Modifications
"Edit User" in postbit username menu vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024