PDA

View Full Version : Maximum New Threads/Replies Per X hours Per Usergroup & Forum


uae
25 Sep 2005, 09:37
Maximum New Threads/Replies Per X hours Per Usergroup & Forum Hack

Port of: http://www.vbulletin.org/forum/showthread.php?t=81584
Description
Control Maximum Number of New Threads and/or Reply allowed per Usergroup and Forum per defined time (in hours).
Details
1 Product XML with 4 Plugins, and 5 Phrases
Install
To install this hack simply download the xml file to your pc and then import it into vbulletin as a product - then from your ADMINCP go to Forums & Moderators -> Forum Permissions -> Whatever usergroup in any forum.
History
1.0.0 on 25. Sep 2005
Initial Version for vBulletin 3.5

1.0.1 on 7. Nov 2005
Fixed bug with this (http://www.vbulletin.org/forum/showpost.php?p=812120&postcount=11)
-> to upgrade, import product-max_thread_post_per_xhour.xml and set Allow Overwrite to yes

1.0.2 on 7. Feb 2006
Fixed bug with this (http://www.vbulletin.org/forum/showpost.php?p=880271&postcount=20)
-> to upgrade, import product-max_thread_post_per_xhour.xml and set Allow Overwrite to yes

1.0.3 on 4. Nov 2007
No changes, just a version # update for vb 3.6.8
-> to upgrade, import product-max_thread_post_per_xhour.xml and set Allow Overwrite to yes

Alrasam
25 Sep 2005, 21:16
Thank youuuuuu from 2 weeks am waiting for tjis pugin :squareeyed:

Basboss
28 Sep 2005, 09:05
been waiting for this, thanks :)

q8manar
09 Oct 2005, 23:29
Please Help

I Insalled this product in my forum ,
and I put some condtion in some forum

then >
I have recieved alot of Data base error sent to my email
see this msg :
Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM forumpermission
WHERE ( forumid IN() AND usergroupid IN (2)) AND
(maxthread=0 AND perhour=0);

MySQL Error : You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near ') AND
usergroupid IN (2)) AND
(maxthread=0 AND perhour=0)' a
Error Number : 1064
Date : Monday, October 10th 2005 @ 01:25:42 AM
Script : http://www.q8manar.com/vb/newthread.php
Referrer :
IP Address : 196.202.40.214
Username : sun
Classname : vb_database



I asked vbulletin.com
they told me to check you product,


Please Could you tell me what i shal to do >

my previuse vb was 3.0.7 and it was have this same hack .

Boots
12 Oct 2005, 03:54
will this work on the secondary usergroup?

