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.

Chatbox Small Error

View previous topic View next topic Go down

Chatbox Small Error

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Re: Chatbox Small Error

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

Bumparawr

Ace 1
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Re: Chatbox Small Error

Post by Niko on 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
Hyperactive

Male Posts : 2166
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

Re: Chatbox Small Error

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Re: Chatbox Small Error

Post by Niko on 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?

Niko
Hyperactive

Male Posts : 2166
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

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