Home

Your premium source for custom modification services for phpBB

  logo

HomeForumsBlogMOD ManagerFAQSearchRegisterLogin

Comments March 23, 2008

Any More phpBB2 MODs?

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

I have been taking some grief from other phpBB.com team members over the fact that I’m still running version 2. I can understand why. :) I’ve been taking even more grief from some other folks because I’m still writing code for and updating my phpBB2 boards. Which I can also understand. But I’ve been working on a MOD that I really like, and I’m wondering if there is enough interest in phpBB2 MODs anymore to make it worth the effort to write it up, release it, and support it.


My most popular MOD has been the Page Permissions MOD. I have no idea how many people are actively using it, but it certainly does not get many support questions in the release topic. I think it’s a testament to the number of folks that helped test it that there have not been any incremental releases for quite some time. I think for the people that use it, it’s just working. And that’s a good thing. :) That means that it has not taken much of my time. One of the reasons I personally like this MOD so much is that it replaces a number of different MODs. For example, you don’t need a specific MOD to protect the memberlist or profiles from public viewing, just use the Page Permissions MOD. You don’t need a special MOD to password protect a forum, just use the Page Permissions and restrict access to a specific forum to a specific group. It also provides a counter for each page that you want to apply a counter to, and it differentiates between public (guest) and member (registered) views.

This next MOD that I am considering would work in the same way, meaning it would replace a number of other MODs and provide a nice central way to manage a lot of different features.

Post Notes MOD

The next MOD that I’m considering is called Post Notes. It is partially inspired by what I perceive to be a gap in functionality for phpBB3, and partially by a particular feature that I wanted to have on my own board. Simply put, a Post Note is a way to annotate a specific post. These annotations could come from a manual entry (a user has reported a post) or from a system-generated event (the topic is moved, split, or merged) or from a moderator (reacting to a reported post).

The “gap in functionality” that I’m referring to in phpBB3 is related to the Report a Post feature. A user can report a post, and the moderator team gets a queue to handle. But here’s the gap: there is no way for me as a moderator to respond to the original poster. In some cases I will review a reported post, and as a moderator I don’t agree with the original poster’s assessment. So if I decide to leave the topic open it means I have to take the additional step of sending a PM to the original reporter. Or just ignore it, which is what I tend to do out of laziness. ;-)

Wouldn’t it be cool if the original “report” action stored a note in a post-notes table, and then as a moderator I could respond to that note with a brief explanation of why the post was closed, or why it might remain open, based on my decision? I think so.

I have seen some Report Post MODs for phpBB2, but none of them worked the way I wanted them to, so I wrote my own. This MOD integrates with the Post Notes MOD very well.

Moderator Discussions

On my largest board we have a specific forum where we talk about posts that might be borderline as far as the rules. But these posts are not attached to the post or topic in question, other than by including an embedded link to the post. Wouldn’t it be nice if instead the discussion could take place (hidden still, of course) on the post itself?

This is a core feature of the Post Notes MOD; to allow moderators or administrators to discuss a post.

Moderator Log

When a moderator moves or splits or locks a topic on my board, we will often edit the post and say why we’re doing that particular action. But it’s optional. That means a moderator might decide to move a topic but never gets around to saying why the topic was moved. There is also no log that a particular moderator took a particular action. I’ve seen various Moderator Log MODs as well, but this concept is perfect for the Post Notes MOD. Every different action in modcp.php now calls a function called log_moderator_topic_action() and this function creates a non-editable entry in the Post Notes for that topic. That way even if a moderator does not take the time to post in the topic (or to edit an existing post in the topic) I still know who did what. I think that’s important, and it’s a perfectly easy extension of the Post Notes MOD.

Edit History

In a standard phpBB2 board there are two fields used to record post edit history. These fields record the last edit time and the number of edits made, but only by the person that made the post. If a moderator or administrator edits someone else’s post, there is no record of that action. This is potentially a major problem. It is one of many reasons why you should select your moderators extremely carefully.

I have seen some MOD Requests where board owners wanted to see a history of edits, including who edited a post and when. There is no place to store that information in a standard phpBB board, but here again is a perfect application for Post Notes. During the posting process (in includes/functions_post.php) I capture if an edit is going on, and if so, create a non-editable post note that records who edited the post and when. Now I have a complete edit history, even if the edit was done by someone other than the original poster.

See where this is going? ;-)

I realize that some of these features are in phpBB3. But I don’t think they’re all combined into one place like I am doing with this MOD. And besides, this is for phpBB2 anyway. :-P

The Big Question

The big question becomes: should I write this up and release it? Is there be any interest in new MODs for phpBB2? I realize the obvious place to ask this question is in a new topic in the MOD Development board at phpbb.com but I have not made it to that step yet.

I am still going to finish it for my own use. It’s just a question of whether anyone else will get it as well.

9 Comments »

  1. Hi dave,

    Nice post! As you probably know, i’m not into phpBB2 anymore. I don’t use it for any of my projects, and don’t create any MODs anymore. The support i give is limited, but the same applies to the support requests. So i wouln’t really be using this MOD. I must say, it sounds very promising and interesting. Perhaps you could create a diff of the edited post. phpBB3 offers functions for that. I’d be interested in seing the code of the MOD, personally. In case you don’t release it to public, i’d be glad to be able to see it on a “private” basis, but that’s up to you. ;)

    I like the way you try to combine many different things. Well done :)

    Comment by eviL3 — March 24, 2008 @ 4:31 am

  2. Storing a “diff” of the post edits would be version 2.0. :) I thought about it, but I don’t need it for what I am primarily going to be using it for and therefore will leave that out in the interest of time. Just knowing that phpBB3 has functions to do that helps; I can look at their code when I get ready to add that feature.

    Comment by Dave Rathbun — March 24, 2008 @ 10:25 am

  3. A few quick comments on things, which I may add to a bit later…

    First of all, I wrote the reporting system for my site last summer, and it had to handle all of the areas of my site, so obviously anyone’s existing MOD wasn’t going to work. The neat thing, is that it logs the report in the database, but it also looks up the moderator of the area who has most recently logged in and sends him a PM. If there are no moderators in the area, then I get the PM.

    Now, since only one person gets the PM, you don’t have to worry about lots of moderators potentially all being alerted to one problem. Plus, the PM contains some useful information about the post, picture or whatever was reported, including link and reason and username. Then a moderator or I can either reply back to the PM if the user requested it (idea from phpBB3) or take care of the issue and go on with life.

    About your moderator logs, I have the Log Moderator Actions mod installed, but I also wrote some code to send more PMs to users. There was this site I was at the made me incredibly angry because the “staff” would edit or delete my posts without telling me about it. So, what I did is make sure that would never happen on my site.

    When a user other than the author deletes a post or topic, the contents of that post are un-BBCode parsed and sent to the poster via automated PM (this is incase he wants to post the message again, such as if the post should not have been deleted). For a topic, it just sends a PM notifying the user of deletion. Both of these PMs tell who was the one who did the action and encourage the user to reply back if there’s been a mistake. Also, when a topic is moved, a PM is sent saying which topic it was, which forum it came from, and where it went.

    This way, there is some better “proof” in the form of a PM which is sent to the user, about what is going on with his posted content.

    Comment by Dog Cow — March 24, 2008 @ 1:54 pm

  4. One of the first things I did with my board was remove the PM system. :) That means that quite a few of the suggestions from your post are not available. (It also means that nobody has to include a line in their signature that says, “No support via PM” since the feature doesn’t exist.) For version 1.0 of the post notes MOD I am going to stick with a simple note entry. For version 2 I plan to implement an email notification for topic merges, topic moves, post or topic deletes, and other actions.

    Comment by Dave Rathbun — March 25, 2008 @ 1:46 am

  5. I’m extremely interested in Post Notes. Just being able to track when and who edits each post would be a great addition. Having had one moderator “go rogue” previously it would be nice to have all the mods know that their actions were logged and that they could be held accountable.

    Comment by Momentum — March 26, 2008 @ 9:42 pm

  6. Hi, Momentum, welcome. :)

    That idea had come to mind. One of the other things that I felt would be useful out of this MOD is the opposite question: which moderators are not doing anything? By keeping a log of who is doing what, I have a clear indication of which moderators are doing their jobs, and which moderators are not. It is not like each moderator has a quota of activities that they are required to do, but when someone is invited to the moderator team there is a certain level of participation that is expected. Without some sort of moderator log such as will be provided by this feature, that would be difficult to determine.

    The Post Notes feature will be going live next week on my largest board, so I will get more feedback very soon. Thanks for your comment! 8-)

    Comment by Dave Rathbun — March 27, 2008 @ 6:56 am

  7. please keep working on new mods for Phpbb 2

    Comment by faulksie — September 1, 2008 @ 3:49 am

  8. Hi, faulksie, and welcome. :) I have some plans that I’m working on in that area, but nothing to announce yet. Thanks for the encouragement.

    Comment by Dave Rathbun — September 1, 2008 @ 9:27 am

  9. thats good to hear. As my site grows i find my needs change, but its appears a lot of sites are dropping phpbb2 stuff and just working on phpbb 3. I like my setup and hope to run phpbb2 as long as i can. The information gained from your site and your mods have been a great help in making my site much more secure, easier to manage, and i beleave a better place for our users. Keep up the good work, its really appreciated out here !

    Comment by faulksie — September 1, 2008 @ 5:18 pm

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