John L.
Well-known member
You can make the default color of the Message User Info section green. This can be accomplished easily via the Style Properties.a suggestion from a lot of my members was that unspecified should be a green color
You can make the default color of the Message User Info section green. This can be accomplished easily via the Style Properties.a suggestion from a lot of my members was that unspecified should be a green color
As the image path hasn't changed and only the code has and it was working before.... I do not believe that is the problem.I haven't had any issues, the icons show fine for me. Are they uploaded into the correct directory? Sometimes that does happen .
.male .messageUserBlock h3.userText{background: url(styles/default/xenforo/gender/male.png) 97% center no-repeat;}
.extraUserInfo .male {background: url(styles/default/xenforo/gender/male.png) 97% center no-repeat;}
Could you point me to your site so I could see what it's doing?I want to move the gender icon/image slightly lower from messageUserBlock to the extraUserInfo
From:
Code:.male .messageUserBlock h3.userText{background: url(styles/default/xenforo/gender/male.png) 97% center no-repeat;}
To:
Code:.extraUserInfo .male {background: url(styles/default/xenforo/gender/male.png) 97% center no-repeat;}
.. but this isn't working for me. Could you advise what I should be correctly using? Thanks.
I haven't encountered this issue so there may be something wrong in the replace you're using in TMS. Can you post what you've written in TMS?I tried using this, and works as expected EXCEPT that now the first page of all of my threads doesn't display any messages! As soon as I revert my template with the suggested change, threads return to normal. Please note I'm using TMS - not sure if that makes any difference.
Any ideas?
Thanks Shelley.Nice work John.
Do you have any other customization being done to the message template via TMS? Could be a conflict.Here is the screenshot from the TMS:
I see so you want this to show up in the user info section? Then just make sure that adjust the custom fields to use the image icons as opposed to the CSS I created.
Yes.I see so you want this to show up in the user info section?
Sorry, not following you I have done the template change, added the CSS, uploaded the images .... but I do not see them on my site.Then just make sure that adjust the custom fields to use the image icons as opposed to the CSS I created.
I looked at your site and checked inspecting your element. It's not being added to the site. So I'm not sure where you're adding the CSS code. Also you have a custom style which current styles the ".messageUserBlock h3.userText" element. So this isn't going to work for you.Sorry, not following you I have done the template change, added the CSS, uploaded the images .... but I do not see them on my site.
.pairsInline dd[itemprop=gender]{display:block;width:16px;height:16px;overflow:hidden;text-indent:-9999px;background:url(styles/default/xenforo/gender/male.png) no-repeat;}
Thanks, appreciate that.I looked at your site and checked inspecting your element.
.extraUserInfo.female {background: url("styles/default/xenforo/gender/female.png") right top no-repeat;}
.extraUserInfo.male {background: url("styles/default/xenforo/gender/male.png") right top no-repeat;}
Do you have any other customization being done to the message template via TMS? Could be a conflict.
I'm definitely not having any issues with TMS and this.No, that's the only template modification I've got in that template through TMS.
<div class="messageUserInfo"
<div class="messageUserInfo<xen:if is="{$user.gender} == 'male'"> male<xen:elseif is="{$user.gender} == 'female'" /> female</xen:if>"
We use essential cookies to make this site work, and optional cookies to enhance your experience.