want to restrict access to a particular forum by post count [message #9468] |
Mon, 31 March 2003 19:21 |
djhankb
Messages: 13 Registered: April 2002
Karma: 0
|
Junior Member |
|
|
is this possible?
Here's the situation, I run an auto club, http://www.crxohio.org/
and we have a forum, using your software, and one forum is a Classifieds.
and I basically want to limit access to the classifieds until a user is a little more seasoned, and can be recognized by other members, to help prevent a scammer.
I would really prefer it, so that the forum doesn't even appear to a user until he/she has XX post count...
for now, I have turned my "classifieds" forum into a moderated forum, where one of my mods would have to approve every post, but the afforementioned way would be preferred, any insight would be appreciated.
Thanks!
-Henry Bonath
|
|
|
|
|
Re: want to restrict access to a particular forum by post count [message #9616 is a reply to message #9475] |
Sun, 13 April 2003 14:52 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Use the group system, deny access to the forum to all users and create a special group that can access it. Once a user had reached a certain post count have them added to the group or write a cron job to do it automatically.
FUDforum Core Developer
|
|
|
Re: want to restrict access to a particular forum by post count [message #9651 is a reply to message #9616] |
Sun, 13 April 2003 16:37 |
AutoHost
Messages: 99 Registered: October 2002
Karma: 0
|
Member |
|
|
prottoss wrote on Sun, 13 April 2003 10:52 | ...or write a cron job to do it automatically.
|
Sigh, easier said than done... Do you mean a shell script or perl that manually does a SQL query to find users over x amount of posts, then another query to manually add them to a group somehow?
I have no clue how to do that, but wish I did! What tables would I need to query, and what tables would I then need to update?
Ron Miller
Stars! AutoHost
|
|
|
Re: want to restrict access to a particular forum by post count [message #9652 is a reply to message #9651] |
Sun, 13 April 2003 16:46 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You don't have to find out how many posts a user has made, it is stored in a field inside the users table (posted_msg_count).
Then you have a PHP script running in the cron do:
$grp->add_member($user_id, $prems_array);
$grp->rebuild_cache($user_id);
FUDforum Core Developer
|
|
|
|
|