PDA

View Full Version : How can I limit the number of posts per day


Remi
15 Jun 2001, 14:36
Is there a way to limit the number of posts per day for a user or a group

For example I want the user to be able to post three posts only every day but in the same time he can send any number of replyes.

It wuld be even grater if i can restrect the number of replies

For example the user can send 3 posts and 10 replies

Michael
16 Jun 2001, 00:24
I haven't looked at the code of vBulletin for about a year now, but this would be the theory behind it.

select count(*) from table where date="donnodateformat" and username="$username";

mysql_query(...)

if(mysql_num_rows($result) = 3){
print "sorry dude, you've had your 3 posts.";
} else {
leave the posting code in there that is already there...
}

You'll have to go through and look up the details like the table name and there columns etc - but that would be a basic approach to work on.

Remi
16 Jun 2001, 01:17
Thank you very much Michael

I hope some one will be able now to put theory into practice :D because I know nothing about PHP :o