Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Limit Database Error Mails Details »»
Limit Database Error Mails
Mod Version: 1.00, by Marco van Herwaarden (Coder) Marco van Herwaarden is offline
Developer Last Online: Dec 2010 I like it Show Printable Version Email this Page

vB Version: 3.5.0 Rating: (0 vote - 0 average) Installs: 31
Released: 30 Sep 2005 Last Update: Never Downloads: 51
Not Supported Code Changes Additional Files  

Hack: Limit Database Error Mails
Version: v1.00
Author: MarcoH64 for vBulletin.org
vB Version: 3.5.0
File edits: 1 + 1 (config.php)

Disclaimer:
This hack may not be modified or distributed without the explicit permission of the author. The author don't take responsibility for
any problems caused by this modification.

Description:
With this hack installed you can limit the number of emails sent to your technical mail address in case of Database Errors.
You can specify an interval in seconds between sending mails. All errors generated after the first error, until interval is passed,
are not mailed.

Optionally you can specify a different interval for different types of errors.

Operating system files will be used to keep track of the last mail sent. These will be zero byte files, so won't take any space.

Donations?
If you like this work and want to make a donation, your gifts are always welcomed at Paypal: marcoh64@gmail.com

PS No screenshots!!

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.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 30 Sep 2005, 11:05
SAngove SAngove is offline
 
Join Date: Sep 2005
I will have a look at this, as i get quite frustrated to see my inbox full of db error emails

Thanks in Advance.
Reply With Quote
  #3  
Old 30 Sep 2005, 11:39
reteep reteep is offline
 
Join Date: Mar 2004
Oh YEA, this feature should be a default feature for vBulletin.. thanks!
Reply With Quote
  #4  
Old 30 Sep 2005, 12:10
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Then please click install

Edit: Oops you just did
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #5  
Old 30 Sep 2005, 15:46
jugo jugo is offline
 
Join Date: Feb 2004
Thanks Marco...this rocks.

Does anyone have a plugin / solution for this: I want to not display the ugly database error when the DB is down on non-vb pages where global.php is included.
__________________
NovaWarfare.com - Bringing back the Game - http://www.NovaWarfare.com

Website Hosting - Game Server Hosting - http://www.freaks-network.com
Teamspeak Status Block for vBAdvanced / PHP-Nuke / php Include

PM me if you need hacks installed or simple template modifications...I'm cheap..
Reply With Quote
  #6  
Old 30 Sep 2005, 15:55
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Originally Posted by jugo
Thanks Marco...this rocks.

Does anyone have a plugin / solution for this: I want to not display the ugly database error when the DB is down on non-vb pages where global.php is included.
In includes/class_core.php, find:

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

And replace by:

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

Then in the top of your non vb page script:

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

PS This is not tested.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #7  
Old 30 Sep 2005, 19:20
jugo jugo is offline
 
Join Date: Feb 2004
Thanks Marco...that gave me a whole bunch of other ideas.

They should put a hook there.
__________________
NovaWarfare.com - Bringing back the Game - http://www.NovaWarfare.com

Website Hosting - Game Server Hosting - http://www.freaks-network.com
Teamspeak Status Block for vBAdvanced / PHP-Nuke / php Include

PM me if you need hacks installed or simple template modifications...I'm cheap..
Reply With Quote
  #8  
Old 30 Sep 2005, 21:06
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Yes i agree, and i don't agree.

This is a crucial part of the code and will get executed in case of database errors.

No Database = No plugins to be executed = Hooks are useless.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #9  
Old 01 Oct 2005, 02:08
Danny.VBT's Avatar
Danny.VBT Danny.VBT is offline
 
Join Date: Oct 2004
Go Go Marco, this is really something I need. I'm sick of database error emails on my test board.

/me installs
__________________
while($coffeeMachine->supply($Danny)) { $Danny->run(); }

Twitter Blog
Reply With Quote
  #10  
Old 01 Oct 2005, 06:08
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Well on your testboard, you can simply remove the tech email from the config.php. You won't get any mails at all.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #11  
Old 01 Oct 2005, 06:12
Danny.VBT's Avatar
Danny.VBT Danny.VBT is offline
 
Join Date: Oct 2004
Well actually my test board is open to the public, since my real board is closed untill vbspace is completed. So I just want to limit emails, not completely disable them.
__________________
while($coffeeMachine->supply($Danny)) { $Danny->run(); }

Twitter Blog
Reply With Quote
  #12  
Old 01 Oct 2005, 06:30
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Ok, well then this hack is just what you need.

Please give feedback if there is anything you still need in this.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #13  
Old 01 Oct 2005, 06:39
Danny.VBT's Avatar
Danny.VBT Danny.VBT is offline
 
Join Date: Oct 2004
Will do Marco when I fully test this thing out. (Haven't had time today)
__________________
while($coffeeMachine->supply($Danny)) { $Danny->run(); }

Twitter Blog
Reply With Quote
  #14  
Old 06 Oct 2005, 15:45
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
And did you already have time to test?
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #15  
Old 06 Oct 2005, 23:01
Danny.VBT's Avatar
Danny.VBT Danny.VBT is offline
 
Join Date: Oct 2004
Sorry Marco, I've been very busy lately. Will test tonight or tomorrow.
__________________
while($coffeeMachine->supply($Danny)) { $Danny->run(); }

Twitter Blog
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 06:18.

Layout Options | Width: Wide Color: