MyBB Community Forums

Full Version: [F] Just noticed.....
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have just come to notice that if your forum has the horizontal postbit as the default, the users can change it to vertical through the usercp but if your forum has vertical as the default your users cant change it to horizontal....whats up with that. Its not a rant or anything but i just wanted to know why.
It looks like a bug to me... changing this code in /inc/class_session.php fixes the problem.

Find:
if($mybb->user['classicpostbit'])
{
	$mybb->settings['postlayout'] = 'classic';
}
Replace with:
$mybb->settings['postlayout'] = ($mybb->user['classicpostbit']) ? 'classic' : 'horizontal';

That will make the default setting only apply to guests. An alternative fix would be to give each user 3 options: Classic, Horizontal, or Use Default Undecided
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
nice dude Big Grin