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.

Members Name Color

View previous topic View next topic Go down

Solved Members Name Color

Post by ilo on September 26th 2013, 3:10 am

Hey all,
I am having a bit of trouble finding the option to change the color of the Members Name..
I am not sure If I can do this with phpbb3,
Maybe there's an alternative option or I am just not looking at the right place.

Please provide your cognition Smile
Thank you.

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by Ange Tuteur on September 26th 2013, 3:49 am

Hello ilo,

You can modify a users username color by using CSS. Below is a code which will modify the color of u1, or the "founder account" to the color pink.
Code:
.postprofile strong a[href="/u1"], a[href="/u1"]{
  color: #faf;
}
You can modify the color to whatever you wish using hex, name, or rgb values. To make the code modify another user you will just have to modify the user id, 'a[href="/u1"]' to say.. u2 that will then modify the second account on your forum. Please remember that you have to change both selectors for the code to have full effect! Wink

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Members Name Color

Post by ilo on September 26th 2013, 3:27 pm

Hey SethC,
I was kindda hoping to be able and change the members name in general, like.;
when someone registers and becomes a member, their name on profile and posts to be a specific color that I would like to choose.

I thought of another option to just make a special group that would unable the name color option but I would like to all members to have a different color than what it has now.

Thank you for your help, its just that Im not much of a technician, I am not sure what you really meant.
Could you explain that in more details, whats the code for and how can I modify it.
Thank you.

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by Ange Tuteur on September 26th 2013, 4:33 pm

It will be hard without using color, but I will try to break down the code to explain how it works.

Code:
.postprofile strong a[href="/u1"], a[href="/u1"]
The piece of code above in CSS is called a 'selector' its used to stylize specific parts of an HTML document.

.postprofile strong a - This modifies userlinks in the profiles which display in topics.

a[href="/u1"] - This piece here modifies any href attribute with the location /u1...or in this case http://help.forumotion.com/u1

As you should already know each users username is a link, and their link, links to their specific profile page. Each page uses that specific user identity number or "UID". This allows us to modify a specific user, say if we tell our stylesheet to modify a[href="/u257"] userlink to the color orange, any url with /257 will be styled with that color.

For the properties of the code we have:

color - color allows us to style our HTML elements to any color we want. We can specify a color in hex #FF05FF, RGB rgb(255,5,255), and words like 'indigo'. If a style effect doesn't take place we can use !important to give our code more weight and override any basic elements.

Here is an example of a non import statement and, an important one.

This code will make u1's username pink
Code:
.postprofile strong a[href="/u1"], a[href="/u1"]{
  color: #faf;
}
The property in this code is now more important than the previous one, which means u1's username should now be white.
Code:
.postprofile strong a[href="/u1"], a[href="/u1"]{
  color: #fff !important;
}
When you're working with CSS you want to make sure your code is proper here are some examples:

You must separate multiple selectors with a comma..

Lone selector:
Code:
.selector1
Multiple selectors:
Code:
.selector1, selector2, selector3
After your selectors you MUST always use two curly braces to enclose your properties, otherwise you risk breaking your stylesheet. You must also make sure your properties end with semi-colons otherwise the other properties in line will not take effect.

Good:
Code:
.selector1{
property1:value;
property2:value;
}
Bad:
Code:
.selector1{
property1:value
property2:value;
So the basis of what we do with the code is simple:
Code:
.postprofile strong a[href="/u1"], a[href="/u1"]{
  color: #faf;/*Color is Pink, this code also modifies user ones color. You can remove this comment if you want!*/
}
.postprofile strong a[href="/u2"], a[href="/u2"]{
  color: #fff;/*Color is White, this code also modifies user twos color. You can remove this comment if you want!*/
}
As you see above there is two codes. Each code modifies a different user, the first one modifies links with /u1, and the second modifies links with /u2, or User1 and User2 colors. For each user you just modify u1/u2/u3 ect..to a users specific UID, afterwords you look to the color property and change the color to whatever they requested and submit your changes. Wink

Forgive me if this is too long, but I thought I would well inform you on how the code works and some rules of CSS.

If you're not up to using CSS you can always use groups to modify your users colors however, if you have a lot of users both techniques can become tiresome.

Good luck! thumright

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Members Name Color

Post by ilo on September 26th 2013, 7:01 pm

Hey SethC,
Thank you again so much for the deep explanation on the topic.
to be honest I am a bit confused here. Normally I would just try it and experiment with it to see it for myself but I am not sure if its related to what I am asking.

I am hoping for an automatic option for the color of "members name" to be changed automatically.

I remember a long time ago I could change that with phpbb2, I could modify members name color as well like I can do it now with the groups.

If doing this manually about every each new member, I wouldn't bother doing all that just for a name color.

Is there a way to change the "name color" automatically?
Very Happy

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by Ange Tuteur on September 26th 2013, 7:25 pm

The only other way that I know of for colorizing usernames is using the groups system. As for automatically adding users to a group I believe this should work: http://help.forumotion.com/t57913-auto-subscribe-to-groups

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Members Name Color

Post by ilo on September 26th 2013, 7:42 pm

SethC1995 wrote:The only other way that I know of for colorizing usernames is using the groups system. As for automatically adding users to a group I believe this should work: http://help.forumotion.com/t57913-auto-subscribe-to-groups
I guess, for now, that's all I can do than, SethC.

I'll just make a auto-subscribe group as "Member" so everyone who registers  will be on this specific group and from their the name color will be as I desire.

What would have been cool tho is to have the ability to make other groups with auto-subscribe functions based on number of posts.
Somehow like the ranks options.
Thank you.

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by SLGray on September 26th 2013, 7:46 pm

Auto-subscribed groups are based on the number of posts you have.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Members Name Color

Post by ilo on September 26th 2013, 7:56 pm

@SLGray wrote:Auto-subscribed groups are based on the number of posts you have.
Hey SLGray, thanks for your reply..

and oh man so much has changed with the forums Smile
I am not exactly sure what you mean 'based on my posts'

Do you mean that when members reach my posts they will be subscribed to the group?

Because I don't see the modification option as to how I can place the amount of posts that members have to reach in order to be granted with the group membership.

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by SLGray on September 26th 2013, 8:02 pm

When you modify a group or create a new group, there sure be options like:

Autosubscribe:  
Minium Posts:


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Members Name Color

Post by ilo on September 26th 2013, 9:55 pm

Ok will you excuse me,
This is what happens when you wonder and don't give it a try and see the whole deal.


Thank you for your help, this is as good as I thought. It fulfills the need of my desire.


Thank you. 
Peace. 

ilo
Forumember

Male Posts : 190
Reputation : 21
Language : english
Location : Pr

http://alchemists.7forum.net

Back to top Go down

Solved Re: Members Name Color

Post by SLGray on September 27th 2013, 12:05 am

You're welcome.

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35608
Reputation : 2372
Language : English
Location : United States

http://fmthemes.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