FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » want to restrict access to a particular forum by post count
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
want to restrict access to a particular forum by post count [message #9468] Mon, 31 March 2003 19:21 Go to next message
djhankb is currently offline  djhankb   United States
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 #9470 is a reply to message #9468] Tue, 01 April 2003 05:01 Go to previous messageGo to next message
AutoHost is currently offline  AutoHost   United States
Messages: 99
Registered: October 2002
Karma: 0
Member
I would like to see this also, as it basically restricts a forum to users below a certain rank. Very nice!

Ron Miller
Stars! AutoHost
Re: want to restrict access to a particular forum by post count [message #9475 is a reply to message #9468] Tue, 01 April 2003 14:51 Go to previous messageGo to next message
BugLaden is currently offline  BugLaden   United States
Messages: 216
Registered: February 2002
Location: Westminster, MD
Karma: 0
Senior Member
Is there a PHP setting to set the reply-to field in these auto-generated emails?

-=BugLaden
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
AutoHost is currently offline  AutoHost   United States
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: want to restrict access to a particular forum by post count [message #9653 is a reply to message #9652] Sun, 13 April 2003 16:51 Go to previous messageGo to next message
AutoHost is currently offline  AutoHost   United States
Messages: 99
Registered: October 2002
Karma: 0
Member
Ah! Thank you.

Which php files in FUDforum will I need to include to successfully be able to use add_member and rebuild_cache (and any needed varibles) ?



Ron Miller
Stars! AutoHost
Re: want to restrict access to a particular forum by post count [message #9654 is a reply to message #9653] Sun, 13 April 2003 17:01 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
you'll needs groups.inc, which itseld requires db.inc & err.inc.
For any needed variables read the code inside groupmgr.php.t which is the form that does group member additions.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Backup message attachments?
Next Topic: How do I set the reply to field for email confirmation?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 09:31:16 GMT 2024

Total time taken to generate the page: 0.02540 seconds