Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Banned members automatically stop receiving email notification on subscribed threads Details »
Banned members automatically stop receiving email notification on subscribed threads
Mod Version: 1.00, by Erwin (Member) Erwin is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 30
Released: 11 Sep 2002 Last Update: Never Downloads: 0
Not Supported  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Where XX is the userid of the member. It's very easy to add this to the Admin CP by the way. However, this is cumbersome, as the process is not automated. And once you unban the member, he has to remember to subscribe himself to the right threads again.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

BELOW IT ADD:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That's it! So when you ban a member or make them unregistered, or awaiting email confirmation, they will stop receiving email notifications. No more emails from irate banned members!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Subscribed Threads, Subscribed Forums, and Event Reminders calorie vBulletin 3.6 Add-ons 7 30 Aug 2011 14:39

Comments
  #2  
Old 11 Sep 2002, 21:30
Spitfireisgod's Avatar
Spitfireisgod Spitfireisgod is offline
 
Join Date: Aug 2002
great addition man...

but i really don't have use for it since i rarely ban :-/
Reply With Quote
  #3  
Old 12 Sep 2002, 01:18
Buddha Buddha is offline
 
Join Date: Jan 2002
thanks for the minihack erwin... actually, this will probably come in useful.
Reply With Quote
  #4  
Old 12 Sep 2002, 04:04
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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.
Reply With Quote
  #5  
Old 12 Sep 2002, 07:51
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
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
Reply With Quote
  #6  
Old 12 Sep 2002, 17:09
cessna140 cessna140 is offline
 
Join Date: Feb 2002
Actually this would be great for membership types sites. When a member expires this could make sure their subscriptions are deleted too!
Reply With Quote
  #7  
Old 12 Sep 2002, 20:43
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Originally posted by cessna140
Actually this would be great for membership types sites. When a member expires this could make sure their subscriptions are deleted too!
True. Just add or remove the usergroupid's from the line that you add to choose which usergroups can or cannot receive email subscriptions.
Reply With Quote
  #8  
Old 13 Sep 2002, 02:46
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
Damn....this is a must have.....installing NOW
Reply With Quote
  #9  
Old 13 Sep 2002, 02:58
ZiRu$'s Avatar
ZiRu$ ZiRu$ is offline
 
Join Date: Jan 2002
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

un-installing the hack fixes the problem
Reply With Quote
  #10  
Old 13 Sep 2002, 04:13
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


After my hack, the query looks like this:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Go and install the hack again, and make sure that you are putting that extra line in the right place in functions.php - this hack does NOT and can NOT interfere with any other hack. It just adds another requirement to that specific query.
Reply With Quote
  #11  
Old 24 Sep 2002, 11:48
8ball's Avatar
8ball 8ball is offline
 
Join Date: Sep 2002
thanks for this Erwin !!

i keep it and will try it as soon as possible
Reply With Quote
  #12  
Old 25 Sep 2002, 06:31
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
There's no need to install this hack anymore. vB has included this hack as standard in 2.2.8 which is now out. Thanks to PPN who listened to me when I posted about this on vB.com.
Reply With Quote
  #13  
Old 16 Oct 2002, 14:37
Talisman's Avatar
Talisman Talisman is offline
 
Join Date: Aug 2002
Thanks for the fix, Erwin. We're still using 2.2.6.
__________________
Don't wear perfume in the garden, unless you want to be pollinated by bees.
Reply With Quote
  #14  
Old 16 Oct 2002, 21:32
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
You're welcome. Glad people still find this useful.
Reply With Quote
  #15  
Old 09 Jan 2003, 06:15
lalo landa lalo landa is offline
 
Join Date: Nov 2002
work in 2.2.4 too
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 16:42.

Layout Options | Width: Wide Color: