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.

icon before username for staff only

Page 1 of 2 1, 2  Next

View previous topic View next topic Go down

Solved icon before username for staff only

Post by faisii_x on 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 http://help.forumotion.com/t131443-customize-usernames-according-to-group#881088 but its not working..

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 Genesis on March 21st 2016, 8:47 pm

Take this code:
Code:
a span[style="color:#COLOR OF GROUP"] strong {
background:url(http://illiweb.com/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://illiweb.com/fa/empty.gif
and replace it with the image you want.

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

Post by Royal Bengal on March 21st 2016, 9:46 pm


Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: icon before username for staff only

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

@Forumedic wrote:Take this code:
Code:
a span[style="color:#COLOR OF GROUP"] strong {
background:url(http://illiweb.com/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://illiweb.com/fa/empty.gif
and replace it with the image you want.

not working

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
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 Royal Bengal on March 22nd 2016, 3:30 am

Hello,

Try to use this one
Code:

span[style="color:#000000"] strong {
    background:url(http://illiweb.com/fa/empty.gif) no-repeat;
    padding-left: 14px;
}
I modified code provided by @Forumedic


Last edited by Royal Bengal on March 22nd 2016, 3:32 am; edited 1 time in total

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: icon before username for staff only

Post by Genesis on 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.

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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.

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
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 Royal Bengal on March 22nd 2016, 4:40 am

Try to paste code in the bottom. It should works Smile

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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
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 Royal Bengal on March 22nd 2016, 4:49 am

I think problem in whole css. Copy whole code and paste here. Coding master @Ange Tuteur can help!

Royal Bengal
Forumember

Male Posts : 492
Reputation : 4
Language : English
Location : Bangladesh

http://Avacs.sforum.biz

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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
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 Genesis on March 22nd 2016, 4:55 am

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

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

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


see @Forumedic using chrome

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


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: icon before username for staff only

Post by SLGray on 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;
  }


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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
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 on March 22nd 2016, 7:46 pm

Did you add it to the top of the stylesheet?


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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
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 on March 22nd 2016, 7:59 pm

Is your forum version #phpBB2 ?


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: icon before username for staff only

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

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

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 on March 22nd 2016, 8:08 pm

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


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


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: icon before username for staff only

Post by Genesis on March 22nd 2016, 8:51 pm

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

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

Post by Genesis on March 22nd 2016, 9:08 pm

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

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

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

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

Like what how it can be solve ?

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 Genesis on 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.

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

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

Please try to find out and fix it

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 Genesis on 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!

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

Post by faisii_x on 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
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 Genesis on 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.

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

Solved Re: icon before username for staff only

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

ok sure..! i will change icon

faisii_x
Forumember

Male Posts : 105
Reputation : 3
Language : English Urdu

http://avacs.zforum.biz

Back to top Go down

Page 1 of 2 1, 2  Next

View previous topic View next topic Back to top


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