PDA

View Full Version : Miscellaneous Hacks - moderation queue hack


renlok
07-22-2010, 10:00 PM
This makes it so when a board requires moderation a user can see their own posts even if they have no been accepted yet.

in forumdisplay.php find
$visiblethreads = " AND visible = 1 ";
and replace with
$visiblethreads = " AND (visible = 1 OR (visible = 0 AND postuserid = " . $vbulletin->userinfo['userid'] . ")) ";

in showthread.php find
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts'))
OR ($thread['isdeleted'] AND !can_moderate($thread['forumid'])))
and replace with
if (($thread['isdeleted'] AND !can_moderate($thread['forumid'])))

in editpost.php find
if (!$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')))
and replace with
if (!$postinfo['postid'] OR $postinfo['isdeleted'])

then find
if (!$threadinfo['threadid'] OR $threadinfo['isdeleted'] OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts')))
and replace with
if (!$threadinfo['threadid'] OR $threadinfo['isdeleted'])

:up: and now you have a properly functioning mod queue option

ellovo
07-22-2010, 11:33 PM
great job bro.

crazyace
07-23-2010, 03:33 AM
Care to release a screenshot as to what this looks like to the mods and admin?

renlok
07-23-2010, 10:01 AM
It doesnt change how it looks for mods & admins it just changes it so users can see their own posts

Skyrider
07-23-2010, 12:48 PM
It doesnt change how it looks for mods & admins it just changes it so users can see their own posts
Screenshots is always handy-dandy.

renlok
07-23-2010, 05:43 PM
Added a screen racken is a user without any moderator permissions but with this he can see/edit his own posts (still in the mod queue)

Hornstar
07-23-2010, 10:29 PM
Care to release a screenshot as to what this looks like to the mods and admin?
Usually when a post is in the moderation que, only staff can see it. Quite often what happens is that person will post it a few times or post it in a different section.

The only thing this modification changes is that not only will the staff still see the post, but so will the user who posted it. Making them believe it was posted okay.

This is how it should be default imo

Thanks for sharing the code.

Greight
07-24-2010, 02:23 AM
Thanks for the handy mod.

This is how it should be default imo
Exactly.

renlok
09-01-2010, 09:54 PM
just updated my forum to 4.0.6 and this hack works fine in that aswell :)
Again just updated to 4.1 still works fine

Breakpoint
12-20-2011, 11:31 PM
This is what VB should do by default

renlok
08-30-2012, 04:17 PM
Finally updated my board to 4.2 mod still works fine, no changes

dougdirac
07-25-2013, 03:53 AM
Am I understanding right that this hack requires editing the php files instead of just template edits?

Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=285655

So the moderated posts have a different background color for mods and admins but look normal for the post author.

renlok
08-30-2013, 06:06 AM
Am I understanding right that this hack requires editing the php files instead of just template edits?

Anyway to use this in conjunction with this hack: https://vborg.vbsupport.ru/showthread.php?t=285655

So the moderated posts have a different background color for mods and admins but look normal for the post author.

theres no reason they wouldn't work together

dougdirac
08-30-2013, 07:18 PM
I'm sure they can work together, but I only want the different color for moderators.

I don't want the moderated posts to look different from normal posts for the people that make them.

dougdirac
08-31-2013, 12:05 AM
Tried this on 4.2.1

Seems to be working with threads but not posts. Any help?

v123shine
11-08-2014, 07:45 PM
Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2

v123shine
11-22-2014, 06:21 PM
Please update this addon for support vb 4.2.2

Thank you

blah100
12-06-2014, 11:24 AM
Doesn't work for vb 4.2

akz645
07-31-2015, 07:38 AM
Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2

Can anybody fix this?

Stratis
07-31-2015, 08:34 AM
Everything work fine. But the editpost.php hack don't work.

It should the user can edit their own thread in moderation queue, but the user can't edit their own thread.
I got this message: could not find phrase 'nopermission'.

Can you fix it, please!

Note: I'm using vb 4.2.2

Can anybody fix this?

Same to me, in vb4.2.0, I will try if I can make this phrase, if some coder can help to this it will be great. Thanks

Stratis
08-13-2015, 06:31 PM
I tried to make this, but no luck, if any help from some coders how to make the phrase
"could not find phrase 'nopermission'"

it would be a great help. Thanks in advanced