Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Abilities for new roles not appearing

edited February 2009 in Vanilla 1.0 Help
Hiya,

I really hope there isnt another topic for this problem because if there is I've looked everywhere and I can't find it. :D So I aplologise if I'm posting something which already exists.

I am new here, and trying to set up this fantastic open-source forum for www.dynamitefantastix.com (no it has nothing to do with explosives... in fact it has little to do with anything xD). I'm reasonably experienced with PHP and so far have overcome most of the problems & errors that I've been faced with. But I've been trying to figure out this one for days with no luck.

First, background information: I've got the website on my own linux server along with lampp (or "xampp for linux"). Plenty of extensions as well as some modified bits. I won't list them all but if you think a certain one might be causing the problem just metion it and I'll tell you whether I've got it. As you might notice, I've currently got "Mary" guarding the iron gates with a tridant poking anyone who gets too close so I'm afraid I can't really demo the problem.

The actual point is here: I'm trying to create a 'moderator' role. I've created the role okay, and moved it so that it's just above the admin in the list, but it only gives me five abilities to choose from. My other roles (the default ones) have way more than that. Also, the database organises the Role table in a way I don't understand, so therefore I don't want to go changing anything in there.

I wouldn't be surprised if the answer was obvious and I'm just being dumb but I wouldn't be here if I hadn't tried. xD

Sorry fo going on. Any help would be appreciated. Thanks!

Comments

  • I'm not sure what lists you're talking about. Do you mean you moved Moderator above Admin in the Role Priority list? And are the 'abilities' you're referring to Role Permissions?
  • Yep.

    Basically, in settings, under Roles and Permissions, I have five roles in the following order: Unauthenticated, banned, Member, Moderator, and then Administrator (from top to bottom). I don't entirely understand whether or not this hierarchy makes a difference.

    ...and then, when I click 'edit' for the Moderator role, it's only giving me the following five abilities (or permissions) to choose from. These are, "Auto-hide all comments and discussions", "Moderate auto-hidden comments and discussions", "Can sign-in", "HTML & images allowed" and "Notify by email of new applicants". But I want to give moderators other permissions such as "Delete Discussions" and "Sink Discussions"... but I can't figure out why they're not showing up.

    Here's a screen of ALL the permissions I see:
    image

    Does this makes sense?
  • Rearranging roles in the priority listing will have no effect whatsoever unless you install the Role List Fix extension. As for your permission problem, I'm also perplexed as I cannot reproduce the effect. Hopefully someone else can shed some light on the situation.
  • It's really strange. Thanks for taking a look though! :D
  • I think you might find (though maybe not) that you only have the permission to give new roles the ability your role has. I seem to remember something when i was messing around with the roles on this forum a while ago that I couldn't give a new role a power unless [either] i [or] a role above had that power. Cant remember 100% and i'm too drunk to go messing around with the roles on here now but that might point you in the right direction...
  • Thanks :D I checked the Administrator permissions (my own role) but they all seemed to be okay so I don't think it's that. I have, however, gotten round the problem by editing the database directly. I copied the permissions field over from the Administrator role, changed the 1s to 0s where appropriate, and now it's all working as I want it. If I edit the Moderator role, I do now get the full list of permissions. But then pressing save doesn't actually chnage any of them. This isn't a problem for me seeing as I can just change stuff in the database. Of course, the underlying problem (whatever it is) is still there. This is just a workaround. Thanks for everybody's help! :D
  • Yeah, weird, perhaps it's a bug?
  • This one looks like it might be my fault, though I'm having a hard time figuring out why. If you temporarily disable AutoHide while creating the new role, everything will be fine. (All the available permissions will show up afterward, even with AutoHide enabled.)
Sign In or Register to comment.