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.

Changing username color with CSS

View previous topic View next topic Go down

Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 6:23 am

I've checked the previous thread found here, but it didn't work for me.

Here's what I got:
Code:
a[href="/u2"]{
  color: #ffffff !important;
  text-shadow:0px -1px 2px #FFC71F;
  background: url("http://img6.imageshack.us/img6/8437/smallkrom.png") no-repeat;
}

Is there something I'm overlooking?

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 6:55 am

Try this code:

Code:
a[href="/u2"]{
      color: #ffffff !important;
      text-shadow:0px -1px 2px #FFC71F;
      background-image: url('http://img6.imageshack.us/img6/8437/smallkrom.png');
      background-repeat: no-repeat;   
}

Or this one:

Code:
a[href="/u2"]{
          color: #ffffff !important;
          text-shadow:0px -1px 2px #FFC71F;
          background: url("http://img6.imageshack.us/img6/8437/smallkrom.png")
          background-repeat:no-repeat; 
    }

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:11 am

No difference. T-T

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 7:13 am

I edited my post and added another code to try.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:15 am

Still no change, sadly.

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 7:17 am

Try this one, and make sure you are adding the right id number, the /u2 is a member id number.

Code:
    a[href="/u2"]{
    color: #05EB0C !important;
    }

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Calιbuяn on January 31st 2013, 7:19 am

Can you provide a link to your forum?

Calιbuяn
Forumember

Male Posts : 386
Reputation : 38
Language : English
Location : Detroit, MI

http://lazarusexp.forumotion.com/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:26 am

http://sc-fotr.forumotion.com/forum

It's not mine, as in I didn't make it with my Email, but I'm the only other admin and in charge of the CSS stylesheet and other codes and such.

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by Calιbuяn on January 31st 2013, 7:29 am

The picture is showing up for me...

I do not believe the CSS coloring can over-power the usergroup coloring.

Calιbuяn
Forumember

Male Posts : 386
Reputation : 38
Language : English
Location : Detroit, MI

http://lazarusexp.forumotion.com/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:34 am

I was afraid of that.

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 7:38 am

Then go to your usergroups in AP and disable usergroup coloring for the member you are trying to do this for.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:47 am

That's what I was trying to avoid doing so as to not disturb the others in that group.

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by Calιbuяn on January 31st 2013, 7:51 am

Yep. Unfortunately not possible, unless you make another group for the user in question~

Calιbuяn
Forumember

Male Posts : 386
Reputation : 38
Language : English
Location : Detroit, MI

http://lazarusexp.forumotion.com/

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 7:53 am

Yes but the background image coding should work regardless of the usergroups font coloring, so I'm still at a loss as to why the first codes using the background image from imageshack didn't work,

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Calιbuяn on January 31st 2013, 7:54 am

@Runawayhorses;
It did work, but the OP was trying to color this user's name differently from the group they were in. The picture worked from the beginning, I believe, but the color wasn't working because the user in question is in a colored usergroup.

Calιbuяn
Forumember

Male Posts : 386
Reputation : 38
Language : English
Location : Detroit, MI

http://lazarusexp.forumotion.com/

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 7:58 am

Oh I see, he kept saying it wasn't working so I got the notion he meant the whole thing including the background image.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Changing username color with CSS

Post by Kryn Cluskio on January 31st 2013, 7:59 am

No, sorry for the confusion. It's just the color that wasn't working.

Does that mean I mark it solved?

Kryn Cluskio
Forumember

Posts : 28
Reputation : 3
Language : English

Back to top Go down

Re: Changing username color with CSS

Post by runawayhorses on January 31st 2013, 8:18 am

Not necessarily because I know its been done before under the same circumstances as you, it may take some javascript to make it work but its doable. If you keep this topic open maybe someone will tell you how you can do it.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

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