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.
Okay, this updated version will allow users to reply to their own moderated threads, and to edit their own moderated posts.
Mark I was using this mod a while, but I realized that all users can see moderated threads. It supposed it will allow only the owner of the post-thread.
Maybe some other mod of mine interferer with it.
Mark I was using this mod a while, but I realized that all users can see moderated threads. It supposed it will allow only the owner of the post-thread.
Maybe some other mod of mine interferer with it.
Do you use this mod of yours? Thanks
I don't use this personally...I was just attempting to put forth something to address the reported issues with the published product.
I will have to dig this up soon (currently working on a big project) and look into the issue you've brought up.
Posts:
1) Other users do not see the post (as supposed to be)
2) Owner can see, the moderated icon inside the post, but can not see uploaded attach image (this problem was before to)
3) Post can not be edited, error (Can not find phrase 'no permission')
Threads:
1) Other users do not see the thread (as supposed to be)
2) Owner can see the thread, but can not see the moderated icon inside the thread (I think before this was not problem) he can see the icon only out off thread in the title.
3)Thread can be edited
can not see uploaded attach image (this problem was before to)
* At least to see the moderated icon to know that thread is in moderated condition.
and be able to edit in both conditions or not to let edit in both conditions.
Yes, I see theses issues now as well. I suspect these were issues all along with this product. Unfortunately I just have too many other things I'm working on to address this now. Perhaps someday I can return to this and figure it out.