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.
I added a member to private moderation and it stopped me from sending private messages also. Mind lookin at sendprivate.php.
I removed the file and put the original back and it didn't stop me which is to be expected.
Ok somehow I got myself in private moderation along with my other admin user name... now wonder it stopped me. I look at my Edit users feature and it doesn't allow me to unprivate mod myself.. grr.
I figured its a version thing, im running 6.1.1 so I took some of the stuff out, edited this and that, and got it going... A little different, but i got it going...
[]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[/]
Have you done this? I would like to do this - is it pretty 'change intensive', or not really that much to change?
If you are running my private moderation mod.... what I would first do is change the database so that new users are in Private Moderation by default. The easiest way to do this, is to alter the default in the database:
ALTER TABLE w3t_Users CHANGE U_PrivateModeration U_PrivateModeration CHAR(3) DEFAULT 'yes'
Then as you see new posters in moderation.... if they seem OK - click their username and remove them from private moderation.
You might also want to alter the welcome PM so that it tells people that "all new users posts are moderated during a probation period. When the moderators deem fit, you will be removed from moderation and can post live." Something like that.
Then of course if you needed to put someone back into private moderation, you could do so.
Then if you needed something to display a list of who was in private moderation.... and had x number of posts and had been registered for at least x days, then you could review the list and turn people on if you wanted.
OR.. you could alter addpost.php so that if their post count was = 10 or whatever, it updated U_PrivateModeration = 'no' thus turned them off at post 10.
Is anyone planning to update this for 6.5? I found it to be a very useful feature. I am taking a look at it, but the admin files have been redesigned for 6.5, which makes it more difficult to update.
Am I the only one that appreciates this fine modification of JoshPet's? I have looked into updating it, but it seems a bunch of stuff has been moved around into different files which I can't locate. Maybe someone out there is fluent in the 6.5 code enough to know where?
I desperately need this mod for 6.5 lol - too many 13 year old kids on my board who think bumping posts is the way to go *sigh*. Pleaaaaaaase can you update it Josh?
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.