MyBB Community Forums

Full Version: Bug with Latest Update
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the latest version of myBB.

in /inc/init.d

If you change the admin dir to a custom location, it does not work.

Example

if(empty($config['admin_dir']))
{
	$config['admin_dir'] = "x13";
}

But if you login as admin on your board and go to index page, and click AdminCP it will still go to

domain/admin/index.php

Also

When you go to domain.com/x13

http://i.imgur.com/pNTwv5V.png

The board still thinks the admin dir is admin instead of x13
Your code doesn't work, the admin directory is never empty.
Quick Question: Why are you changing the admin directory in your /inc/init.d file and not /inc/config.php file?
(2013-10-12, 07:13 AM)StefanT Wrote: [ -> ]Your code doesn't work, the admin directory is never empty.

OP is adapting some MyBB code, a failsafe in case an admin sets $config['admin_dir'] to a blank.

This is not a bug in MyBB, you are editing the wrong file. As Arbaz mentioned, open inc/config.php and set $config['admin_dir'] to x13.