Automatic change colore font when post Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Automatic change colore font when post

    Mario Gotze
    Mario Gotze
    Forumember


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

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

    Post by Mario Gotze 10/8/2014, 06:06

    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:
    Derri
    Derri
    Helper
    Helper


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

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

    Post by Derri 10/8/2014, 06:10

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

    Other Problems --> Scripts and Coding Problems
    Mario Gotze
    Mario Gotze
    Forumember


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

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

    Post by Mario Gotze 10/8/2014, 07:38

    Thanks & I'm sorry Smile
    avatar
    Fierce Star
    Forumember


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

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

    Post by Fierce Star 10/8/2014, 08:27

    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)
    Mario Gotze
    Mario Gotze
    Forumember


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

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

    Post by Mario Gotze 10/8/2014, 10:24

    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

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

    Post by Mario Gotze 22/8/2014, 20:37

    any way ?