Okay - it looks like you did have it set up roght the first time and Ijust missed a small bit of code off my instructions.
Basically I forgot to call a global - how embarrassing
Go to edit your mybb snippet and change the following:
// Required globals to make this work
global $mybb, $db, $cache, $plugins, $displaygroupfields, $grouppermignore, $groupzerogreater, $lang;
to
// Required globals to make this work
global $mybb, $db, $cache, $plugins, $displaygroupfields, $grouppermignore, $groupzerogreater, $lang, $fpermfields;
That should fix your problem, though you may need to log out of your MODx manager to get rid of the error message, which leads on to my next issue below...
I’ve found a solution to my other problem - basically being logged into the MODx Manager whilst viewing a site page using this snippet threw up an error, as the MyBB database prefix was overriding the MODx database prefix. To solve this additional issue,
you must install MODx and MyBB on the same database.
I’ve tried finding a way to select the right database after calling the snippet but it’s just not having it unfortunately. Still, it’s no major problem really.