MyBB Community Forums

Full Version: Activate a plugin manually
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've disabled a plugin on my board which caused all passwords to change. 
https://github.com/tommm/password-hash

I am locked out now and I need to know how I can enable that plugin manually. I cannot reset password either because my mailer is broken.

What do I need to do!?
Try this:

<?php
DEFINE('IN_MYBB', 1);
require 'global.php';
$plugins_cache = $cache->read('plugins');
$plugins_cache['active']['plugin_name'] = 'plugin_name';
$cache->update('plugins', $plugins_cache);

Upload that to your MyBB root, change both instances of plugin_name to the name of the plugin file, and run it, should then activate it.