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

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 Genesis on May 22nd 2016, 11:42 pm

What is the specific code you added in your CSS?

Genesis
Forum Reviewer
Forum Reviewer

Male Posts : 2331
Reputation : 322
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.


SLGray
Administrator
Administrator

Male Posts : 35613
Reputation : 2372
Language : English
Location : United States

http://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.

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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

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

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.

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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

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.

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





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
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