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.

icon before username for staff only

3 posters

Go down

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..
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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

http://avacs.zforum.biz

Back to top Go down

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

http://avacs.zforum.biz

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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?
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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 : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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

Back to top Go down

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.
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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 ?
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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!
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

Solved Re: icon before username for staff only

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

ok sure..! i will change icon
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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?
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

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..
faisii_x
faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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