![]() |
Disallow users to post in "Lounge" section if they post there too much
Too many of my posters just post in the "lounge" section of my site. It accounts for about 75% of all the posts.
I want to be able to control a ratio of (how many lounge posts) / (all posts). If their ratio is too high, then the script will not allow them to post / reply. I do not expect anyone to do all this for me, I am willing to learn how. But, I am somewhat unfamiliar with the vbulletin system (i.e. which files do what and their classes). I can do the php stuff, but integrating it into vbulletin is the problem. Would someone please tell me the best method to accomplish this? |
well, all you need would be the DB_site object.
and then editing newreply.php with db_site you run a query, and find out, how many lounge posts they have (as you have to join post and thread table, it is not the fastes query, but in newreply, you can do so) then devide it by $bbuserinfo['posts'] and then if the ratio is ok, allow them to post, if not then use the error function :) |
Thank you so much, that was exactly what I wanted to know.
|
:)
you're welcome |
All times are GMT. The time now is 11:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|