Guest name color

Go down

Solved Guest name color

Post by TamDonCo on January 12th 2018, 3:12 pm

Hi All

How do I change the color name of Guests ?

Thanks


Last edited by TamDonCo on January 15th 2018, 5:32 pm; edited 1 time in total
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by SLGray on January 12th 2018, 6:30 pm

Could you explain further what you want?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43514
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 12th 2018, 6:32 pm

My forum allows guests to post, I would like to color the user name of guests to different color v.s members
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by SLGray on January 12th 2018, 6:40 pm

Please post a link to where guests can post on your forum?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43514
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 12th 2018, 6:44 pm

avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by pedxz on January 12th 2018, 10:09 pm

Hey,
you can use, investment in topics
Code:
$(document).ready(function(){
    $("dd:contains(Guest)").css("color", "#52B3D9");
});

bye
avatar
pedxz
Forumember

Male Posts : 101
Reputation : 20
Language : português

http://ajuda.forumeiros.com/u62843

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 12th 2018, 10:53 pm

@pedxz wrote:Hey,
you can use, investment in topics
Code:
$(document).ready(function(){
    $("dd:contains(Guest)").css("color", "#52B3D9");
});

bye


Thank You very much, that helps too

I would like to color the name but color the word "Guest" beside it , it helps too
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by pedxz on January 12th 2018, 11:00 pm

that? Khách qua đường?

if yes you can use CSS
Code:
div.postprofile strong[style="font-size:1.2em"] {
color: green
}

or

Code:
$(document).ready(function(){
    $("dd:contains(Guest)").css("color", "#52B3D9");
    $("strong:contains(Khách qua đường)").css("color", "green");
});
avatar
pedxz
Forumember

Male Posts : 101
Reputation : 20
Language : português

http://ajuda.forumeiros.com/u62843

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 13th 2018, 12:24 am

@pedxz wrote:that? Khách qua đường?

if yes you can use CSS
Code:
div.postprofile strong[style="font-size:1.2em"] {
color: green
}

or

Code:
$(document).ready(function(){
    $("dd:contains(Guest)").css("color", "#52B3D9");
    $("strong:contains(Khách qua đường)").css("color", "green");
});

THank You , but the name is different because Guest can enter any name they want, not just "Khách qua đường"

but the first one works well .. thanks again
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 13th 2018, 12:35 am

hi pedxy

how about in the sub-forum, can we color green like that



http://nhomcho.forummotion.com/f1-xom-cho
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by pedxz on January 13th 2018, 8:36 am

Good Morning,
yes it does, but unfortunately i do not have much experience with JS, so i will not be able to help you with your request above.

i'm sorry




You just want to change the color of the author/guest at the subforum?
avatar
pedxz
Forumember

Male Posts : 101
Reputation : 20
Language : português

http://ajuda.forumeiros.com/u62843

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 13th 2018, 2:34 pm

@pedxz wrote:Good Morning,
yes it does, but unfortunately i do not have much experience with JS, so i will not be able to help you with your request above.

i'm sorry




You just want to change the color of the author/guest at the subforum?

Yes ... when I know right away which one is member which one is guest

Thank You
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by Luffy on January 13th 2018, 2:57 pm

Hello, try this Javascript instead:

Code:
$(document).ready(function(){
  $('.postprofile:contains(Guest) dl dt strong').css('color','#000');
});
avatar
Luffy
Manager
Manager

Male Posts : 5519
Reputation : 609
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 13th 2018, 3:03 pm

@Luffy wrote:Hello, try this Javascript instead:

Code:
$(document).ready(function(){
  $('.postprofile:contains(Guest) dl dt strong').css('color','#000');
});

Thank You , that may work in the topic but not in sub-forum
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by Luffy on January 13th 2018, 3:07 pm

To make them text change in both topics and sub forum you need to create a new group for guests and have it colorized as you wish. In the sub forums you need to create a list of all the names in order to load their name and change the color which i think it's not such a good idea. So what i'd recommend is creating a new group to suit you as other groups do.
avatar
Luffy
Manager
Manager

Male Posts : 5519
Reputation : 609
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 13th 2018, 3:30 pm

Thank You for your suggestion

I do not know how to create Group for guests . Guests are just people come to the forum without registration
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by Luffy on January 13th 2018, 3:44 pm

There is not an option to add all guests in that group. What you have to do is add each one of them so you avoid future problems.
avatar
Luffy
Manager
Manager

Male Posts : 5519
Reputation : 609
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Guest name color

Post by SLGray on January 13th 2018, 6:34 pm

Try this:  change the JavaScript from in topics to all pages.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43514
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 14th 2018, 1:44 am

Thank You everyone for your help. You are excellent to help me a lot

It works well in sub-forum but does not work in the main page
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by Draxion on January 15th 2018, 9:47 pm

@TamDonCo, I see you marked this topic as "solved"? May I process it as so?


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 2144
Reputation : 273
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Guest name color

Post by TamDonCo on January 15th 2018, 9:53 pm

Yes please
avatar
TamDonCo
Forumember

Posts : 338
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Guest name color

Post by Draxion on January 15th 2018, 11:05 pm

Thank you for the confirmation.
Problem solved & topic archived.
Please read our forum rules: ESF General Rules


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 2144
Reputation : 273
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Back to top


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