
01-23-2011, 05:58 PM
|
 |
|
|
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by iBaker
2. Add the link to the Member Action Drop Down[/B]
Attachment 125319
Open the memberaction_dropdown template you find almost at the bottom this block of code:
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&u={vb:raw memberinfo.userid}" rel='nofollow'>
{vb:rawphrase send_email}
</a>
</li>
</vb:if>
Right below that add this block:
Code:
<vb:if condition="is_member_of($bbuserinfo, 5,6)">
<li class="right">
<img src="{vb:stylevar imgdir_siteicons}/network.png" class="inlineimg" alt="" />
<a href="member.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}&admin_log_in_as_user={vb:raw memberinfo.userid}" rel="nofollow">
Log In As This User
</a>
</li>
</vb:if>
NOTE in the added block above you will need to change the usergroup ID's to the ones to match the ones your have given permissions to use the mod. For example in the above you will see bbuserinfo, 5,6 this shows that I have given permission to Usergroups 5 and 6 to use the mod.
|
There is actually an easier way to do this and have it show up in the drop-down board-wide, by using a template and a hook.
|