Resource icon

Add user id class to user links 1.0

No permission to download

Arty

Well-known member
Arty submitted a new resource:

Add user id class to user links - Adds user-{id} to user name links

This simple add-on adds .user-{n} class to username links, making it easy to add custom CSS for certain users without adding them to separate user group.

Installation:
  • Upload files from library/ to library/
  • Install add-on
Usage: add something like this to extra.css
Code:
.username.user-1 {
    color: red;
    font-weight: bold;
}
Change 1 to correct user id

Read more about this resource...
 
Did not work, despite the color change

You put the color red color, but the original constant has not changed

09-08-2013-05-12-20-%D9%85-png.53635
 

Attachments

  • 09-08-2013 05-12-20 م.webp
    09-08-2013 05-12-20 م.webp
    6.4 KB · Views: 102
Those links are a bit more complex and require additional rule:
Code:
.username.user-1 .style3 { color: red; }
Change 3 .style3 to id of user group that creates that red color.
 
Maybe you've used wrong group id? Inspect that link in your browser to see correct id.
 
Top Bottom