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, 3:46 am

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, 2:37 pm; edited 1 time in total

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
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, 9:31 am

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

SarkZKalie
Forumember

Male Posts : 448
Reputation : 78
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:17 am

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.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
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, 10:38 am

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

SarkZKalie
Forumember

Male Posts : 448
Reputation : 78
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, 1:48 pm

@SarkZKalie,
Its not working too Sad

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
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, 2: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;
}

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, 2: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

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
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, 2: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.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5352
Reputation : 488
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