Version: 1.2, by kall
Developer Last Online: Aug 2021
Version: 3.0.7
Rating:
Released: 09-10-2004
Last Update: 04-17-2005
Installs: 19
DB Changes
No support by the author.
Hack Name: Maximum New Threads/Replies per Day Per Usergroup
Hack Version: 1.2
Hack Author: Kall
Release: 11 September 2004
Last Update: 19 April 2005
Description: Restricts specific Usergroups to a maximum number of new threads/replies per defined time (in hours).
Requested by: Several people on vb.org.
Credit for the base of the code goes to 006, from his 'Require X Posts per Day to play in Arcade' hack.
Files to edit: 3 (/admincp/usergroup.php, newthread.php and newreply.php)
New Phrases: 1
Other edits: 4 queries to run.
Update to v1.15: Added ability to restrict New Replies per Usergroup, corrected query. If you installed it prior to this edit, please re-download and apply the newthread modification block again.
Update to v1.2: Made all variables unique (appeneded $nzb to the front of each, so as to avoid conflicts with any other hacks).
Added template modifications to inform members of number fo new threads/replies remaining.
It actually works on newthread for versions above 3.0.4 now! (I had no idea. Sorry.)
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Screenshots? I'm having a hard time figuring out where the "You may start $nzbpostsremaining more replies today." goes in my newthread & newreply templates. Thanks!
Can it be used if I am interested to resrict members of a usergroup to One posting per their subscription period, which they are permitted to edit at any time and which will be deleted after their subscription period ends ?
Can it be used if I am interested to resrict members of a usergroup to One posting per their subscription period, which they are permitted to edit at any time and which will be deleted after their subscription period ends ?
Thank You,
Avi
Well I installed this for a person and I saw it does not work for secondary groups. Only main.
So your subscription would have to change the main group for this to work.
I dont think Kall will do this for me nor care about vb's mood swings but you can ask and see if he will adjust that for you. OR you can do what you ask with the work around I just stated.
I am interested to help develop it, but not alone, meaning I can work on that project if someone will be doing/discussing it with me. Can ANYONE help, PLEASE :-).
You can send me a private message, I will be checking those often.
Well I installed this for a person and I saw it does not work for secondary groups. Only main.
So your subscription would have to change the main group for this to work.
We use subscriptions with only secondary groups as well. I think it's a better overall method (keep primary groups limited, all additional and flucuating perms come from secondary groups). Here's my idea. Someone smack me if I'm stupid...
For example:
Code:
$nzbmaxnewthread = $DB_site->query_first("
SELECT maxnewthread AS number FROM " . TABLE_PREFIX . "usergroup
WHERE usergroupid=$bbuserinfo[usergroupid]
");
Becomes
Code:
$nzbmaxnewthread = $DB_site->query_first("
SELECT max(maxnewthread) AS number FROM " . TABLE_PREFIX . "usergroup
WHERE usergroupid IN $bbuserinfo[membergroupids]
");
This way we get the maximum value for the given variable for all the groups the user belongs too. Since a value of zero means no max, only non-zero values will give us a limit.
I want this to apply only in a given forum though, not site wide. I don't know if the forum-permissions will take this into account?