The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Chatbox Small Error

2 posters

Go down

0ff - Chatbox Small Error Empty Chatbox Small Error

Post by Ace 1 June 10th 2015, 6:06 pm

Code:
a[href="/u2"] span strong, span[data-user="2"] { font-size:0 }
a[href="/u2"] span strong:after, span[data-user="2"]:after {
  content:'Tyquel Burn';
  font-size: 10px;
  color:#F00;
}

I used this code to change a User's name and font color in all areas of the forum (including the chatbox). However, this User's default color is #0FF

In the chatbox, their name color is #F00 as said in the code. But the colon right next to their name is still #0FF. It looks pretty weird.


The same is for the "@" before this user's name inside the chatbox.
______________________________________________________________________________________

Forum Style: phpbb3
Forum Link: http://genocideclan.forumotion.com/
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

0ff - Chatbox Small Error Empty Re: Chatbox Small Error

Post by Ace 1 June 12th 2015, 12:27 pm

Bumparawr
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

0ff - Chatbox Small Error Empty Re: Chatbox Small Error

Post by Niko June 12th 2015, 12:56 pm

Hello @Ace 1

To change the nicknames just add this css:
Code:
.chatbox-username.chatbox-user-username[data-user="8660"] {
  color: black!important;
}
Idea where 8660 is the ID of your account



For the @ the only solution I found out was for a chatbox with a frame.. because javascript codes are not added in the chatbox. If js codes were, you just had to use a js code + css code for the member Embarassed
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

0ff - Chatbox Small Error Empty Re: Chatbox Small Error

Post by Ace 1 June 12th 2015, 1:22 pm

I already have that code. I wanna change the color of the colon after the user's name when they send a message. And I have some Js codes in the chatbox already I just want some more. Thanks for helping me out though
Ace 1
Ace 1
Helper
Helper

Male Posts : 843
Reputation : 64
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

0ff - Chatbox Small Error Empty Re: Chatbox Small Error

Post by Niko June 14th 2015, 4:06 pm

@Ace 1 before making other useless posts Razz Razz

you mean this right? you want to change the @ and nickname in this area?
0ff - Chatbox Small Error Back10
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Back to top

- Similar topics

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