15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

How to get rid of pending message in the premoderation plugin?

Author Groucho
#1 | Posted: 9 Oct 2009 06:19 
Hi there,

I have a problem with the installation of the premoderation plugin, especially with the "posts not visible hack".

The plugin runs, ie if a not registered user posts a message, it will not be displayed in the board, but there appears a text, that tells other users that there is a message waiting to be checked.

To solve this problem, there is a "posts not visible hack". As fas as I understand, I have to add the following code to the parseMessage - function in the "bb_plugins.php"-file.

The code is:
/* Premoderation hack - do not display pending messages at all */
if($GLOBALS['action']=='vthread' and isset($GLOBALS['preModerationType']) and $GLOBALS['preModerationType']>0){
if($GLOBALS['posterText']==$GLOBALS['l_postQueued']) $GLOBALS['tpl']=''; else $GLOBALS['tpl']=makeUp('main_posts_cell');
/* --Premoderation hack */

I have tried to copy that to this function at several differnt positions, but I can't get rid of the "pending"-message.

Could anybody please help me to get this plugin running?

Thanks in advance,

Author Paul
Lead Developer
#2 | Posted: 9 Oct 2009 06:53 | Edited by: Paul 
First of all, make sure you're running the latest version of miniBB.

Second, we provide free installation/fix of this add-on, if you provide us temporary FTP access to your files and URL to your forums. Contact us privately.

I've checked on my side, and this code purely works.

Don't forget that for new topics there is a different code. If new topic is pending approval, you shall use the code for parseTopic function to not display it in the list.

And... from my experience I know it's often confusing for users to not see what they have been just posted. It leads them to re-post their message many times until they understand it won't be displayed until approved ;-)

Specific miniBB Support Forums / Specific / How to get rid of pending message in the premoderation plugin? Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Check out the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB