PDA

View Full Version : Private Messages Enhancements - Daily Private Message Quota (Per Usergroup)


05-02-2008, 10:00 PM
Prevent Private Message spamming with this Daily PM Quota modification which allows you to set a daily limit for sending Private Messages per user group.

Daily PM Quota

This product is based on this request:

https://vborg.vbsupport.ru/showthread.php?t=134967

Product Overview

(1) New Product
(1) New XML FIle

Install Time: Quick!


What Does This Modification Do?

This hack checks the amount of private messages a user has sent in the past 24 hours and makes sure it that amount doesn't go past the user's User Group PM Quota.

ChangeLog

05/04/2008 - Tidy up code and included German translation by KURTZ, thank you.
1.2: French translation included in zip file under /translations. Thanks Albibak. :)
1.1: Fixed several bugs, for those who have this installed already, just re-upload the product xml file and select the option to overwrite.Enjoy.

KURTZ
05-03-2008, 07:51 PM
italian translation ... ;)

jayzy1
05-03-2008, 07:59 PM
installed thanks

Boofo
05-03-2008, 08:50 PM
Never mind.

Forum Lover
05-03-2008, 08:55 PM
Can a per-user option also be added in case you just want to stop a certain spammer?
That will be great. Hope to see that at next version.

Clicked Installed on credit.. :p

Guest190829
05-04-2008, 12:44 AM
If you want to limit a certain spammer, just move him to a separate user group. I don't plan on adding a specific user option because I think its already possible.

Guest190829
05-04-2008, 06:40 AM
I tidied up the code a little bit and also included KURTZ translation in the release. An upgrade is not required, but if you do upgrade just reimport the product and choose to overwrite the existing product.

Zachariah
09-06-2008, 06:29 PM
way to go Danny !

mattysheff
01-25-2009, 08:45 PM
Hi,

How do I uninstall this. Everytime I remove it I start to get the following error.

Database error in vBulletin 3.8.0:

Invalid SQL:
UPDATE vbusergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'New Users',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`forumpermissions` = '12317175',
`genericpermissions` = '1311249095',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '1',
`pmthrottlequantity` = '5',
`pmdailyquota` = '',
`calendarpermissions` = '31',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '137215',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`albumpermissions` = '191',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '2600000',
`usercsspermissions` = '63',
`visitormessagepermissions` = '47',
`socialgrouppermissions` = '50997',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`phpkd_pmpruneperiod` = '30',
`gazperms` = '1',
`vbblog_general_permissions` = '254962',
`vbblog_customblocks` = '5',
`vbblog_custompages` = '5',
`vbblog_entry_permissions` = '7679',
`vbblog_comment_permissions` = '910',
`fcpermissions` = '1'
WHERE usergroupid=2;

MySQL Error : Unknown column 'pmdailyquota' in 'field list'
Error Number : 1054
Request Date : Sunday, January 25th 2009 @ 11:34:32 PM
Error Date : Sunday, January 25th 2009 @ 11:34:33 PM
Script : /forum/admincp/usergroup.php?do=update
Referrer : /forum/admincp/usergroup.php?do=edit&usergroupid=2
IP Address :
Username :
Classname : vB_Database_MySQLi
MySQL Version : 4.0.27-standard

NetRover
03-03-2009, 10:38 AM
Hi there, should this work for additional usergroups?

I have a free usergroup that is limited pm's. I have created a usergroup used for donations which they get added as an additional usergroup.

It does not appear to overide the limited pm setting as an additional group.

look forward to your advice, kindest regards Andy

NetRover
05-17-2009, 08:57 AM
Hi again, I didn't bother with additional usergroups.

I am still using this mod on 3.8.2 without problems.


I do have one request if this mod is ever likely to be updated for the 3.8 forum.


It would be great if it showed under the unread messages area how many messages a member has left to send in that day.

I hope it could be updated with that feature. :up:

NetRover
02-11-2010, 10:52 AM
Hi,

How do I uninstall this. Everytime I remove it I start to get the following error.

Database error in vBulletin 3.8.0:

Invalid SQL:
UPDATE vbusergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'New Users',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`forumpermissions` = '12317175',
`genericpermissions` = '1311249095',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '1',
`pmthrottlequantity` = '5',
`pmdailyquota` = '',
`calendarpermissions` = '31',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '62',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '137215',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '4',
`albumpermissions` = '191',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '2600000',
`usercsspermissions` = '63',
`visitormessagepermissions` = '47',
`socialgrouppermissions` = '50997',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`phpkd_pmpruneperiod` = '30',
`gazperms` = '1',
`vbblog_general_permissions` = '254962',
`vbblog_customblocks` = '5',
`vbblog_custompages` = '5',
`vbblog_entry_permissions` = '7679',
`vbblog_comment_permissions` = '910',
`fcpermissions` = '1'
WHERE usergroupid=2;

MySQL Error : Unknown column 'pmdailyquota' in 'field list'
Error Number : 1054
Request Date : Sunday, January 25th 2009 @ 11:34:32 PM
Error Date : Sunday, January 25th 2009 @ 11:34:33 PM
Script : /forum/admincp/usergroup.php?do=update
Referrer : /forum/admincp/usergroup.php?do=edit&usergroupid=2
IP Address :
Username :
Classname : vB_Database_MySQLi
MySQL Version : 4.0.27-standard

I have just tried to remove this as well because of lack of support and development and got the same error as you.

Did you manage to fix this?

I had to install the product again.

Kiint
02-12-2010, 08:45 AM
I had to uninstall this myself as it was inteferring with vb4.

remove bitfield_dailypmquota.xml from your /includes/xml/ folder and it will stop accessing it.

Worked for me.