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.

Automatic change colore font when post

3 posters

Go down

Automatic change colore font when post Empty Automatic change colore font when post

Post by Mario Gotze August 10th 2014, 1:06 am

hi Smile 
i need any code or any way make 
example : Color group to which I belong "green colore" 
I want a way to make me type when any subject to automatic color Green 
& etc. to all membre's 
&
thanks so much  :rose:
Mario Gotze
Mario Gotze
Forumember

Male Posts : 67
Reputation : 2
Language : Eng & Arabic & German & French & Spanish .
Location : MA

http://www.f-mzaj.com

Back to top Go down

Automatic change colore font when post Empty Re: Automatic change colore font when post

Post by Derri August 10th 2014, 1:10 am

Since this is a coding question I'll move this to Scripts and Coding Problems.

Other Problems --> Scripts and Coding Problems
Derri
Derri
Helper
Helper

Male Posts : 8711
Reputation : 638
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Automatic change colore font when post Empty Re: Automatic change colore font when post

Post by Mario Gotze August 10th 2014, 2:38 am

Thanks & I'm sorry Smile
Mario Gotze
Mario Gotze
Forumember

Male Posts : 67
Reputation : 2
Language : Eng & Arabic & German & French & Spanish .
Location : MA

http://www.f-mzaj.com

Back to top Go down

Automatic change colore font when post Empty Re: Automatic change colore font when post

Post by Fierce Star August 10th 2014, 3:27 am

Are you trying to change a member's post color to match their group color? If so, it might take some time depending on how many groups you have. But if that's what your aiming for, start by going to User and Groups -> Ranks -> Rank administration -> If you have ranks assigned to the users from each group, click the edit Automatic change colore font when post Editer button and then put
Code:
<span class="group1">
Before the rank and then
Code:
</span>
after it.
Next, go to Modules -> HTML and Javascript -> Javascript codes management -> Create a new Javascript -> paste this code:
Code:
$(function() {
$('.group1').closest('.post').addClass('group1style');
});
place in all pages.
Then go to Display -> Pictures and Colors -> Colors -> CSS Stylesheet -> Paste this code
Code:
.group1style .postbody div {
 color:#GROUP COLOR;
}
And to do it for all your other groups, repeat the same routine and change all the  "1"s in every bit of the code to 2s, then 3s, and so on until you're done.
(example):
(This code was designed for phpBB2 forums, assuming this is your forum version since your profile says it is)
avatar
Fierce Star
Forumember

Male Posts : 110
Reputation : 17
Language : English
Location : United States

http://inactivesite.onlyhelpwithothersnow.com

Back to top Go down

Automatic change colore font when post Empty Re: Automatic change colore font when post

Post by Mario Gotze August 10th 2014, 5:24 am

thanks , in css i will edit 
Code:
COLOR;
or anything ? + in the group 
i cant edit

in the group i dent understand why auto change name 
Code:
<span class="group1"> Group name </span>

he auto change to :
<span class="group1"> id
!!
Mario Gotze
Mario Gotze
Forumember

Male Posts : 67
Reputation : 2
Language : Eng & Arabic & German & French & Spanish .
Location : MA

http://www.f-mzaj.com

Back to top Go down

Automatic change colore font when post Empty Re: Automatic change colore font when post

Post by Mario Gotze August 22nd 2014, 3:37 pm

any way ?
Mario Gotze
Mario Gotze
Forumember

Male Posts : 67
Reputation : 2
Language : Eng & Arabic & German & French & Spanish .
Location : MA

http://www.f-mzaj.com

Back to top Go down

Back to top

- Similar topics

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