 |
 |
 |
 |
#228138 - 11/22/02 01:38 AM
[6.2] Private Moderation 1.3
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
Mod Name / Version - Private Moderation 1.3 <br /> Version 1.1 blocks the users ability to edit their profile if they are in private moderation. 1/23/03 <br /> Version 1.2 offers the option to block the sending of Private Messages. 1/28/03 <br /> Version 1.3 adds in the functionality to be able to search and find users who are in private moderation - thanks Raconteur <br /> <br /> 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. <br /> <br /> Working Under - UBB.Threads 6.2, 6.2.1 <br /> <br /> Pre-requisites - none <br /> <br /> Author - JoshPet - www.joshuapettit.com <br /> for discussions and bug reports come to www.threadsdev.com <br /> <br /> Credits - Raconteur <br /> <br /> Files Altered - addpost.php, ubbthreads.php, /admin/selectoption.php, admin/selectusers.php, admin/showusers.php, includes/selectusers.js <br /> <br /> Database Altered - 1 field added to the w3t_Users table (U_PrivateModeration) with a yes/no value. <br /> <br /> New Files - /admin/moderateuser.php, /admin/unmoderateuser.php <br /> <br /> 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. <br /> <br /> Backup your files and database before doing any modifing of you code. <br /> <br />Haven't done much testing yet myself. But all seems to be OK with initial testing. <img src="/forum/images/graemlins/grin.gif" alt="" /> <br />
Attachments
60856-PrivateModeration1.3.zip (123 downloads)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#228148 - 01/23/03 08:03 PM
Re: Private Moderation 1.1
[Re: Daine]
|
Power User
Registered: 07/24/02
Posts: 83
Loc: Canada
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#228157 - 01/28/03 12:17 AM
Re: [6.2] Private Moderation 1.1
[Re: algorewon]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
I haven't test this yet... .but this should disable the Private Message ability (sending) if they are in Private Moderation. <br /> <br />Please let me know how it works. <br /> <br />OPTIONAL STEPS - To restrict the Sending of Private Messages: <br /> <br />########################## <br />## Open sendprivate.php ## <br />########################## <br /> <br />######################################## <br /># Find this: <br /># <br /> <br /> $user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview"); <br /> <br /> <br /> <br /># <br /># Change to this: <br /># <br /> <br /> $user = $userob -> authenticate("U_TextCols,U_TextRows,U_Preview,U_PrivateModeration"); <br /> <br /> // ----------------------------------- <br /> // Block if they are in Private Moderation <br /> if ($user['U_PrivateModeration'] == "yes") { <br /> $html = new html; <br /> $html -> not_right('You cannot send Private Messages while you are in Private Moderation.',$Cat); <br /> } <br /> <br /> <br /> <br />########################### <br />## Open mess_handler.php ## <br />########################### <br /> <br />######################################## <br /># Find this: <br /># <br /> <br /> $user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview"); <br /> $Username = $user['U_Username']; <br /> $Password = $user['U_Password']; <br /> <br /> <br /># <br /># Change to this: <br /># <br /> <br /> $user = $userob -> authenticate("U_Groups,U_EReplies,U_TextCols,U_TextRows,U_Preview,U_PrivateModeration"); <br /> $Username = $user['U_Username']; <br /> $Password = $user['U_Password']; <br /> <br /> // ----------------------------------- <br /> // Block if they are in Private Moderation <br /> if ($user['U_PrivateModeration'] == "yes") { <br /> $html = new html; <br /> $html -> not_right('You cannot send Private Messages while you are in Private Moderation.',$Cat); <br /> } <br />
Edited by JoshPet (01/28/03 01:25 PM)
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#228165 - 02/21/03 10:12 AM
Re: [6.2] Private Moderation 1.1
[Re: Daine]
|
Enthusiast
Registered: 10/18/00
Posts: 379
Loc: Mishawaka, IN
|
|
|
Top
|
|
|
|
 |
 |
 |
 |
| |