#chatbox_member

Go down

Solved #chatbox_member

Post by Spawn of Chaos on 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

View user profile http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Take Notes on 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

View user profile

Back to top Go down

Solved Re: #chatbox_member

Post by SLGray on 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_members - #chatbox_member Slgray10
chatbox_members - #chatbox_member Ssshfm13

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

Male Posts : 47350
Reputation : 3312
Language : English
Location : United States

View user profile https://help.forumotion.com/

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos on 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

View user profile http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Ange Tuteur on 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 : 13225
Reputation : 2963
Language : EN, JA, FR
Location : Macungie, PA

View user profile

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos on 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

View user profile http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos on 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

View user profile http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by Ange Tuteur on 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 : 13225
Reputation : 2963
Language : EN, JA, FR
Location : Macungie, PA

View user profile

Back to top Go down

Solved Re: #chatbox_member

Post by Spawn of Chaos on 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

View user profile http://spawnofchaos-rsclan.forum-invision.co.uk/forum

Back to top Go down

Solved Re: #chatbox_member

Post by APE on May 23rd 2016, 3:07 pm

Topic solved and archived


chatbox_members - #chatbox_member Left1212chatbox_members - #chatbox_member Center11chatbox_members - #chatbox_member Right112
chatbox_members - #chatbox_member Ape_b110
chatbox_members - #chatbox_member Ssshfm13
chatbox_members - #chatbox_member Ape1010
APE
APE
Administrator
Administrator

Male Posts : 15328
Reputation : 1640
Language : fluent in dork / mumbojumbo & English haha

View user profile 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