MyBB Community Forums

Full Version: lock forum outsude of the admincp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is that possible to lock a forum without using the admincp?

i dont have access to it now.
Not that I'm aware of.
Carey Wrote:Is that possible to lock a forum without using the admincp?

Yes, you can use PhpMyAdmin to alter the MySQL data for the specified forum. Other than that, there is no way to accomplish it without using the AdminCP.
Actually using MySQL wouldn't work completely either. (Unless your very good at rebuilding cache's in serialized array format)
Tikitiki Wrote:Actually using MySQL wouldn't work completely either. (Unless your very good at rebuilding cache's in serialized array format)

I stand corrected! Wink Thanks Tiki.
Alright. I'll wait till I get home then. thanks
I think you could log in everywhere onto the admin cp...
it says my IP doesn't match the admin session or something like that.
Even if you follow the usual /admin link?
By default the ACP requires your IP to match that of 3 octals to the IP of the adminsession ID your using. In that case it looks like your using a adminsession that's got an IP which doesn't match your to the 3 octal degree and hasn't expired yet. Just relogging in should fix this

// If IP matching is set - check IP address against the session IP
else if(ADMIN_IP_SEGMENTS > 0)
{
	$exploded_ip = explode(".", $ipaddress);
	$exploded_admin_ip = explode(".", $admin_session['ip']);
	$matches = 0;
	$valid_ip = false;
	for($i = 0; $i < ADMIN_IP_SEGMENTS; ++$i)
	{
		if($exploded_ip[$i] == $exploded_admin_ip[$i])
		{
			++$matches;
		}
		if($matches == ADMIN_IP_SEGMENTS)
		{
			$valid_ip = true;
			break;
		}
	}
	// IP doesn't match properly - show message on logon screen
	if(!$valid_ip)
	{
		$lang->invalid_admin = $lang->invalid_admin_ip;
		unset($user);
	}
}
Pages: 1 2