![]() |
I love this hack. :D
|
I love this hack, but I also use the ban by warning hack. Currently when a user reaches a preset number of warning points, they're moved to the banned by warnings group. What I need is to be able set a usergroup as miserable or not, rather than an individual user.
Users aren't allowed to see the warnings list, so they don't know how many points equals a ban. How would I set it up so that if a user is in the banned group they are miserable, but if not they aren't. I may sometimes unban a user (by moving them out of the banned usergroup) at which time I'd need for them to not be miserable any longer (only while in the banned usergroup). Anyone know how to put an option in the usergroup section of the admin cp where I could set a certain group as miserable or not, as oposed to an individual user? I'd like to have the option listed when a usergroup is created/edited, much like the group permissions are. Thanks for any help.. |
Add this before the if($bbuserinfo[miserable] == 1) code in global.php
PHP Code:
It will make all the users who belong to that usergroup miserable as soon as they log into your site. ;) |
Thanks for the quick response! This is what my global.php looks like now:
PHP Code:
|
Very cool. ;)
You won't have to do anything since the misery flag gets set if the user belongs to the banned group. moving them back to the registered user group will not set that flag anymore. |
Okay, thanks.. :D
This hack is pure evil!!! I love it! Keep up the great work! |
Thank you for your kind words. https://vborg.vbsupport.ru/
|
This hack will prove to be timeless... ;)
One request though -> can you offer some code that will give MODS the ability to toggle the misery setting as well? |
Quote:
|
Oh boy, I knew this was going to get me in trouble. :D
I have this hack in place on my site. But it combines 6 other hacks which gives the moderators the power to impose misery, starvation, and a couple other hacks on users for time periods of 1, 3, or 7 days. And after the "served time" the users go back to normal. I need to think about how to do a partial release of what I have in place... :( |
All times are GMT. The time now is 04:56 PM. |
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:
|