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

    icon before username for staff only

    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved icon before username for staff only

    Post by faisii_x March 21st 2016, 8:43 pm

    Technical Details


    Forum version : #phpBB3
    Position : Administrator
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : http://avacs.zforum.biz

    Description of problem

    i wana add icon before user name but just for specific groups like Admin, co admin, super moderator etc i follow this thread https://help.forumotion.com/t131443-customize-usernames-according-to-group#881088 but its not working..
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 21st 2016, 8:47 pm

    Take this code:
    Code:
    a span[style="color:#COLOR OF GROUP"] strong {
        background:url(http://2img.net/i/fa/empty.gif) no-repeat;
        padding-left:16px;
    }
    And replace the "COLOR OF GROUP" with the exact hex color of the usergroup you want the icon added to. For example, if your administrator group was the color
    Code:
    #FF0000
    , then you would put that in the place of "COLOR OF GROUP".

    Take this part of the code:
    Code:
    http://2img.net/i/fa/empty.gif
    and replace it with the image you want.
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 3:00 am

    Forumedic wrote:Take this code:
    Code:
    a span[style="color:#COLOR OF GROUP"] strong {
        background:url(http://2img.net/i/fa/empty.gif) no-repeat;
        padding-left:16px;
    }
    And replace the "COLOR OF GROUP" with the exact hex color of the usergroup you want the icon added to. For example, if your administrator group was the color
    Code:
    #FF0000
    , then you would put that in the place of "COLOR OF GROUP".

    Take this part of the code:
    Code:
    http://2img.net/i/fa/empty.gif
    and replace it with the image you want.

    not working

    Royal Bengal wrote:Hello,

    You can follow this tutorial too https://help.forumotion.com/t90311-how-to-add-an-icon-before-username
    i don't wana open css style sheet for every new, i do want it for whole group and in this thread showing i must go to css page and code for every new member if i want to add icon before name of him/her
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 3:31 am

    @faisii_x please send what you put in the CSS. The code works, so there must be an issue on your end.
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 4:33 am

    Forumedic wrote:@faisii_x please send what you put in the CSS. The code works, so there must be an issue on your end.
    icon before username for staff only Screen12
    see @Forumedic
    Code:
    span[style="color:#ff0000"] strong {
        background:url(http://i84.servimg.com/u/f84/19/44/16/59/couron10.png) no-repeat;
        padding-left: 14px;
    }
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 4:46 am

    Royal Bengal wrote:Try to paste code in the bottom. It should works Smile
    loul not working Think
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 4:52 am

    Royal Bengal wrote:I think problem in whole css. Copy whole code and paste here. Coding master @Ange Tuteur can help!
    i don't think problem in whole css
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 4:55 am

    What hex color is your administrator group? Also what browser are you using?
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 5:22 am

    icon before username for staff only Screen12
    see @Forumedic using chrome
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 6:12 am

    Everyone who wants to tag Ange Tuteur need to understand that that usernames that have spaces you have to place the username in quotes.

    Code:
    @"Ange Tuteur"
    @Ange Tuteur



    icon before username for staff only Slgray10

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


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 6:14 am

    Code:
    span[style="color:#ff0000"] strong {
     Â           background:url('http://i84.servimg.com/u/f84/19/44/16/59/couron10.png') no-repeat !important;
     Â           padding-left: 14px !important;
     Â       }



    icon before username for staff only Slgray10

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


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 6:47 am

    SLGray wrote:
    Code:
    span[style="color:#ff0000"] strong {
     Â           background:url('http://i84.servimg.com/u/f84/19/44/16/59/couron10.png') no-repeat !important;
     Â           padding-left: 14px !important;
     Â       }

    not working
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 7:46 pm

    Did you add it to the top of the stylesheet?



    icon before username for staff only Slgray10

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


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 7:55 pm

    @sLGray first i tried at top but its not work then at the end but still having problem code doesn't worked at all
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 7:59 pm

    Is your forum version #phpBB2 ?



    icon before username for staff only Slgray10

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


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 8:07 pm

    i think its phpbb3 you can check http://avacs.zforum.biz
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 8:08 pm

    Please changed it in your profile, because it shows #phpBB2 .



    icon before username for staff only Slgray10

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


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 8:51 pm

    Send me a test account with administration rights in PM please.
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 9:08 pm

    Code:
    a span[style="color:#COLOR OF GROUP"] strong {
        background:url(http://2img.net/i/fa/empty.gif) no-repeat;
        padding-left:16px;
    }

    The code above works, there is something on your forum preventing it from working.
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 9:10 pm

    Like what how it can be solve ?
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 9:11 pm

    faisii_x wrote:Like what how it can be solve ?
    I'm trying to find out but I don't know.
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 9:13 pm

    Please try to find out and fix it
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 9:14 pm

    Okay I fixed your issue. I have no idea but there was something wrong with the color
    Code:
    #FF0000
    , I changed it very very slightly where you cannot even tell the difference and it is working now!
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 9:19 pm

    oh thanks finally, please add space between icon and username its very closed to each other that's looking not good thanks
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 9:20 pm

    faisii_x wrote:oh thanks finally, please add space between icon and username its very closed to each other that's looking not good thanks
    Will do but you will need to change the icon regardless I believe as it is made by Forumotion and copyright.
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 9:21 pm

    ok sure..! i will change icon
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    Solved Re: icon before username for staff only

    Post by Take Notes March 22nd 2016, 9:26 pm

    faisii_x wrote:ok sure..! i will change icon
    Alright, is the space difference alright?
    faisii_x
    faisii_x
    Forumember


    Male Posts : 105
    Reputation : 3
    Language : English Urdu

    Solved Re: icon before username for staff only

    Post by faisii_x March 22nd 2016, 9:32 pm

    i will change the icon thanks for helping bro problem solved..
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: icon before username for staff only

    Post by SLGray March 22nd 2016, 9:39 pm

    Topic solved and archived



    icon before username for staff only Slgray10

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

      Current date/time is September 23rd 2024, 8:29 am