Forum Discussion
bhupen
11 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
VarunGrazitti
11 years agoBoss
Where 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