Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

In this Discussion

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

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

lucluc ✭✭
edited March 2011 in Vanilla 2.0 - 2.2
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.


  • 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.
  • lucluc ✭✭
    edited March 2011
    @Mark Slight error in the docs
    says you should add admincustom.css, and in the code, it's the other way around.
                if (ArrayHasValue($this->_CssFiles, 'admin.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.