MyBB Community Forums

Full Version: Adding Suspended Posting Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
If you suspend a members posts they don't know it's suspended and they don't know when it will be lifted. MyBB is already aware of this and hopefully will be fixed in 1.6.5.

But here is dirty fix.

Open ROOT/newreply.php

Find around line 106:

if($forumpermissions['canview'] == 0 || $forumpermissions['canpostreplys'] == 0 || $mybb->user['suspendposting'] == 1)
{

After it add this code.

	//Custom for Suspend time
	if ($mybb->user['suspendposting'] == 1)
	{
			$susdate = my_date($mybb->settings['dateformat'], $mybb->user['suspensiontime']);
			$sustime = my_date($mybb->settings['timeformat'], $mybb->user['suspensiontime']);
			
		error("Your posting privileges are currently suspended until $susdate $sustime.", "Posting Suspended");
	}
	//Custom for Suspend time

Edit the message to serve your needs.
Awesome! Thanks labrocca!
Thankyou, this is a very useful feature Smile
Thank You, I have intergrated this into my forum!
What if they try to make a new thread instead? Will this same message display?
Thank labrocca posts share!
(2011-08-14, 02:11 AM)weBex Wrote: [ -> ]What if they try to make a new thread instead? Will this same message display?

No, this require another editing in newthread.php file.

(2011-08-14, 04:35 AM)Yaldaram Wrote: [ -> ]
(2011-08-14, 02:11 AM)weBex Wrote: [ -> ]What if they try to make a new thread instead? Will this same message display?

No, this require another editing in newthread.php file.

Got it, done.

Thanks.
You always come through Jesse! Thanks for this!
thanks a lot! Toungue
Pages: 1 2