Mod Name / Version - Private Moderation 1.3 Version 1.1 blocks the users ability to edit their profile if they are in private moderation. 1/23/03 Version 1.2 offers the option to block the sending of Private Messages. 1/28/03 Version 1.3 adds in the functionality to be able to search and find users who are in private moderation - thanks Raconteur
Description - This allows you to put a user into "Private Moderation" where all their posts will require approval from an admin or mod. An alternative to banning...allowing their good posts to get through. Almost like a probation.
Database Altered - 1 field added to the w3t_Users table (U_PrivateModeration) with a yes/no value.
New Files - /admin/moderateuser.php, /admin/unmoderateuser.php
Any other info - Only Admins can enter or remove a user from private moderation. Edit their profile, and you'll see the option right below the "ban this user" option. Remove them from moderation the same way. The User and All Admins/Mods receive a PM when they are added or removed from Moderation.
Backup your files and database before doing any modifing of you code.
Haven't done much testing yet myself. But all seems to be OK with initial testing.
There are some tweaks to this mod, that I could see useful, and would write up if anyone was interested.
As an alternative to approving user registrations.. you could set it up that New Users are in the Private Moderation for their first X posts...or until the Admin "approves" them for live posting.... Let people start there and earn their trust.
Could this be modified to work on a forum by forum basis and then allowing not just the Admin, but also the moderators to approve posts?
Reason for asking is that I have one area on my board in which tensions seem to flare up at times, yet the same poster that would need moderating in there might be well behaved in other areas.
Moderators are allowed to approve posts in their forum. Currently only admins can put a user in, or take a user out of private moderation. But anyone who can normally approve posts can approve them.
This isn't fancy... but if you wanted it to work in a specific board only....
Where you normally add this in addpost.php:
code: // ------------------------- // Private Moderation - by JoshPet if ($user['U_PrivateModeration'] == "yes") { $Approved = "no"; }
Ok - I think I have a little problem Made all the edits required and can see the new link when I edit a user. The problem is that I don't think the username is getting passed on properly. I tried to put a user in Private Moderation and got the following PM:
"Webmaster has put into Private Moderation. All their posts will require approval."
Username missing I assume? Any help or suggestions would be great!
p.s. forgot to say that if you go back to edit that user again the option to put them into moderation is still there. It doesn't say click to remove them as I assume it should?
That is a really good question! I am also interested to know if it would be possible to stop them posting on the Shout Box (though i am probably asking too much there lol)
If you are using "Full new post tracking" in your config file... then on the main index, you'll see a number of posts with a N/A (for Not Approved) next to it. Like this:
(3 N/A) would be 3 non approved posts.
Also.... the unapproved posts will have (N/A) in the title.
You can also approve them by clicking edit next to the post.
Probably not. As it's based on user numbers..... and 5.4.4 was username based.
You might try the version that's posted somewhere here for the 6.0 series. But I'm not too familiar with that early a version anymore to know if it would work.
Hey, Just installed this hack and get the following error when trying to put a user in moderation:
Parse error: parse error in /var/www/vodatones.com/html/ubb/admin/moderateuser.php on line 28
Also there's a file called ".DS_Store" in the zip file. There's no referance to this file in the instructions, what do I do with it? Is this whats causing the problem?
Don't know what the DS_Store file is... perhaps it was somethign your systm created when you unzipped?
Don't know about the error either. That's right at the begining of the code. Make sure that you uploaded the scripts in ASCII mode....otherwise they'll get corrupted.
Great, lol Just re-uploaded the files and it's still happening. I have cuteFTP in auto detect mode for uploading which has NEVER cuased a problem si it cnt be that. Any chance you can have a look? your admin on my board and also have FTP access. I'd appreciate it.
OR - since you had that wierd file in the zip... I wonder if something got corrupt either during download from here.... or during uncompression on your end. Anything is possible.... but the parse error was at the very first line of code in the file... so most likely the file that was there had some bizarre characters in it.
I get this in every one of your zips Josh. Even the stylesheet zips. I don't get them in anything else though. I just ignore it. Everything else has been fine, just an extra little file.
It's possible - but they didn't used to do it. I only noticed the new file within the last couple weeks or so. When I try to view it, it's obviously not something that can be viewed with just a text editor. I try to view it in WinRAR and I can make out a few words, but the rest is just "|" and a few other characters. The words I can make out are always relevant to whatever the hack is, so it's not just an odd file that is added on.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.