Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Users can see own moderated threads prior to approval Details »
Users can see own moderated threads prior to approval
Mod Version: 1.00, by MoMan (Coder) MoMan is offline
Developer Last Online: Sep 2017 I like it Show Printable Version Email this Page

vB Version: 3.8.7 Rating: (3 votes - 5.00 average) Installs: 18
Released: 26 Jan 2012 Last Update: Never Downloads: 26
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Note: if you want to allow users to see their own moderated posts as well, see post #2.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 27 Jan 2012, 14:03
PhilG PhilG is offline
 
Join Date: Apr 2003
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Electronic Circuits Forum

Last edited by PhilG; 28 Jan 2012 at 05:20.
Reply With Quote
  #3  
Old 27 Jan 2012, 19:31
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

Interesting Code, and the Detail for the Thread View.

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?)

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.

Reply With Quote
  #4  
Old 28 Jan 2012, 04:34
MoMan MoMan is offline
 
Join Date: Oct 2005
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.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #5  
Old 28 Jan 2012, 04:42
MoMan MoMan is offline
 
Join Date: Oct 2005
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In the first part of the code in post #2.
__________________
Adam

Admin of PentaxForums.com - Big-Board
Reply With Quote
  #6  
Old 28 Jan 2012, 05:21
PhilG PhilG is offline
 
Join Date: Apr 2003
Originally Posted by MoMan View Post
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
I updated the code for post #2
__________________
Electronic Circuits Forum
Reply With Quote
  #7  
Old 28 Jan 2012, 18:00
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Thumbs up

Originally Posted by MoMan View Post
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
... to ...
In the first part of the code in post #2.
Originally Posted by PhilG View Post
I updated the code for post #2
Thank You Very Much, I'll Try It and I'll Tell You How It Works.

My Best Regards To Both Of You MoMan and PhilG .

Reply With Quote
  #8  
Old 28 Jan 2012, 19:55
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Question

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.

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)?

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?

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?

My Best Regards.

Reply With Quote
  #9  
Old 29 Feb 2012, 11:30
bestone96 bestone96 is offline
 
Join Date: Sep 2011
thanks a lot
Reply With Quote
  #10  
Old 22 Apr 2012, 19:15
Meestor_X Meestor_X is offline
 
Join Date: Apr 2006
Will this work on 4.x?
Reply With Quote
  #11  
Old 25 Apr 2012, 11:10
xorex's Avatar
xorex xorex is offline
 
Join Date: Jan 2008
MoMan thank you, may be posible also make it editable for own moderated posts and threads prior to approval ?
__________________
В королевстве слепых и Урод король....
Reply With Quote
  #12  
Old 28 Jun 2012, 11:32
wangyu1314 wangyu1314 is offline
 
Join Date: May 2005
thank you ,it's great
Reply With Quote
  #13  
Old 11 Feb 2013, 09:20
zardos zardos is offline
 
Join Date: Apr 2006
Anyone know how to make this running on VB 3.8.4?
Need to make the posts and threads visible to moderated users.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I only have that part there. Nothing found about post #2 in the forumdisplay.php in 3.8.4 which is why I asked:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #14  
Old 04 Mar 2014, 09:46
Skyrider Skyrider is offline
 
Join Date: Feb 2006
There a way this code can be converted to vBulletin 4? I tried it myself, but I keep getting a blank page. The code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is I believe new in vBulletin 4 just above:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

as I don't think its in vBulletin 3.
Reply With Quote
  #15  
Old 07 Mar 2014, 14:51
Calystos's Avatar
Calystos Calystos is offline
 
Join Date: Apr 2009
Real name: Lucas Black
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, :-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 22:27.

Layout Options | Width: Wide Color: