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.

#chatbox_member

5 posters

Go down

Solved #chatbox_member

Post by Spawn of Chaos May 22nd 2016, 11:00 pm

Technical Details


Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Opera
Who the problem concerns : Yourself
When the problem appeared : Nothing happens ?
Forum link : http://archguardians-rsclan.team-talk.net

Description of problem

So I am trying to edit my chatbox to add icon next to the username. I am using this as a guide: https://help.forumotion.com/t95407-chatbox-rank-icon.

The problem is, I follow the directions and hit save. Go back to review my changes, and nothing changes in the chatbox. #chatbox_member code doesn't work ?


Last edited by Spawn of Chaos on May 23rd 2016, 2:06 pm; edited 1 time in total
Spawn of Chaos
Spawn of Chaos
New Member

Posts : 5
Reputation : 1
Language : English

http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Take Notes May 22nd 2016, 11:42 pm

What is the specific code you added in your CSS?
Take Notes
Take Notes
Helper
Helper

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

Back to top Go down

Solved Re: #chatbox_member

Post by SLGray May 23rd 2016, 1:10 am

Did you modify this part of the code?
Code:
a[href="/u1"]
u1 is the member's ID.  To locate it for a certain member, press the username of that member which will load his/hers profile.  Look at the end of the link in your browser.


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

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

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos May 23rd 2016, 1:10 pm

SLGray wrote:Did you modify this part of the code?
Code:
a[href="/u1"]
u1 is the member's ID.  To locate it for a certain member, press the username of that member which will load his/hers profile.  Look at the end of the link in your browser.

Yes, I did modified that "u#" code to a member's ID.
Spawn of Chaos
Spawn of Chaos
New Member

Posts : 5
Reputation : 1
Language : English

http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Ange Tuteur May 23rd 2016, 1:16 pm

Hey,

Instead of
Code:
a[href="/u1"]
use
Code:
span[data-user="1"]
. The chatbox was updated awhile back and doesn't use anchors for the usernames anymore.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos May 23rd 2016, 1:20 pm

Genesis wrote:What is the specific code you added in your CSS?

/*Chatbox Rank Icon*/
#chatbox_members a[href="/u1"] {
background: url(https://2img.net/h/oi66.tinypic.com/1zq4k0p.jpg) no-repeat;
padding-left: 17px;
}
#chatbox a[href="/u1"] {
background: url(https://2img.net/h/oi66.tinypic.com/1zq4k0p.jpg) no-repeat;
padding-left: 17px;
}


My guess is that the "@" is blocking the code from getting through, or Admin's can't be changed without the Javascript...
Spawn of Chaos
Spawn of Chaos
New Member

Posts : 5
Reputation : 1
Language : English

http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos May 23rd 2016, 1:27 pm

Ange Tuteur wrote:Hey,

Instead of
Code:
a[href="/u1"]
use
Code:
span[data-user="1"]
. The chatbox was updated awhile back and doesn't use anchors for the usernames anymore.

Nothing's changed. :'( Not sure if I am doing something wrong. Specifically following directions.
Spawn of Chaos
Spawn of Chaos
New Member

Posts : 5
Reputation : 1
Language : English

http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Ange Tuteur May 23rd 2016, 1:31 pm

Do it like this :
Code:
/*Chatbox Rank Icon*/
span[data-user="1"] {
  background: url(http://i66.tinypic.com/1zq4k0p.jpg) no-repeat;
  padding-left: 17px;
}

But change the number (1) to the id of the user you want this icon to be applied to.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos May 23rd 2016, 1:38 pm

Does it have to be a regular user? The user I am changing is a moderator.

*UPDATE: No didn't work, just made a new user to test, but nothing. Replace the number with the member's ID.
**UPDATE: Problem solved! Thank you very much, Ange Tuteur!

-SOLUTION: I just placed the code to the very top.
Spawn of Chaos
Spawn of Chaos
New Member

Posts : 5
Reputation : 1
Language : English

http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Ape May 23rd 2016, 3:07 pm

Topic solved and archived


#chatbox_member Left1212#chatbox_member Center11#chatbox_member Right112
#chatbox_member Ape_b110
#chatbox_member Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19109
Reputation : 1991
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


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