Version: 1.00, by MoMan
Developer Last Online: Oct 2022
Category: Forum Display Enhancements -
Version: 3.8.7
Rating:
Released: 01-25-2012
Last Update: Never
Installs: 20
Re-useable Code Code Changes
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
<a href="https://vborg.vbsupport.ru/member.php?u=115402" target="_blank">MoMan</a> thank you, may be posible also make it editable for own moderated posts and threads prior to approval ?
O/P and S/P codes both work perfectly as-is in vb4.2.2. I edited the forumdisplay.php and showthread.php files accordingly, and all 3 changes were found and made and tested as-is and works, :-)
Yes, I have attached a product that does the same thing (including post #2)...I haven't tested it, so please let me know if it works for you, and if you would like any added features.
You will have to enable the product in its settings.
Yes, I have attached a product that does the same thing (including post #2)...I haven't tested it, so please let me know if it works for you, and if you would like any added features.
OK, installed the product and tested, the users now able to see their moderated threads, unfortunately the second part is't working and they can not see their moderated posts yet.
Another thing I've discovered, that users are not able to post a reply in their own moderated thread if they decide to add something to it.