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.

Custom Tabs show Extension Options for certain extentions.

edited September 2007 in Vanilla 1.0 Help
Hello everyone. I installed my Vanilla forum 1.1.2 yesterday and have been adding on all the extensions I find that look like things I know I'll be using. One of those extensions was the Private Messaging extension. Reading through the discussion about said extension, the point was made that said extension shows Extension Options for a couple of extensions in the Inbox. I researched this further but found no resolution, so I left it be and went on to install other extensions. As I did so I realized that this bug exists not just for the Inbox, but for all my other custom tabs (Members tab from Member List extension, People tab from the Friends extension, and File List tab from the Dojo File List extension) as well. I poked around in the code some, but my expertise is in Access database programming and Javascript (well, as far as Javascript, I understand it enough to be dangerous...) so I wasn't able to really make much sense of it at the time. I'm sure with a few days to go over it I might be able to, but I was wondering if anyone else had noticed this previously and if there was a patch or a codefix I could use to rectify this bug?


  • Options
    Oops... almost forgot... the extensions that are showing on my custom tabs are: Discussion Counters Poll Management
  • Options
    so you're saying that on custom tabs, the extenstion administration options appear in the panel for those 2 extensions?
  • Options
    yes, this happens to me as well.
  • Options
    OK. I DEFINITELY just posted in this discussion. Hmm. Regardless, I'd say that was a fault of the extensions. I'll try and get time to check later.
  • Options
    Here is my forum:

    When you look at any of the custom tabs, you'll see extension options. (You'll need to log in as test/test.)

    I would assume that there is something in those extensions that is conflicting with the extensions that create those new tabs (or with the new tabs module of the core) which allows those options to be displayed, even to regular members. (Let me confirm that, actually... I'll be back in a minute.)
  • Options
    Ok, it doesn't seem to do it unless the member is in the mod group or higher. But it definately does it under admin.
  • Options
    Has there been any new info on this?
  • Options
    If you look at the php script for the Discussion Counters add-on, you will see it it restricted to anyone in the Manager Role. Look at line 96 in the add-on default.php.

    I don't use Poll Management, but I would guess there is also some criteria in there for displaying the information.

    So, I think what you want to do is to add some code to the add-on to exclude it from appearing when someone selects your custom tab regardless of the role they have been assigned to. Is that what you need to do?
  • Options
    edited September 2007
    Jimw, very nice find, although I'm not really sure how to fix it... I'm just about worthless in php. But yes, it should be restricted to all roles on those custom tabs.
This discussion has been closed.