MyBB Community Forums

Full Version: Notifications to moderators about unapproved posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all! 

I have set up a user group that requires a moderator to approve posts, but I cannot figure out how to trigger the moderators to know there's is a pending post that requires their attention. As of now, they either have to stumble upon it in the threads, or actively check their ModCP. Is there a way to set up a notification bar like the PM or Account Activation notification bars pop up at the top of the screen? 

Thanks in advance for any assistance anyone can offer.
This post is originally from 2011 so I did a test run to make sure it works on my own board, this works like a charm and should work as a solution for you here. I do not know why this is not already a core MyBB feature so I will go ahead and add that to the 1.8 Bus & Issues. Until then this should get you by! Smile

https://community.mybb.com/thread-84847-...#pid669564
(2018-10-28, 06:25 PM)isoldehn Wrote: [ -> ]This post is originally from 2011 so I did a test run to make sure it works on my own board, this works like a charm and should work as a solution for you here. I do not know why this is not already a core MyBB feature so I will go ahead and add that to the 1.8 Bus & Issues. Until then this should get you by! Smile

https://community.mybb.com/thread-84847-...#pid669564

Thank you so much for getting back to me! I might need a little hand-holding here if you don't mind. 

It looks like your resolution will be a huge help, but I do have a question about one of the steps. I'm not familiar enough with PHP to know if this can be an issue, but the 2011 version that you linked me to has double quotes and a slash in the line I'm supposed to lookup, and it also has double quotes in the text that I will use to insert into my copy of global.php. 

The 2018 version that I am using has a very similar line to the 2011 version, but it's not an exact match and it uses single quotes instead of double quotes. 

Is it still safe to paste the 2011 version into place in the 2018 version, or does anything need to be modified with respect to the slashes and the double quotes?

2011
eval("\$unreadreports = \"".$templates->get("global_unreadreports")."\";");


2018
eval('$unreadreports = "'.$templates->get('global_unreadreports').'";')
I copied and pasted directly into my own files from the 2011 version and did not have any problems on my test board running 1.8.19 (PHP version 7.1). I do not think it will cause issues but if it does we can revise to sort any out. Smile

Eldenroot linked this: http://doylecc.altervista.org/bb/downloa...d=20&cat=1

If you would like to avoid touching core files you can upload that plugin for now. Ben pushed this issue to GitHub as an enhancement so hopefully this will be core functionality in a future release. Smile
(2018-10-29, 06:27 PM)isoldehn Wrote: [ -> ]I copied and pasted directly into my own files from the 2011 version and did not have any problems on my test board running 1.8.19 (PHP version 7.1). I do not think it will cause issues but if it does we can revise to sort any out. Smile

Eldenroot linked this: http://doylecc.altervista.org/bb/downloa...d=20&cat=1

If you would like to avoid touching core files you can upload that plugin for now. Ben pushed this issue to GitHub as an enhancement so hopefully this will be core functionality in a future release. Smile

Holy smokes! It works! Thank you so much for your help!

For others who are trying to do this, the templates that need to be added should be added to the global templates, not the individual theme's global templates.