php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#228138 - 11/22/02 01:38 AM [6.2] Private Moderation 1.3
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC

   [6.2] Private Moderation 1.3 to Del.icio.us Add to del.icio.us
  Digg [6.2] Private Moderation 1.3 Digg it
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 (133 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228139 - 11/22/02 01:51 AM Re: Private Moderation 1.0 [Re: Daine]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1956
Loc: Sweden, Uppsala
Great work, this will be a popular mod I should think!
_________________________
/Gardener | Complete list of my mods

Top
#228140 - 11/22/02 04:35 AM Re: Private Moderation 1.0 [Re: Daine]
dimopoulos Offline
Kahuna

Registered: 08/18/02
Posts: 1271
Loc: Vienna, Austria
Thanks Josh!<br /><br />Nice one!<br /><br />Warm regards<br /><br />Nikos
_________________________
Nikos

Top
#228141 - 11/24/02 02:50 AM Re: Private Moderation 1.0 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
There are some tweaks to this mod, that I could see useful, and would write up if anyone was interested.<br /><br />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. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228142 - 11/25/02 12:53 AM Re: Private Moderation 1.0 [Re: Daine]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Great mod.<br /><br />I do have a request though <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />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?<br /><br />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.<br /><br />Sanuk!<br />

Top
#228143 - 11/25/02 02:18 AM Re: Private Moderation 1.0 [Re: Deyth_Combine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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. <img src="/forum/images/graemlins/wink.gif" alt="" /><br /><br />This isn't fancy... but if you wanted it to work in a specific board only....<br /><br />Where you normally add this in addpost.php:<br /><pre><font class="small">code:</font><hr><br />// -------------------------<br />// Private Moderation - by JoshPet<br /> if ($user['U_PrivateModeration'] == "yes") {<br /> $Approved = "no";<br /> } <br /></pre><hr><br /><br />Try changing it to this:<br /><pre><font class="small">code:</font><hr><br />// -------------------------<br />// Private Moderation - by JoshPet<br /> if (($user['U_PrivateModeration'] == "yes") && ($Board =="keywordofboardhere")) {<br /> $Approved = "no";<br /> } <br /></pre><hr><br /><br />I think that'll do it. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228144 - 12/13/02 04:01 AM Re: Private Moderation 1.0 [Re: Daine]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />Thanks. Will give this a go.<br /><br />Sanuk!<br />

Top
#228145 - 01/23/03 07:50 PM Re: Private Moderation 1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Updated the main post to version 1.1<br /><br />Version 1.1 will block a user in Private Moderation from editing their profile. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228146 - 01/23/03 07:55 PM Re: Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
This is an awesome idea for a mod!!!<br />Does anyone know if it works with 6.2?
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228147 - 01/23/03 08:02 PM Re: Private Moderation 1.1 [Re: casper_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ah yes... sorry.<br /><br />I forgot to update the text in the first post to indicate that this is for 6.2 and 6.2.1. <br /><br />Enjoy! <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228148 - 01/23/03 08:03 PM Re: Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
Thanks - great news!!!
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228149 - 01/25/03 09:41 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
Ok - I think I have a little problem <img src="/forum/images/graemlins/frown.gif" alt="" /> <br />Made all the edits required and can see the new link when I edit a user. <br />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: <br /> <br />"Webmaster has put into Private Moderation. All their posts will require approval." <br /> <br />Username missing I assume? Any help or suggestions would be great! <br /> <br />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?


Edited by pootlecat (01/25/03 09:49 PM)
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228150 - 01/25/03 11:57 PM Re: [6.2] Private Moderation 1.1 [Re: casper_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Hmmmm.....<br /><br />In the moderateuser and unmoderateuser.php files.... try adding this below the require main.inc.php line near the top:<br /><br />
Code:
<br />// -------------<br />// Get the input<br />   $Cat  = get_input("Cat","get");<br />   $User	= get_input("User","get");<br />
<br /><br />See if that solves it. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228151 - 01/25/03 11:57 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Let me know if it does, and I'll update the files. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228152 - 01/26/03 09:27 AM Re: [6.2] Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
Thanks Josh - it is working perfectly now <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228153 - 01/26/03 02:16 PM Re: [6.2] Private Moderation 1.1 [Re: casper_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
OK - cool.... it has to do with Register Globals. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />The fix I posted for the contact form will fix you too. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />I will update the Zip on the first post. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228154 - 01/27/03 07:57 AM Re: [6.2] Private Moderation 1.1 [Re: Daine]
Wando Offline
Power User

Registered: 04/10/02
Posts: 64
Loc: UK
Is it possible to disable an 'on probation' members ability to pm during this period?
_________________________
www.planet-audi.net

Top
#228155 - 01/27/03 12:00 PM Re: [6.2] Private Moderation 1.1 [Re: algorewon]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
That is a really good question!<br />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) <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228156 - 01/27/03 12:22 PM Re: [6.2] Private Moderation 1.1 [Re: casper_dup1]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I will post some instructions to do that tonight. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Hmm.. have to check on the shoutbox. Not 100% sure how that works.... but I will check it out. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228157 - 01/28/03 12:17 AM Re: [6.2] Private Moderation 1.1 [Re: algorewon]
JoshPet Offline
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 />
Code:
 <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 -&gt; authenticate("U_TextCols,U_TextRows,U_Preview"); <br /> <br /> <br /> <br /># <br /># Change to this: <br /># <br /> <br />   $user = $userob -&gt; 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 -&gt; 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 -&gt; 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 -&gt; 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 -&gt; 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)
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 1 of 3 1 2 3 >


Top Posters Last 30 Days
AllenAyres 13
Gizmo 10
willing 2
S7ARBVCK 2
MattUK 1
Kevin H 1
tackaberry 1
Who's Online
1 Registered (Gizmo), 25 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Noob - need help, or a reality check!
by Gizmo
Yesterday at 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks