AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] [CSS] Coloring with group id?

7 Posts
2 Users
3 Reactions
1,624 Views
ZiT3K
Posts: 92
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@zit3k)
Estimable Member
Joined: 4 years ago
[#19574]

Hi!

How can the color of the boxed text be colored with the color of the group in the space shown in the image?

Thank you in advance for your help!

(Right click to open image in new tab.)


6 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

@zit3k,

Try this:

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpf-username {
    border: 2px solid #643c14;
    padding: 2px 10px 2px 10px;
    margin-left: 2px;
}

5 Replies
ZiT3K
(@zit3k)
Joined: 4 years ago

Estimable Member
Posts: 92
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris

Isn't that going to be brown?

I want to achieve that in user groups e.g. the OWNER rank is red, and where I have framed the name, also display the color of the user group.


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@zit3k,

You can change the color,

#643c14 is the color code so, just change it, and you will get what you want.


ZiT3K
(@zit3k)
Joined: 4 years ago

Estimable Member
Posts: 92
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

I want usernames to be automatically colored with the appropriate colors assigned to user groups.

https://kepkuldes.com/image/J81ayq

For example:

#wpforo #wpforo-wrap .wpforo-profile-wrap .wpf-username {
color: #group_id;
}


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
ZiT3K
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@zit3k,

I don't think that you can set User's Username Color at Account page by their Usergroup Color with CSS.


ZiT3K
(@zit3k)
Joined: 4 years ago

Estimable Member
Posts: 92
ZiT3K
ZiT3K
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris

Yes, I guessed, because on the other side, I had to type in the HTML to look at the gruop IDs and assign colors to the IDs in CSS.
But it's not that important right now.
Thanks.


Share: