MyBB Community Forums

Full Version: Shoutbox opening times
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I find that most of my users will only really use the Shoutbox rather than the forum itself. has anyone ever heard of a plugin that limits when elements are available so for instance the Shoutbox should only be open for use between certain times?

i would remove the Shoutbox totally but i only run a small board for a club that i support and removing the Shoutbox would probably have an even more negative effect?

i did a search but either am not using the correct terminology or it does not exist?

i am currently using MYSHOUTBOX.
Haven't exactly tried this, so use it at your own risk.

In inc/plugins/myshoutbox.php, find:
	// verify if is banned user before checking usergroups
	if (intval($mybb->user['mysb_banned']) == 1) // banned from the shoutbox
		return 2; // 2 means we have been banned
Add after that:
if(intval(date('G')) > 9 && intval(date('G')) < 18) // disable viewing of shoutbox between 9am-6pm
    return false;
Dennis i will give it a try and let you know thanks.
worked perfectly once i remembered it would be server time rather than user time that the command worked on many thanks. just got to work out when the best time is to open and close.

what a wonderful community wish i had tried MYBB earlier.