Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Vanilla Statistics load the custom css from theme, creating havoc in dashboard/settings

lucluc ✭✭
edited March 2011 in Vanilla 2.0 - 2.8
@Tim
Hi, AFAICT vanilla statistics is replacing the xIndex function in SettingsController with it's own StatsDashboard function.

I don't really know what are the changes from the legacy function.
It doesn't seem that there is that much, maybe apart from adding your own cssfile.

This is not much, but depending on the theme, it can become almost unreadable.
Once the plugin is disabled, it's fine.
You can try using the "Dark" theme for instance.

Comments

  • Options
    lucluc ✭✭
    Being able to test now that back at home, it's related to using AddCssFile with specifying the file and the path.
    If it's the full path (as originally in your plugin) it doesn't try to add other css that the admin one from the theme.
  • Options
    lucluc ✭✭
    edited March 2011
    @Mark Slight error in the docs
    http://vanillaforums.org/docs/themequickstart
    says you should add admincustom.css, and in the code, it's the other way around.
                if (ArrayHasValue($this->_CssFiles, 'admin.css'))
    $this->AddCssFile('customadmin.css');

    As for the issue above, it seems to have style.css in the css list, hence adding custom.css from the theme too. When it's the full path, it doesn't go into that else statement that tries to find where a css file could be.
Sign In or Register to comment.