Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

  • luc March 2011

Follow Us


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

lucluc ✭✭
edited March 2011 in Questions
@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

  • 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
    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.