MyBB Community Forums

Full Version: SpiceFuse Shoutbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there a way to block SpiceFuse Shoutbox from member account not activated?
Changing the shoutbox code accordingly should work:

function sb_can_view()
{
	global $mybb;
	
	if ($mybb->usergroup['canview'] == "no" OR ($mybb->settings['sf_sb_guestview'] == "no" &&
 $mybb->user['usergroup'] == 1) || $mybb->user['usergroup']= XY)
    {
		return false;
	} else {
		return true;
	}
}

change 'XY' according the gid of your "member account not activated".
don't get it
Sorry, my mistake. Undecided
I changed the code above.
This is the original one:

function sb_can_view()
{
	global $mybb;
	
	if ($mybb->usergroup['canview'] == 0 OR ($mybb->settings['sf_sb_guestview'] == 0 && $mybb->user['usergroup'] == 1)) {
		return false;
	} else {
		return true;
	}
}

What´s the awaiting activation ID?...someone?
Is it 5?
You can find all group-IDs in your ACP -> Tool & Maintenance -> Cache Manager -> usergroups
Thank you, yes...it´s 5.