The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How can I add a "Edit this user"-Link to the dropdown-menu when clicking a username in a post?
Whitch template should I edit? And also, this should only appear if I'm loged on as a admin... Is this hard to do? |
#2
|
|||
|
|||
![]()
<a href="https://vborg.vbsupport.ru/showthread.php?t=92390" target="_blank">"Edit User" in postbit username menu</a> < Could maybe get something from that.
|
#3
|
|||
|
|||
![]()
Ok, so I found where the code should go, in the "Postbit"-template.
But how should I make the code? Code:
1 <if condition="$show['profile']"> 2 <tr> 3 <td class="vbmenu_option"> 4 <a href="moderator.php...">$vbphrase[edit_user_profile]</a> 5 </td> 6 </tr> 7 </if> Line 4: How should this line be? So that the correct userID is included? |
#4
|
|||
|
|||
![]()
Why don't you follow the instructions given in that thread? Doesn't it do what you wanted to do?
|
#5
|
|||
|
|||
![]()
Sorry, missed that one.
1 min. after posting my own reply! ![]() 2 questions: 1) Is it possible to get the link to open in a new tab? 2) Does this link only show to admins? Thanks for the tip though! |
#6
|
|||
|
|||
![]()
After the "<a" add target="_blank" so you have:
Code:
<a target="_blank" href="... 2. Yes. Only members of the usergroup 6 will be able to see it. It may be better if you changed: Code:
<if condition="$post[usergroupid]!= 6 AND $bbuserinfo[usergroupid] == 6"> Code:
<if condition="!is_member_of($post, 6) AND is_member_of($bbuserinfo, 6)"> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|