PDA

View Full Version : HTML Markup Per User / Adding Unique Icon(s) Next To Username


t3h3th32
07-10-2017, 04:03 PM
Hello guys,

I was hoping, I could get some help on this: I'm trying to add an unique icon next to username.

Yes, you can accomplish this with the *Username HTML Markup*, but that can only add 1 icon for 1 entire usergroup.

What if I want multiple icons / user, while most of the users will have an unique set of icons.

Any ideas, where to begin?

Any help much appreciated.

Regards,
~t3h'Pâr4d0x

noypiscripter
07-14-2017, 07:13 PM
Try this:

.username[href^="http://www.yoursite.com/member.php?12345-"]:before {
content: '';
width: 16px;
height: 16px;
display: inline-block;
background: transparent url("/path/to/the/image.png") no-repeat 0 0;
background-size: cover;
margin-right: 5px;
}
Change 12345 to the corresponding userid and of course, the domain name, image dimensions and the background image url.

Note: Do not remove the hyphen after the userid. That ensures 12345 will not match 123456.