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
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)

_________________________
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: 1954
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
#228158 - 01/28/03 01:02 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
Hi Josh <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />The sendprivate.php part works perfectly but not the mess_handler.php bit.<br /><br />I get the following error message:<br /><br />"SQL ERROR: Tue, Jan 28 2003 12:11:45 -0700 Database error only visible to forum administrators<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/sites/site2/web/neohelp/mysql.inc.php on line 130"<br /><br />Thanks <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228159 - 01/28/03 01:10 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
Ah I made a typo<br /><br />U_PrivateModeraton<br /><br />Should be:<br /><br />U_PrivateModeration<br /><br /><img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />It was late. I need sleep.<br /><br />I will fix my post above. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228160 - 01/28/03 01:11 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
pootlecat Offline
Power User

Registered: 07/24/02
Posts: 83
Loc: Canada
Thanks lol - should have spotted that myself <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Never heard of Neopets.com?
If so then you won't like my site ;P

Top
#228161 - 02/14/03 01:40 PM Re: [6.2] Private Moderation 1.1 [Re: casper_dup1]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
One more question Josh.<br /><br />I added this hack and its working fine but how do I know as admin that a user has posted a new thread which needs to be approved?<br /><br />In the adminmenu I see it only If I choose - APPROVE POSTS and then the right forum. But how to know?<br /><br />Kind regards...
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#228162 - 02/14/03 06:27 PM Re: [6.2] Private Moderation 1.1 [Re: edr]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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:<br /><br />(3 N/A) would be 3 non approved posts.<br /><br />Also.... the unapproved posts will have (N/A) in the title.<br /><br />You can also approve them by clicking edit next to the post. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228163 - 02/20/03 08:12 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
dgermann Offline
Enthusiast

Registered: 10/18/00
Posts: 379
Loc: Mishawaka, IN
Josh--<br /><br />Would this work with 5.4.4php?
_________________________
:-Doug.
[]Doug@FootprintsintheWind.com[/]
www.FootprintsintheWind.com

Top
#228164 - 02/20/03 08:30 PM Re: [6.2] Private Moderation 1.1 [Re: SedXX]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Probably not. As it's based on user numbers..... and 5.4.4 was username based.<br /><br />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.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228165 - 02/21/03 10:12 AM Re: [6.2] Private Moderation 1.1 [Re: Daine]
dgermann Offline
Enthusiast

Registered: 10/18/00
Posts: 379
Loc: Mishawaka, IN
Thanks, Josh!
_________________________
:-Doug.
[]Doug@FootprintsintheWind.com[/]
www.FootprintsintheWind.com

Top
#228166 - 02/22/03 08:52 PM Re: [6.2] Private Moderation 1.1 [Re: SedXX]
Daemon_dup1 Offline
Member

Registered: 02/18/03
Posts: 173
Loc: Clitheroe, Lancs
Hey, Just installed this hack and get the following error when trying to put a user in moderation:<br /><br />Parse error: parse error in /var/www/vodatones.com/html/ubb/admin/moderateuser.php on line 28<br /><br />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?
_________________________
Kind Regards
Dave Askew
www.world-pool.co.uk

Top
#228167 - 02/22/03 08:58 PM Re: [6.2] Private Moderation 1.1 [Re: kkezeor]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Don't know what the DS_Store file is... perhaps it was somethign your systm created when you unzipped?<br /><br />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. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228168 - 02/22/03 09:01 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
Daemon_dup1 Offline
Member

Registered: 02/18/03
Posts: 173
Loc: Clitheroe, Lancs
Great, lol<br />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.<br />Any chance you can have a look? your admin on my board and also have FTP access.<br />I'd appreciate it.
_________________________
Kind Regards
Dave Askew
www.world-pool.co.uk

Top
#228169 - 02/22/03 09:15 PM Re: [6.2] Private Moderation 1.1 [Re: kkezeor]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Reuploaded in text (ASCII) mode and it works fine. Best to use ASCII or TEXT rather than automatic when uploading scripts to prevent corruption. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228170 - 02/22/03 09:17 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
Daemon_dup1 Offline
Member

Registered: 02/18/03
Posts: 173
Loc: Clitheroe, Lancs
Ok thanks very much....I'll send you that cape as soon as paypal do deliveries lol<br /><br />Thats a first though, i've NEVER had to do that before.<br /><br />Cheers m8, once again lightning support <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Kind Regards
Dave Askew
www.world-pool.co.uk

Top
#228171 - 02/22/03 09:20 PM Re: [6.2] Private Moderation 1.1 [Re: kkezeor]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228172 - 02/22/03 09:22 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
Daemon_dup1 Offline
Member

Registered: 02/18/03
Posts: 173
Loc: Clitheroe, Lancs
yea weird ehhh, thanks though <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Kind Regards
Dave Askew
www.world-pool.co.uk

Top
#228173 - 02/25/03 06:20 PM Re: [6.2] Private Moderation 1.3 [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Updated to version 1.3.<br /><br />Version 1.3 adds the functionality to be able to search and find users who are in private moderation. Thanks to Raconteur for this addition. <img src="/forum/images/graemlins/smile.gif" alt="" /> <img src="/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#228174 - 02/25/03 11:57 PM Re: [6.2] Private Moderation 1.1 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
[]Don't know what the DS_Store file is... [/]<br /><br />I get this in every one of your zips Josh. Even the stylesheet zips. I don't get them in anything else though. <img src="/forum/images/graemlins/crazy.gif" alt="" /> I just ignore it. <img src="/forum/images/graemlins/laugh.gif" alt="" /> Everything else has been fine, just an extra little file.
_________________________
[:"red"]Lisa[/]

Top