![]() |
Users can see own moderated threads prior to approval
1 Attachment(s)
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:
PHP Code:
|
I just installed this and works great until you click on the link to view the thread. Then is shows the default no thread page because of permissions.. If you edit showthread.php the follow will solve that:
Find: Code:
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts')) Code:
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts') AND ($thread['postuserid'] != $vbulletin->userinfo['userid'] OR !$vbulletin->userinfo['userid'])) Code:
AND post.visible = 1 Code:
AND (post.visible = 1 OR (post.visible = 0 AND post.userid = " . intval($vbulletin->userinfo['userid']) . ")) |
Interesting Code, and the Detail for the Thread View. :up:
Is it Possible to Apply it Also to the Posts (Postbit) so that the User can See His/Her Own Posts Prior to Approval? (Not only New Threads but Also New Posts?) :confused: Something Like: Users can see own moderated posts prior to approval. ;) My Best Regards and Thank You For Sharing this Code and the Additional Code Edit. :up: :) |
See post #2, I guess. I didn't originally intend to extend this feature to posts, but now that I think about it, there's really no reason not to.
|
I'd like to add one thing to the code for the posts: if you want guests to never be able to see moderated content, change
PHP Code:
PHP Code:
|
Quote:
|
Quote:
Quote:
My Best Regards To Both Of You MoMan and PhilG . ;) :) |
Both Codes Work Fine, but there is a Bug with the Pagenavs. The Pagenav generator isn't taking in Consideration the New Displayed Threads and Posts and the Threads and Posts on the Last Page are Lost, the Link to the Last Page isn't Displayed and there is Not Access to It Not Even by Writing the Number of the Page, it Goes to the Last One Showed but the Last Threads and Posts on that Last Page are Not Accesible. :confused:
What Additional Code Should be Edited for the Pagenavs on forumdisplay and on showthread to Consider the Moderated Threads and Posts of the User and to Access the Last Page (or Pages if there are Many Threads of Posts Moderated)? :confused: I Also Noticed on the forumdisplay that for Moderated Posts the threadbit Don't Display the Last Message if is a Moderated One. What Additional Code Should be Edited for them to Display? :confused: I Also Noticed that on the search Page the Moderated Threads and Posts are Not Displayed. What Additional Code Should be Edited for them to Display? :confused: My Best Regards. ;) :) |
thanks a lot
|
Will this work on 4.x?
|
<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 ?
|
thank you ,it's great
|
Anyone know how to make this running on VB 3.8.4?
Need to make the posts and threads visible to moderated users. Code:
if (!can_moderate($forumid, 'canmoderateposts')) Code:
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts')) |
There a way this code can be converted to vBulletin 4? I tried it myself, but I keep getting a blank page. The code:
Code:
if (!can_moderate($forumid, 'canmoderateposts')) Code:
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canseedelnotice'])) |
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, :-)
|
Works great on 4.2.2! Thank you.
|
Is there any way to make this mod a product?
|
1 Attachment(s)
Quote:
You will have to enable the product in its settings. |
Quote:
|
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. |
Quote:
|
1 Attachment(s)
I fixed the error preventing the db query from working, and have attached the updated product.
Allowing users to reply to their own moderated threads isn't something this was ever intended to do, and so I will have to figure out how to make that happen. Once I have, I will post. :) |
1 Attachment(s)
Okay, this updated version will allow users to reply to their own moderated threads, and to edit their own moderated posts. :)
|
Quote:
It is working on 4.2.3 Because I have AJAX function turned on the new post appers only after full page refresh, before that user still sees "Your post will not be visible until a moderator has approved it for posting" message. Other then that the hack works great. Thanks again. |
On my dev site, I also have the "Quick Reply" enabled, and the new post shows up immediately. This is when a thread has been put into the moderation queue by a mod/admin. How are threads/posts being put into the moderation queue on your site?
Perhaps if I know this, I can duplicate the conditions you have and fix this remaining issue. :) |
Quote:
The reason I ask is that I do get the behavior you describe with that product (which is by design), and what I can do is incorporate this feature (allowing users to see/edit their own moderated posts) into the automated post reporter, and then if you elect to allow users to see/edit their own moderated posts, I can turn off the error message. The automated post reporter product is in need of an overhaul as it was the first product I wrote, and so look for an upgrade including this feature at some point (I don't want to give any kind of timeline at this point). :) |
I have special user group with settings "Follow Forum Moderation Rules If no, posts are always placed into moderation queue" set to no. For my testing I used an account of this type.
|
Quote:
I'd gladly switch to your post reporter product when you update it to work with allowing users to see and edit their own moderated posts/threads without getting that annoying popup about needing a moderator approval first. To me it just seems better for members not to see that popup since it only annoys them. It's better that when they post something that is moderated that the post/thread appears and is editable as if nothing is wrong. While in the background moderators efficiently approve the post/threads without the user being none the wiser that it was moderated to begin with. It'll also cut down on members making duplicate posts/threads to bypass the moderation. |
Quote:
Is there possible Mark, that they can see attached images they upload? Now attached images dos not show up. I do not have in settings moderate attachments. I realized this because 4-5 members try to upload image again and again as they do not see the image, it shows with the X. After approve is ok. As admins - Mods we can see the image. Thank you very much |
I used this hack in the past by modifying the files as per the O/P and 2nd Post. On my new forum (4.2.5) I tried doing it using the XML product, and that's doesn't seem to work.
I'll uninstall the product and try the manual modification again. |
Ok, in testing the product further, it seems moderated users can see their own posts, but not threads they started.
So it works for posts, but not for threads. Any suggestions on how to fix this in the product? It would be nice to keep it as a product rather than having to edit the source files directly as before... |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Yes, I know exactly what you mean...they post over and over and finally give up and usually don't return.
I'll check this out ASAP and post back. :) |
Quote:
|
Quote:
I'll try the direct file modification again and see if that works. |
Quote:
|
Quote:
I changed: Code:
if ((!$thread['visible'] AND !can_moderate($thread['forumid'], 'canmoderateposts')) Code:
if (($thread['isdeleted'] AND !can_moderate($thread['forumid']))) I have no idea if I've broken something else by doing it this way, but at least it works now... |
All times are GMT. The time now is 07:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|