Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [SeanP] Do these functions exist?

Quote Reply
Re: [SeanP] Do these functions exist? In reply to
Hi,

I haven't played much with GForum especially lately, and I'm not sure about the first part, but your second part can "imitated" by using the Groups feature.

If you create a forum that is only accessible read/write/post/reply by members of "ACTIVE_USER" for example, and make the membership in ACTIVE_USERS contingent upon the number of users posts, you'd get the same effect.

You could do a small hook into the "post" routine, to check if a user is:

ACTIVE_USER = Yes if (! ACTIVE_USER and users.posts >= 50)

The reason to do it that way, is if the user is already an ACTIVE_USER you don't need to update their group membership, and it saves a huge amount of time on active boards.

Or, you could run a small cron job, every few hours, to update the database for every user where ACTIVE_USER = No and user.posts >= 50

The above is PSEUDO code, not real code, but it shows how it could be done, fairly easily.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Subject Author Views Date
Thread Do these functions exist? SeanP 2560 Jan 23, 2006, 9:05 AM
Thread Re: [SeanP] Do these functions exist?
SeanP 2439 Feb 17, 2006, 8:00 PM
Post Re: [SeanP] Do these functions exist?
pugdog 2377 Mar 26, 2006, 7:34 AM