q8manar
17 Oct 2005, 07:16
No Answer until Now :(

PHPKD
22 Oct 2005, 21:25
thanks very much
Installed & working 100% without any problems or errors

luroca
24 Oct 2005, 17:21
This is a very useful hack and I click install but itīs a little buggy, at least in my board :(

Permissions are nor inherited (I must set manually for every forum) but the valids post/thread/hour limits are the ones from parent forum/category, not which I set for each forum ...
Is this a bug or a specific problem of mine?

A suggestion: Why not settings in usergroups manager?

Regards

Dadoo
28 Oct 2005, 09:52
Hello all !

since i've installed this famous hack, i have an recurrent error on my DB :

Database error in vBulletin 3.5.0:

Invalid SQL:

SELECT *
FROM session
WHERE sessionhash = '845f40c027e65c0ca7dfb7ccf1188b12'
AND lastactivity > 1130487523
AND host = '10.0.0.2'
AND idhash = '4464bdcefb87a2dec0e545f79b638efc';

MySQL Error : User 'finereader' has exceeded the 'max_questions' resource (current value: 20000) Error Number : 1226
Date : Friday, October 28th 2005 @ 10:33:43 AM
Script : http://localhost/vbshout.php
Referrer : http://localhost/
IP Address : 10.0.0.2
Username :
Classname : vb_database


note : field USERNAME is empty...

q8manar
03 Nov 2005, 10:43
Please <

Where the devloper of this product?

We need help

PHPKD
04 Nov 2005, 02:42
works good exept you try to access http://domain.com/forum/newreply.php

you will get the folowing database error ::

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM forumpermission
WHERE ( forumid IN() AND usergroupid IN (6)) AND
(maxpost=0 AND postperhour=0);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND usergroupid IN (6)) AND
(maxpost=0 AND postperhour=0
Error Number : 1064
Date : Thursday, November 3rd 2005 @ 07:40:01 PM
Script : http://www.domain.com/vb/newreply.php
Referrer :
IP Address : 62.135.95.69
Username : SolidSnake@GTI
Classname : vb_database

q8manar
07 Nov 2005, 08:20
works good exept you try to access http://domain.com/forum/newreply.php

you will get the folowing database error ::

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM forumpermission
WHERE ( forumid IN() AND usergroupid IN (6)) AND
(maxpost=0 AND postperhour=0);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND usergroupid IN (6)) AND
(maxpost=0 AND postperhour=0
Error Number : 1064
Date : Thursday, November 3rd 2005 @ 07:40:01 PM
Script : http://www.domain.com/vb/newreply.php
Referrer :
IP Address : 62.135.95.69
Username : SolidSnake@GTI
Classname : vb_database
Same problem

Any body can fix this

PHPKD
07 Nov 2005, 10:56
Sorry ....
Uninstalled till any coder fix it ....

rezovor
07 Nov 2005, 16:18
Works perfect for me, Thanks!

uae
07 Nov 2005, 18:56
works good exept you try to access http://domain.com/forum/newreply.php

you will get the folowing database error ::

Database error in vBulletin 3.5.1:
Can you please try improting the latest v1.0.1 xml file with Allow Overwrite to yes.

q8manar
12 Nov 2005, 12:07
I Download the updated one and I uploaded to my forum as yes overwrite

but the problem still
an error in db comes
when the user try to go to http://www.q8manar.com/vb/newthread.php

PHPKD
14 Nov 2005, 17:02
good work
thanks

Re-installed

PHPKD
21 Nov 2005, 00:18
sory for the second time

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM forumpermission
WHERE ( forumid IN() AND usergroupid IN (6)) AND
(maxthread=0 AND perhour=0);

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND usergroupid IN (6)) AND
(maxthread=0 AND perhour=0)' a
Error Number : 1064
Date : Sunday, November 20th 2005 @ 05:15:58 PM
Script : http://domain.com/vb/newthread.php
Referrer :
IP Address : XX.XXX.XXX.XXX
Username : SolidSnake@GTI
Classname : vb_database

PatrickAdrichem
20 Jan 2006, 08:48
Is it possible to edit this to a per user/group set config that goes over ALL forums? because now they can post 10 per forum and i want them to post 10 total

Puntoboy
23 Jan 2006, 14:17
i seem to get getting a database error now...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

almqdad
25 Jan 2006, 05:38
Hi

this hack is too buggy a part from the db error the user gets this message

You may only start $nzbmaxnewthread[number] threads every $nzbmaxnewtime[time] hours. Please try again later.

can some body correct this

thank

tanyeri24
30 Jan 2006, 07:13
yes there is too much bugs I have also 10 database error a day.

PatrickAdrichem
30 Jan 2006, 13:48
Hi

this hack is too buggy a part from the db error the user gets this message

You may only start $nzbmaxnewthread[number] threads every $nzbmaxnewtime[time] hours. Please try again later.

can some body correct this

thank

Acces your database and delete the first phrase

he forgot to remove the old phrase so he inserst the old and the new phrase..
delete the old one, and it should work!

almqdad
30 Jan 2006, 15:32
hello PatrickAdrichem

Acces your database and delete the first phrase

he forgot to remove the old phrase so he inserst the old and the new phrase..
delete the old one, and it should work!

what phrase how to delete the old one
I am afraid to touch the db

can you explain more

mgurain
01 Feb 2006, 14:12
hello,

Can anybody set an SQL (Automatic Query) to set limit for all forums and usergroups to certin number ?

I installed it on 3.5.3 but didn't change anything till now.

I am looking forward to hear from the support uae.

thanks in advance,,

Puntoboy
05 Feb 2006, 18:22
i seem to get getting a database error now...



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



i've had to disable this hack as i keep getting this DB error.

uae
07 Feb 2006, 11:27
i've had to disable this hack as i keep getting this DB error.
Can you please try downloading the latest attachment and installing it?

Puntoboy
07 Feb 2006, 19:47
Can you please try downloading the latest attachment and installing it?

ok i will try.

sung
07 Feb 2006, 20:00
Is it possible to edit this to a per user/group set config that goes over ALL forums? because now they can post 10 per forum and i want them to post 10 total

I'd like to see this feature as well.

Puntoboy
07 Feb 2006, 20:25
I'd like to see this feature as well.

i can't remember how to edit the variables.

i want to set it so my users can only post 20 times per day.

uae
08 Feb 2006, 06:02
i can't remember how to edit the variables.
i want to set it so my users can only post 20 times per day.
Look at the attached image.

MUDERCOOL
22 Feb 2006, 14:41
A suggestion: Why not settings in usergroups manager?


I couldn't agree anymore,
I used this hack on 3.0.7 without any problem and it was great but now it's very very very very very hard to edit any usergroup's permissions
I have 40+ forum parts and for every part I have to edit "each" and "every" usergroup's permissions ONE BY ONE. This is a total timekiller and I'm about to lose my nerve ;)

