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.

Automatic change colore font when post

View previous topic View next topic Go down

Automatic change colore font when post

Post by Mario Gotze on 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
Forumember

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

http://www.f-mzaj.com

Back to top Go down

Re: Automatic change colore font when post

Post by Derri on 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


Forum Rules : : Forumotion Staff : : Appeal A Warning : : FAQ : : Tips & Tricks : : Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8355
Reputation : 571
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Re: Automatic change colore font when post

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

Thanks & I'm sorry Smile

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

Re: Automatic change colore font when post

Post by Fierce Star on 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 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):
User and Groups -> Ranks -> Rank administration -> If you have ranks assigned to the users from each group, click the edit button and then put
Code:
<span class="group2">
Before the rank and then
Code:
</span>
after it.
Next, go to Modules -> HTML and Javascript -> Javascript codes management -> Create a new Javascript -> add after the code I just gave you
Code:
$(function() {
$('.group2').closest('.post').addClass('group2style');
});
press submit
Then go to Display -> Pictures and Colors -> Colors -> CSS Stylesheet -> Paste this code
Code:
.group2style .postbody div {
 color:#GROUP COLOR;
}
(This code was designed for phpBB2 forums, assuming this is your forum version since your profile says it is)

Fierce Star
Forumember

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

http://inactivesite.onlyhelpwithothersnow.com

Back to top Go down

Re: Automatic change colore font when post

Post by Mario Gotze on 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
Forumember

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

http://www.f-mzaj.com

Back to top Go down

Re: Automatic change colore font when post

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

any way ?

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

View previous topic View next topic Back to top


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