The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I add a symbol before username?

View previous topic View next topic Go down

Solved How can I add a symbol before username?

Post by Van-Helsing on October 18th 2015, 12:46 pm

Hello,
How can I add a symbol etc (+,-) before a username in different color via CSS?

Forum Version: PunBB


Last edited by Black-Shadow on October 18th 2015, 11:37 pm; edited 1 time in total
avatar
Van-Helsing
Hyperactive

Male Posts : 2297
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by SarkZKalie on October 18th 2015, 6:31 pm

Try this
Code:
a[href="/u3975"]:before {
    content: "+";
}
avatar
SarkZKalie
Forumember

Male Posts : 573
Reputation : 87
Language : English

http://rotavn.nstars.org/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by Van-Helsing on October 18th 2015, 7:17 pm

Hello @SarkZKalie,
Its not working, I have tried another similar code but its not working too.

Code:

span[style="color:#990012"]:before {
content: "+";
}

Maybe it needs HTML or Javascript.
avatar
Van-Helsing
Hyperactive

Male Posts : 2297
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by SarkZKalie on October 18th 2015, 7:38 pm

What about this? Twisted Evil
Code:
a span[style="color:#990012"]:before {
content: "+";
font-size: 14px;
}
avatar
SarkZKalie
Forumember

Male Posts : 573
Reputation : 87
Language : English

http://rotavn.nstars.org/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by Van-Helsing on October 18th 2015, 10:48 pm

@SarkZKalie,
Its not working too Sad
avatar
Van-Helsing
Hyperactive

Male Posts : 2297
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by SocialAcademy on October 18th 2015, 11:09 pm

try this :

First Go to your Panel -> User & Groups -> Modify a group (select a group which you want to add the symbol -> Group Members Color

Copy the Color of the group then insert

Code:
span[style="color:#groupcolornumber"]:before {
    color: #000000;
    content: "+";
    font-weight: bold;
}
avatar
SocialAcademy
Forumember

Male Posts : 141
Reputation : 10
Language : JavaScript, CSS, Html, JQuery, C#, C++, Php, Python
Location : Forumotion

http://www.socialacademy.biz

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by Van-Helsing on October 18th 2015, 11:20 pm

Hello @SocialAcademy,
Ok I have update the code and placed the following CSS code

Code:

span[style="color:#990012"]:before {
    color: #FF0000;
    content: "+";
    font-weight: bold;
}

but its not working.
I have copied the color code from usergroup and paste it into span[style]

Ok I moved the CSS in a different place on stylesheet and now its working.

Thank you very much. The problem has been solved now.
cheers
avatar
Van-Helsing
Hyperactive

Male Posts : 2297
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add a symbol before username?

Post by brandon_g on October 18th 2015, 11:54 pm

Thanks for the help Social Academy and SarkZKalie Very Happy.


Topic solved and archived ~ brandon_g


Remember to mark your topic when a solution is found.
avatar
brandon_g
Support Moderator
Support Moderator

Male Posts : 5800
Reputation : 538
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum