OK, I've been playing around with this for a while. A few bugs to be found - I've tested the install of this 3 times now.
Code:
// ###################### Start styles #######################
if ($action=="styles") {
$getforumid=$DB_site->query("SELECT forumid FROM moderator WHERE userid=$bbuserinfo[userid];");
Im quite sure $bbuserinfo[userid]; should not have the ";" at the end.
The security thing is a bit weird too. I'm not sure if the above made a difference. If the user cannot edit the style (i.e. no permission in the control panel) - the list of styles shows they can edit the default style. When you click the link its lets you edit the style associated with the forum you moderate (which is supposed to happen, but only if you have the permission)
I've really busy with RL stuff at the moment, but I'll try and track down where this might be going wrong.
Thanks again,
Martz