User CSS
Author Message
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:
1
2
3
4
5
6
/*@- showthread.php */
background{color:red}
/*@-*/
/*@- forumdisplay.php, index.php */
background{color:yellow}
/*@-*/

Note that these "conditionals" cannot be nested.

(This post was last modified: 11-23-2014 08:19 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: usercss.php (3.1 KB)
Plugin Version: 1.1
Last Updated: 11-23-2014, 08:19 PM

Downloads: 955
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: WTFPLv2
Uploader: ZiNgA BuRgA
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #2
RE: User CSS
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.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 04-25-2012 12:04 PM by Sama34.)
04-25-2012 12:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: User CSS
If users don't use either of those browsers, want cross browser/computers to use the same style, etc.

My Blog
04-25-2012 03:30 PM
Find all posts by this user Quote this message in a reply
adisp007 Offline
Junior Member
**
Posts: 26
Joined: Apr 2012
Post: #4
RE: User CSS
Does this has limitation to import CSS?
E.g.:

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

Biggrin


Best Regards,

Adi Sucipta Pratama
04-25-2012 10:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #5
RE: User CSS
(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-26-2012 05:30 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: User CSS
(04-25-2012 10:23 PM)adisp007 Wrote:  Does this has limitation to import CSS?
I think that should work okay.

My Blog
04-26-2012 07:42 AM
Find all posts by this user Quote this message in a reply
adisp007 Offline
Junior Member
**
Posts: 26
Joined: Apr 2012
Post: #7
RE: User CSS
(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

Best Regards,

Adi Sucipta Pratama
04-26-2012 09:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: User CSS
Fair enough, but I'd remove lines 2 and 4 from the above.

My Blog
04-26-2012 10:22 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #9
RE: User CSS
v1.1: Compatibility fix for MyBB 1.8

My Blog
11-23-2014 08:20 PM
Find all posts by this user Quote this message in a reply
Aiba Offline
Junior Member
**
Posts: 1
Joined: Feb 2016
Post: #10
RE: User CSS
Is it possible to limit it to certain groups?
02-05-2016 09:20 AM
Find all posts by this user Quote this message in a reply


Forum Jump: