Forum Discussion
VarunGrazitti thanks mate for help. I Can see now no icon are visible in front end but the issue is now I can't see the icon on "Administrator" and "Digital platform" role as well. Can you please suggest me the exact steps to put the code on right area to make it working. Please see the above trail I followed to put the code. Some how icon are not showing in front end but I can't see in desired role as well.
Please suggest me the right steps to accomplish it.
Really help is appreciated.
Thnaks
bhupen - Got you, just one change and it will work. No changes in JS are required.
The CSS change you made, remove the display block,
.messageAuthorColumn .UserName.lia-user-name img.lia-user-rank-icon-left {
display: block;
margin-left: -81px !important;
}
Please mark the post Accept as a solution if it answers your question. Kudos for the helpful post are appreciated.
- bhupen11 years agoAdvisor
VarunGrazitti Its hard luck for me. Not workin in jquery do you have any idea how can I do it using FTL.
Following are the jquery code How can I do the same way in FTL:
<script>
$(".thread-list .lia-list-row .messageAuthorColumn").each(function(){
var getRole = $(this).find('.lia-user-rank-icon-left').attr('title');
if(getRole != "DigitalPlatforms" || getRole !="Administrator"){
$(this).find('.lia-user-rank-left-icon').hide();
}
});
</script>Regards
- VarunGrazitti11 years agoBossWhere are you using the JS? I guess the issue is not in the code, either You don't have the Role "DigitalPlatforms" on stage or there are no posts made by these 2 roles on the page where you are checking for the posts. Try changing the name of the getRole variable to the ones which are present on 10031 board. LMK, it should work. I checked your production community, and I see a role "Cannon Fodder", "First Son" etc there, try using these instead of DigitalPlatforms to see if it works.
- bhupen11 years agoAdvisor
@graziti Iam puting the js on "Page Head Content" and also changed the value of getRole as well. its not working for me.
- bhupen11 years agoAdvisor
VarunGrazitti Tyson VarunLuthra
Thank you guyz for help. Some how I manged it and resolved.
Thanks you so much.
Cheers!
- VarunGrazitti11 years agoBoss
Good to hear.
Related Content
- 11 months ago
- 2 years ago
- 2 years ago
- 2 years ago