Your premium source for custom modification services for phpBB

HomeForumsBlogMOD ManagerFAQSearchRegisterLogin

Comments November 29, 2006

Released One!

Filed under: MOD Writing, phpBB — Dave Rathbun @ 9:16 pm CommentsComments (1) 

My “Forum Auth by Post Count” MOD was approved today. 8)

As I have worked for various clients over the years, one of the MODs that I was constantly running across was some form or another of an “auto-group” MOD. The idea was fairly simple… phpBB offers the ability to show / hide forums based on group membership. An auto-group MOD was used in order to automatically add users to (or remove them from) a private group, thereby allowing them to see (or not see) these hidden forums. An idea that works in principal, but really is a bad idea in execution.

You see, there are lots of things that can happen to adjust a user’s post count. When a user posts, it goes up. If a post is deleted, it goes down. If a topic is deleted, then it can affect an entire set of users, not just one. And if multiple topics are deleted at the same time (via the Moderator Control Panel) then the code has to handle that too. Each and every time a user’s post count is changed, their group membership has to be checked. That can start to add up.

My MOD takes another approach. At any given time I know what the user’s post count is, simply by checking $userdata['user_posts']. No queries are required. When a board admin sets up a new forum they have the opportunity to set up four new values: the minimum and maximum posts required (allowed) to view the forum, and the min/max related to posting as well. These four new fields are added to any query that retrieves the forum information, which means I don’t have to add any new queries there either. So in my opinion, this is a superior solution.

I hope the phpBB user community finds the MOD useful. 8)

Release Topic at phpBB.com

1 Comment »

  1. Congratulations! Having a released MOD is always nice :)

    Comment by eviL<3 — November 30, 2006 @ 10:35 am

RSS feed for comments on this post.

Leave a comment

Tags allowed in comments:
<a href="" title=""> <acronym title=""> <blockquote cite=""> <code> <strong> <em> <u> <sup> <sub> <strike>

Confirm submission by clicking only the marked checkbox:


Powered by WordPress