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.

Background color and text color by rank

3 posters

Go down

Solved Background color and text color by rank

Post by Ikerepc Fri 23 Aug - 9:54

Hi all

Can I have background color (image) and text in different color than other users?

I think automatic text color, but different than other users automatic (I think normall) color.

Thanks in advice


Last edited by Zyon on Sat 24 Aug - 7:32; edited 1 time in total
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by SLGray Fri 23 Aug - 11:22

Let's make sure we are on the same page.  You want it where your text is automatically a different color then other users.  Also you want a different color background for messages.


Background color and text color by rank Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Background color and text color by rank

Post by Ikerepc Fri 23 Aug - 12:30

Yes.

On this forum staff have some background image. I want color, but on post too, not only on profile details in post. And different automatic color, like you say.

So it is posible, and can you help me?
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by Cassius Dio Sat 24 Aug - 1:01

Hi, bye

First step:
Go to "Administration Panel ~> Users & Groups ~> Ranks ~> Rank Administration" select the rank you want to have different background and text color, complete the field "Rank Title" with this code:
Code:
<span class="admin">Administrator</span>
Step two:
Go to "Administration Panel ~> Module ~> HTML & JAVASCRIPT ~> JavaScript codes management", create a new code and add:
Code:
$(document).ready(function(){
$('.post:has(".admin") .postbody').css('color','#008DFF');
$('.post:has(".admin") .row1, .post:has(".admin") .row2').css('background-color','#333333');
});
Just change #008DFF with the text color and #333333 with the background color. thumleft 

Have a nice day!
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: Background color and text color by rank

Post by Ikerepc Sat 24 Aug - 2:45

Hey,

Font color work grate, but background not. Can you fix that?

Just to say if it can help, my forum version is punBB
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by Cassius Dio Sat 24 Aug - 3:30

Sorry. I thought it's phpBB2. Replace the JavaScript code by:
Code:
$(document).ready(function(){
$('.post:has(".admin") .postbody').css('color','#008DFF');
$('.post:has(".admin") .postmain').css('background-color','#333333');
});
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: Background color and text color by rank

Post by Ikerepc Sat 24 Aug - 3:48

It's work.

Just one more, now just message body have that color. Can you help me that profile in post and message title have that background color too? But if can little lighter. I want to say, I want have different color of profile in post and background of message in post...
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by Cassius Dio Sat 24 Aug - 5:44

Sorry, for profile on PunBB this would not be possible. But for post header, replace the code by:
Code:
$(document).ready(function(){
$('.post:has(".admin") .postbody').css('color','#008DFF');
$('.post:has(".admin") .postmain').css('background-color','#333333');
$('.post:has(".admin") .posthead').css('color','#f4f4f4');
});
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: Background color and text color by rank

Post by Ikerepc Sat 24 Aug - 5:55

Ok, but post header still not working...
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by Cassius Dio Sat 24 Aug - 6:15

Have you changed the colour "#f4f4f4" to another one?
Cassius Dio
Cassius Dio
Forumember

Male Posts : 581
Reputation : 79
Language : Romanian &English
Location : Yellow Submarine

http://beatles.forummo.com/

Back to top Go down

Solved Re: Background color and text color by rank

Post by Ikerepc Sat 24 Aug - 6:51

yes, and nothing

Edit:

I'm need just
Code:
$('.post:has(".admin") .posthead').css('color','#f4f4f4');
in place of 'color' writte 'background-color' lol

Solved
Ikerepc
Ikerepc
Active Poster

Male Posts : 1186
Reputation : 167
Language : Who cares...
Location : Where web help & support is needed

http://admins.forumotion.com

Back to top Go down

Solved Re: Background color and text color by rank

Post by SLGray Sat 24 Aug - 9:48

Topic Solved & Locked


Background color and text color by rank Slgray10

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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