MyBB Hacks

Full Version: User CSS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Simple plugin which sticks a Custom CSS textbox under UserCP -> Options.
Users can enter their own custom CSS there (somewhat as an alternative to the Stylish Firefox extension).

Note that this isn't applied specifically to themes - that is, the CSS stays the same regardless of the theme selected by the user.
Also note that it is possible for users to break the page layout/display for their account by messing up their CSS - a counter-measure to this is supplied however.

A hidden feature not mentioned in the plugin anywhere is the ability to apply specific rules to pages, for example:

Code:
/*@- showthread.php */
background{color:red}
/*@-*/
/*@- forumdisplay.php, index.php */
background{color:yellow}
/*@-*/

Note that these "conditionals" cannot be nested.

Seems interesting, although what kind of forum really need something like this when, for example, Opera allows us to stick our style sheets in any site (or Firefox as you mentioned)?

Will try nonetheless.
If users don't use either of those browsers, want cross browser/computers to use the same style, etc.
Does this has limitation to import CSS?
E.g.:

Code:
@import url("http://example.com/random_css.php");

Biggrin

(04-24-2012 03:22 PM)ZiNgA BuRgA Wrote: [ -> ]Also note that it is possible for users to break the page layout/display for their account by messing up their CSS
Because it is applied for their account only, I don't mind with it Biggrin
(04-25-2012 10:23 PM)adisp007 Wrote: [ -> ]Does this has limitation to import CSS?
I think that should work okay.
(04-26-2012 05:30 AM)RateU Wrote: [ -> ]
(04-24-2012 03:22 PM)ZiNgA BuRgA Wrote: [ -> ]Also note that it is possible for users to break the page layout/display for their account by messing up their CSS
Because it is applied for their account only, I don't mind with it Biggrin

Lol

Maybe the warning text should be like this:
Quote:Custom CSS:
WARNING!
We recommend not editing this unless you know what you're doing.
Save down this link in case you mess up your CSS.
Wink
Fair enough, but I'd remove lines 2 and 4 from the above.
v1.1: Compatibility fix for MyBB 1.8
Is it possible to limit it to certain groups?
Pages: 1 2
Reference URL's