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.
The forum of the forums
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 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:
    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 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
    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 August 10th 2014, 2:38 am

    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 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)
    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 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

    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 ?

      Current date/time is November 11th 2024, 9:40 pm