![]() |
Banned members automatically stop receiving email notification on subscribed threads
NOTE: This hack is now included as standard from vB 2.2.8 upwards. :)
This is really a mini-hack. As some of you may have come to realize, one of the shortcomings of vB is that after we have banned a member, that member still receives email notification, even when we have banned the member from viewing the forum or any threads. Obviously a banned member cannot access his or her user control panel to unsubscribe to threads or switch off email notification. We as admins cannot access the member's user control panel to unsubscribe him from threads since we don't have his password, and we cannot do it from the Admin CP. We can run a db query to unsubscribe the member manually: PHP Code:
I wanted to make this automatic. With this mini-hack, once you ban a member (or make a member unregistered, awaiting email confirmation or a COPPA member), his email notification stops automatically. When you unban the member (or make the member registered etc.), his email notification automatically restarts again. No need to manually run that db query. It's easy to install and is a matter of ADDING ONE line in functions.php In functions.php: Find: PHP Code:
PHP Code:
|
great addition man...
but i really don't have use for it since i rarely ban :-/ |
thanks for the minihack erwin... actually, this will probably come in useful.
|
This is almost like bug fix really... it's silly that banned members still get subscribed thread email notifications... I was sick of getting emails from banned members complaining about the emails. :)
|
Good addition, but I probably wont install.
I find it amusing that banned members still get email notifications and not be able to see the actual threads :D |
Actually this would be great for membership types sites. When a member expires this could make sure their subscriptions are deleted too!
|
Quote:
|
Damn....this is a must have.....installing NOW
|
when i install it i get this message
Parse error: parse error, unexpected $ in /home/blazing/public_html/admin/functions.php on line 1009 Fatal error: Call to undefined function: vbdate() in /home/blazing/public_html/admin/sessions.php on line 362 On line 362 its a blank space and on 1009 it's PHP Code:
|
Are you sure you put that line in the right place? This hack cannot cause a parse error, since all it does is add another "AND" requirement to the query that gets all the emails to be sent to when a new reply is made.
Without my hack, the query looks like this: PHP Code:
After my hack, the query looks like this: PHP Code:
|
All times are GMT. The time now is 07:20 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:
|