Back to vBulletin 4.x Add-ons

moderation queue hack
Mod Version: 1.00, by renlok

vB Version: 4.2.0 Rating: (1 vote - 5.00 average) Installs: 15
Released: 23 Jul 2010 Last Update: Never Downloads: 0
Not Supported Code Changes  

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
PHP Code:
$visiblethreads " AND visible = 1 "
and replace with
PHP Code:
$visiblethreads " AND (visible = 1 OR (visible = 0 AND postuserid = " $vbulletin->userinfo['userid'] . ")) "
in showthread.php find
PHP Code:
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts'))
    OR (
$thread['isdeleted'] AND !can_moderate($thread['forumid']))) 
and replace with
PHP Code:
if (($thread['isdeleted'] AND !can_moderate($thread['forumid']))) 
in editpost.php find
PHP Code:
if (!$postinfo['postid'] OR $postinfo['isdeleted'] OR (!$postinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) 
and replace with
PHP Code:
if (!$postinfo['postid'] OR $postinfo['isdeleted']) 
then find
PHP Code:
if (!$threadinfo['threadid'] OR $threadinfo['isdeleted'] OR (!$threadinfo['visible'] AND !can_moderate($threadinfo['forumid'], 'canmoderateposts'))) 
and replace with
PHP Code:
if (!$threadinfo['threadid'] OR $threadinfo['isdeleted']) 
and now you have a properly functioning mod queue option

Download

No files for download.

Screenshots

Click image for larger version
Name:	screen2.png
Views:	591
Size:	40.2 KB
ID:	119973  


vblts.ru supports vBulletin®, 2022-2024