anyway thank you for the hack but please, please please could you make this one work, like the "old 3.0.x style"???

BoYagoob
09 Mar 2006, 19:43
installed, and worked great! :)

Fergal C
11 Mar 2006, 14:48
Can this plug in be used to limit the total number of posts members make on a community per day?

Or must it be done forum by forum?

masterross
23 Mar 2006, 00:59
hello,

i've tried to set
Maximum New Threads 1
and
Enter time period here (in hours) 0
so user to be able to make only 1 thread for ever in a forum
but it did acept it :(
can you modify it to do that?

thanks,
Ross

xfaktor
12 Apr 2006, 00:46
Is it possible to edit this to a per user/group set config that goes over ALL forums? because now they can post 10 per forum and i want them to post 10 total
I'd like to see this feature as well.

I'd like to have that beaviour too.

Say I set a limit for a sub-forum

All the child forum get the limitation, but the actual "counter" is for each individual sub-forum. Instead of for the whole sub-forum


Thanks.

TwTom
17 Jun 2006, 17:10
I've been looking for one of these for a while. Great hack!

AndrusW
07 Nov 2006, 09:01
Will this work in 3.6.2?

Jay...
26 Nov 2006, 23:28
legendary mod! it works with 3.6.3 everyone! i am over the moon with this!

punchbowl
09 Dec 2006, 10:40
works on 3.6.4 too!

yingzhou
14 Dec 2006, 23:47
Very good mod. Sorry for not see all the post here! :D

Kalina
18 Dec 2006, 04:02
I don't get it, it's working for others, but not for me. I installed it and set permissions per forum for each usergroup and they're still able to post new threads all the time. I tried limiting it to 2 new threads per week. I am running vbulletin 3.6.4, if you know the problem, please let me know, thanks.

PyroMarkus
23 Dec 2006, 13:18
@Kalina

I just installed it on 3.6.4 and it works, as it should. Don't use "0" in the rules, maybe this means "turned off".
I tried to give a group permission to post 1 new thread and 2 posts per hour in a forums only - and it works fine! First I though: it does not work, because I was able to write 3 posts. But ist seems, that new threads do not count to new posts. So, in my case, the test user was able to write 1 new thread with 3 posts, or 1 new thread and 2 posts somewhere else. Then he gets the forbidden message...

Great hack!

timwf
15 Jan 2007, 23:22
I am running into what appears to be the same problem as Kalina, I have it installed and am able to set limits in the permissions area, but when I log in and make posts the mod seems to just not work. This is with 3.6.4. (I made sure to double check based on the info PyroMarkus has, but still no go.)

Did you find out what the problem was Kalina or did you give up on it? My best guess is that there is something that is conflicting with it, some other plugin/product, not sure though.

bada_bing
05 Feb 2007, 18:04
This maybe the exact hack im looking for but unsure about a couple things.

1. Can I set how many post,threads can be created PER FORUM or does this hack work as a global setting, meaning once enabled for usergroup "testgroup" this hacks is for all my forums or can I choose which forum this hack takes effect?

For example what im trying to do is restrict new threads/post to a specific forum "selling forum" to certain usergroups... Will this hack do that?

Sparkey
22 Mar 2007, 20:15
Can this code be adapted to be used over a longer period of time I need to be able to limit the number of posts in a 6 month period. What is the maximum number or hours you can add in to the mod? Thanks.

Sparkey

libabom
29 Mar 2007, 21:46
Does it work for VB 3.6.4?

TorGa3iGhT
08 Apr 2007, 10:23
could someone help me? ok, so i installed this plugin on 3.5.4, and it works 100% when I set the thread post limit for the administrator. When I set any number for registered users, moderators, or any other group, it just doesn't work, and those usergroups can still post however many threads they want.

I would appreciate any help anyone could offer on this! Thanks!

stejoh
10 Apr 2007, 12:48
Please, make the hack compatible with vB 3.6.x

libabom
24 Apr 2007, 11:50
I need to limit the daily message entry to the web site (forum) that every user can send only 10 messages per day.
Can it be possible? Is there any attachments or settings for this?
Edit/Delete Message

baghdad4ever
12 Jun 2007, 13:50
2 questions

1- is it work on 3.6.7 pl1???

2- i want this hack per forums only


thanks

Basboss
19 Jun 2007, 11:48
It is working fine with my 3.6.7 pl1 forums.

Shazz
19 Jun 2007, 17:50
2 questions

1- is it work on 3.6.7 pl1???

2- i want this hack per forums only


thanks

1. Yes
2. Thats what it does

Kalina
22 Oct 2007, 03:26
This plugin has been fine for me til today, I am running vBulletin 3.6.8 Patch Level 1. Now, ALL my forums that aren't set for this plugin, the ones left at "0" for all 4 fields, well now it's literally not letting anyone post a thread or reply except for once per hour, for select forums only.

Any idea why it would suddenly do this?

baghdad4ever
08 Nov 2007, 17:26
i want this hack per forums only

not per usergroup/forum

bec i had 20 usergroups and 100 forums

so it is hard to edit all user group in all forums

Subah
11 Nov 2007, 11:27
Thanks :)

punchbowl
30 Jan 2008, 15:55
This plugin has been fine for me til today, I am running vBulletin 3.6.8 Patch Level 1. Now, ALL my forums that aren't set for this plugin, the ones left at "0" for all 4 fields, well now it's literally not letting anyone post a thread or reply except for once per hour, for select forums only.

Any idea why it would suddenly do this?

did you add the casino mod? that's what did it for me

Kwikms
30 Jan 2008, 16:37
vb 3.6.8 - doesnt work for me :(

no error. I put in

Maximum New Threads 2 Enter time period here (in hours) 1

Maximum New Posts 3 Enter time period here (in hours) 1

for administrator in an admin-only forum. Nothing happens, I can post as much as I want.

What could be wront here?

EDIT: - I tried another usergroup in another forum and it works. maybe it's because of the admin-status.

Forum Lover
30 Jan 2008, 16:49
is it 3.7 friendly?

Kwikms
30 Jan 2008, 19:47
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



I'd love to see

You may only make {1} replies every {2} hours. Please come back in about {3} hours.

Shouldnt be to hard to get this information out of this query, but I dont know how. Any ideas?

Konstantinos
31 Jan 2008, 14:29
can u make this per forum and for all usegroups cause if for example i want all usergroups to post 50 posts to a single forum i cant cause setting 50 max for every usergroup if i have 8 usergroups results to 400

m2006
03 Feb 2008, 10:21
thanks you very good mod

Subah
21 Feb 2008, 13:11
Any update for 3.7 ?

Basboss
26 Mar 2008, 09:32
I'm using it with vB 3.7 and it's working just fine :)

Kwikms
26 Mar 2008, 12:21
Two suggetions:

- Show a user how many posts/replies he is allowed to make in this forum
- Show a user how long he has to wait till he can post again.

Would be awesome.

clr_75
25 Jun 2008, 22:52
On our site we have a few of the "Vote Off" games and one of the rules is you can only vote once every day. Could this mod work to limit users to only 1 post in a particular thread per 24 hours? If not does anyone know of a mod to do so?

Thanks!

