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.

#chatbox_member

View previous topic View next topic 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: http://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
avatar
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 Vanityy on May 22nd 2016, 11:42 pm

What is the specific code you added in your CSS?
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

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.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 41098
Reputation : 2803
Language : English
Location : United States

https://fmthemes.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.
avatar
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 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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13177
Reputation : 2882
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

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(http://i66.tinypic.com/1zq4k0p.jpg) no-repeat;
padding-left: 17px;
}
#chatbox a[href="/u1"] {
background: url(http://i66.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...
avatar
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 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.
avatar
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 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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13177
Reputation : 2882
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

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.
avatar
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 on May 23rd 2016, 3:07 pm

Topic solved and archived



avatar
APE
Manager
Manager

Male Posts : 11260
Reputation : 1078
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

View previous topic View next topic Back to top


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