![]() |
Add "Edit User" in context-menu?
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? |
<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.
|
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']"> Line 4: How should this line be? So that the correct userID is included? |
Why don't you follow the instructions given in that thread? Doesn't it do what you wanted to do?
|
Sorry, missed that one.
1 min. after posting my own reply! :D 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! Quote:
|
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)"> |
All times are GMT. The time now is 05:10 AM. |
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:
|