![]() |
Ban user since their profile (Quick Ban)
1 Attachment(s)
This mod add a link in the user profile for the banish.
Code:
<span id="userinfo">
Code:
<a href="modcp/banning.php?do=banuser&u={vb:raw userinfo.userid}" class="textcontrol imagecontrol"> |
Thanks installed.
|
Thanks installed working fine :)
|
thank :)
|
Thanks Installed
|
Allan thx bro, installed.
|
what about moderators, can they banned user or not.
|
tagged ..looks good
|
thanks
|
Click on Installed i you use it ;)
|
Thank you Allan mod. Allow me to mention this. Placing the code immediately above <span id="userinfo"> will make the ban button viewable by everybody. This means that they will be also able to figure out the folder names of Mod CP (In my case, I'm using a custom name different from modcp)
So, the correct place to add the code is BEFORE Code:
</vb:if> Please correct me if I'm wrong. I'm not a professional coder btw. P.S. I'm using 4.0.2 Thanks! |
installed. thank you for the mod
Quote:
|
...installed...great mod...
|
Thanks installed !
|
Better code would be:
Code:
<vb:if condition="is_member_of($bbuserinfo, 5,6,7)"> |
Wow this is awesome thanks!
|
Good job
|
Not Work on 4.0.5
|
installed. thx
|
thanks
|
found the problem
|
very useful mod, thank you
|
10q
|
tagged
|
I like this but can we use a variable for modcp so we do not have to hard code it?
Code:
<a href="modcp/banning.php?....... I know it gets it from the config file: Code:
$config['Misc']['modcpdir'] = 'modcp'; |
Work In Vb 4.1.2 Perfect
|
installed.
thanks, it works and looks great. :) |
tested with 4.1.8 and works great.
|
nice , thank you installed
|
With your code will be visible to all members and visitors
What do you think of this code ?? that the admin only can see it and not for all, as is the case with edit profile for user ? this is the code PHP Code:
|
Here is one for quick infraction
Code:
<a class="redcard" href="infraction.php?{vb:raw userinfo.userid}do=report&u={vb:raw userinfo.userid}" rel="nofollow" title="{vb:rawphrase received_infraction}"> |
Quote:
|
Quote:
Yeah if you mean that a member can't actually ban someone. They can see the X and it does take them to the control panel. This mod should be deleted. There's clearly no permissions applied where there should be. Thank god the replies are better than the mod. |
I agree.
Quote:
|
thank you.
|
thx installed
|
Quote:
|
This might sound crazy, But is there a search button? Cuz i can't find " <span id="userinfo">"
|
wow... tanks
|
All times are GMT. The time now is 03:41 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:
|