Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Pre-screen / moderate users' posts Details »
Pre-screen / moderate users' posts
Mod Version: 1.00, by James Cridland (Member) James Cridland is offline
Developer Last Online: Mar 2003 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 19
Released: 09 Jun 2002 Last Update: Never Downloads: 2
Not Supported  

Based on an original hack by wluke (included in bira's thread here), which...

- Allows you to place a user under moderation, whereby his posts and threads will be queued until an admin/moderator validates them

...this adds...

- Make all new users moderated automatically
- Allow moderators to see all unmoderated posts
- Enhances control panel to give a better view of posts, and give further information about the user

This is great for stopping people who just want to spam or troll, and monitoring what new users write before the rest of the board sees them.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 09 Jun 2002, 17:16
James Cridland James Cridland is offline
 
Join Date: Nov 2001
...the enhanced control panel looks like this:
Reply With Quote
  #3  
Old 09 Jun 2002, 18:43
lordnet's Avatar
lordnet lordnet is offline
 
Join Date: Mar 2002
Real name: Mash
great hack

my best wish...

LORD
Reply With Quote
  #4  
Old 10 Jun 2002, 22:06
James Cridland James Cridland is offline
 
Join Date: Nov 2001
Updated to show the number of replies in the control panel (d'oh, didn't even notice it in the screenshot!)
Reply With Quote
  #5  
Old 11 Jun 2002, 04:53
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
This is a nice hack...
Reply With Quote
  #6  
Old 17 Oct 2002, 04:15
marocnl marocnl is offline
 
Join Date: Oct 2001
only moderate some users, but not mod new users?

Hello,

This is just the hack i was looking for!

But... i don't want new users to be under moderation automaticly.

I only want to put problem-users in de moderation que.

Is that a feature already present in this hack? or do i have to change something to make new users become normally registered?

Thanx in advance

Maroc.NL
Reply With Quote
  #7  
Old 17 Oct 2002, 09:14
James Cridland James Cridland is offline
 
Join Date: Nov 2001
This feature is already present... just ignore the "Make new users moderated automatically" part of the hack.
Reply With Quote
  #8  
Old 17 Oct 2002, 20:00
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Re: only moderate some users, but not mod new users?

Originally posted by marocnl
Hello,

I only want to put problem-users in de moderation que.
hehehe marocnl, i saw your forum and yes...this hack makes sense for you.
Reply With Quote
  #9  
Old 26 Nov 2002, 17:37
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
hi james,
nice hack, which i just wanted to install, however the preview bit for moderators isnt working / it think there is something missing out of your hack-text file, it just stopps abrupt and I cant see where the template is being included.

im sure its just an upload mistake or something. could you have a look and maybe update the file, if I'm right?

thanks tina
Reply With Quote
  #10  
Old 30 Nov 2002, 15:49
James Cridland James Cridland is offline
 
Join Date: Nov 2001
I have updated this file: it did look rather truncated. Not sure why.
Reply With Quote
  #11  
Old 04 Jan 2003, 14:36
Dan_UPC Dan_UPC is offline
 
Join Date: Dec 2002
hi james,

It seems that in your last upload that the initial part of the text file no longer reads as I would expect it should ...

if (!$bbuserinfo['posts'] AND $bbuserinfo[usergroupid]!=13) {
$DB_site->query("UPDATE user SET usergroupid=12 WHERE userid='$u'");
} else {
$DB_site->query("UPDATE user SET usergroupid=2 WHERE userid='$u'");
}
-----

...where XX is the new, Under Moderation, user group you've just made.
As you can see, there is no xx in the code as referred to in you comment...

EDIT: forgot to mention ... my Under Moderation usergroupid = 13 ... how should I edit the above section of code to suit my needs?

Last edited by Dan_UPC; 04 Jan 2003 at 16:14.
Reply With Quote
  #12  
Old 03 Mar 2003, 08:01
James Cridland James Cridland is offline
 
Join Date: Nov 2001
So, I screwed up there.

The correct code should read...
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #13  
Old 03 Mar 2003, 08:05
James Cridland James Cridland is offline
 
Join Date: Nov 2001
...and the missing bit of moderate.php that I missed out is, I think, this...

Search for "makelabelcode" and replace the bits that follow with this...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #14  
Old 03 Mar 2003, 17:51
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
Welcome back James. Nice site btw and thanks for the fix

- miSt
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #15  
Old 07 Mar 2003, 16:42
James Cridland James Cridland is offline
 
Join Date: Nov 2001
This is to add to the text file when I've a moment...

DanFlynnUPC: hey r u there?
cridland james: Hi Dan
DanFlynnUPC: you've left a couple things outta the install instructions still
DanFlynnUPC: i worked them out and fixed them on our forum
cridland james: Oh, I'm sorry...
cridland james: Have you posted what they are?
DanFlynnUPC: nope .... i'll tell you now
DanFlynnUPC: let you do the update
DanFlynnUPC: in moderate.php there is a query just before the labels bit ... you gotta get the number of posts a user has made in that query
DanFlynnUPC: that's the 1st problem
DanFlynnUPC: the other prob is that the way your install instructions are, you will never make use of the postbit_unmod template because the unmoderated posts are never taken from the db
DanFlynnUPC: this is what i changed
DanFlynnUPC: in showthread.php
DanFlynnUPC: find
DanFlynnUPC: $getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");
DanFlynnUPC: and replace it with
DanFlynnUPC: if (ismoderator($thread['forumid'])) {
$ismod=1;
} else {
$ismod=0;
}

if ($ismod)
{
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid'
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");
} else {
$getpostids=$DB_site->query("
SELECT post.postid FROM post
WHERE post.threadid='$threadid' AND post.visible=1
ORDER BY dateline $postorder LIMIT ".($limitlower-1).",$perpage
");
}
DanFlynnUPC: did you get all that?
DanFlynnUPC: r u there?
DanFlynnUPC: and you can then simplify the bit in functions.php
DanFlynnUPC: replace everything between
// do posts from ignored users
AND
// ###################### Start gettextareawidth #######################
WITH
if ($post[visible]<1) {
eval("\$retval = \"".gettemplate("postbit_unmod")."\";");
} else if ($ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit")."\";");
}
return $retval;
}
DanFlynnUPC: works like a charm
cridland james: I've got all that, Dan, thanks
DanFlynnUPC: great thanx .... hopefully it'll help someone
DanFlynnUPC: cause it's a really nice hack ... I also extended it just a tiny bit to moderate attachments made by ppl in that usergroup also
DanFlynnUPC: cause we've had a few ppl posting porn on our forum
cridland james: Good idea
DanFlynnUPC: btw ... it's worth making a note that the moderation usergroup should not be allowed to edit their posts or they can just wait till the post is approved then make it nasty and it wont get caught

Last edited by James Cridland; 07 Mar 2003 at 16:46.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:15.

Layout Options | Width: Wide Color: