Back to vBulletin 3.8 Add-ons

Users can see own moderated threads prior to approval
Mod Version: 1.00, by MoMan

vB Version: 3.8.7 Rating: (3 votes - 5.00 average) Installs: 20
Released: 27 Jan 2012 Last Update: Never Downloads: 46
Not Supported Code Changes Re-usable Code  

On my forum, to prevent spam, threads from new users are checked for common spam keywords, including links. If any such keywords are found, the thread gets auto-moderated.

In order to prevent double-posting, I decided it was necessary for users to be able to see their own moderated threads in the forum listings before they get approved. Nobody reads the redirection message shown, so I hope that this will be more effective in preventing duplicates.

Moderated threads from unregistered users will not be shown to those users.

Open forumdisplay.php,

Find:
PHP Code:
        if (!($forumperms $vbulletin->bf_ugp_forumpermissions['canseedelnotice']))
        {
            
$visiblethreads " AND visible = 1 ";
        }
        else
        {
            
$visiblethreads " AND visible IN (1,2)";
        } 
Replace with:
PHP Code:
        if ($vbulletin->userinfo['userid'])
        {
            if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canseedelnotice']))
            {
                
$visiblethreads " AND (visible = 1 OR (visible = 0 AND postuserid = " intval($vbulletin->userinfo['userid']) . "))";
            }
            else
            {
                
$visiblethreads " AND (visible IN (1,2) OR (visible = 0 AND postuserid = " intval($vbulletin->userinfo['userid']) . "))";
            }
        }
        else
        {
            if (!(
$forumperms $vbulletin->bf_ugp_forumpermissions['canseedelnotice']))
            {
                
$visiblethreads " AND visible = 1 ";
            }
            else
            {
                
$visiblethreads " AND visible IN (1,2)";
            }
        } 
Note: if you want to allow users to see their own moderated posts as well, see post #2.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024