we_scooter
29 Aug 2008, 02:53
Database error in vBulletin 3.7.2:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'الأعضاء',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`maxnewthread` = '',
`maxnewtime` = '',
`maxnewpost` = '',
`maxnewposttime` = '',
`forumpermissions` = '3863039',
`genericpermissions` = '1546131139',
`attachlimit` = '0',
`pmquota` = '100',
`pmpermissions` = '3',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions2` = '1',
`genericoptions` = '60',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '150',
`avatarmaxheight` = '150',
`avatarmaxsize` = '40000',
`signaturepermissions` = '237055',
`sigpicmaxwidth` = '150',
`sigpicmaxheight` = '300',
`sigpicmaxsize` = '20000',
`sigmaxrawchars` = '1000',
`sigmaxchars` = '500',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '4',
`sigmaximages` = '2',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '31',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '375'
WHERE usergroupid=2;

MySQL Error : Unknown column 'maxnewthread' in 'field list'
Error Number : 1054
Request Date : Friday, August 29th 2008 @ 04:30:54 AM
Error Date : Friday, August 29th 2008 @ 04:30:54 AM
Script : http://www.ffffffff.com/admincp/usergroup.php?do=update
Referrer : http://www.ffffff.com/admincp/usergroup.php?do=edit&usergroupid=2
IP Address : 77.44444444
Username : fffffff
Classname : vB_Database
MySQL Version : 5.0.51a-community

PyroMarkus
29 Aug 2008, 15:57
I love this mod and I do not get real errors in 3.7.2 and in 3.7.3 but it seems not to work properly anymore - it did for 2 years with 3.6.4.

Even as admin I suddenly get often the mod-message "you are not allowed anymore today..." in some "private" forums although there never was an value set for this mod in those forums.

Somehow it seems to fail in any forums, which is limited to start threads for some/most usergroups...

Puntoboy
17 Sep 2008, 13:58
Have you managed to get this working for 3.7.3 PL1?

PyroMarkus
17 Sep 2008, 14:12
No, I am so sorry. It brings the above mentioned errors and I had to permanetly disable it.

Cyn
18 Sep 2008, 04:44
Working great in 3.6.11 :)

PyroMarkus
18 Sep 2008, 18:39
Try to upgrade, because 3.6.x is different ;):

...but it seems not to work properly anymore - it did for 2 years with 3.6.4.

drgonzo120
03 Oct 2008, 11:38
anyone who will update this to 3.7.2 ?

Basboss
26 Oct 2008, 09:41
It works just fine with 3.7.3 and 3.8.0 beta 1

PyroMarkus
29 Oct 2008, 21:32
Are you sure?

Yes, the plugin was working in 3.7.x but with those new versions (after 3.6.x) I suddenly had irregulary messages for some users and even admins, that they would exceed their limits, although they did not or even had no limits at all in those forums.

So, working, somehow: yes, but working as intended: no, starting from 3.7. - in my installation...

yahoooh
05 Feb 2009, 12:44
any update for 3.8

eternal_
26 Feb 2009, 13:36
Is there one where a usergroup will only be able to post a certain number of posts across all forums? With this one the settings are for each individual forum.

Spaz21
01 Apr 2009, 13:17
does this work with 3.8.1??

fourat
07 May 2009, 06:15
Work with 3.8.2 :)

Javierogo
06 Jul 2009, 22:49
This hack is terrible! :down:

yahooooh
17 Dec 2009, 00:51
any one update this for 3.8

yahooooh
06 Jan 2010, 05:28
we need one confirm that it works in 3.8.4 witjout issues plz

Kwikms
06 Jan 2010, 07:43
we need one confirm that it works in 3.8.4 witjout issues plz

It does work with 3.8.4 for me.

aleclee
06 Jun 2010, 21:32
Works fine for me in 3.8.4.

Wondering if anyone has tried it in 4.0.

Wajdan
25 Sep 2010, 10:19
Does it work with vb4 ?

cuocsongso
02 Oct 2010, 02:26
Does it work with vb4 ?
I don't think so

yahooooh
08 Nov 2010, 15:32
plz we need this great hack for vb4

BirdOPrey5
29 Jul 2011, 17:38
Off hand I don't see any reason this wouldn't work in 4.x. Anyone that curious should just try it.

Phobos49
14 Aug 2011, 00:25
Does NOT work with 3.8.7 PL2. :(

After installing the addon and trying to access 'forum rights' I get this:
Fatal error: Cannot use object of type mysqli_result as array in /is/htdocs/XXXXX/includes/adminfunctions_forums.php(194) : eval()'d code on line 10