Forum Discussion
18 Replies
- I checked my code here http://community.us.playstation.com/t5/PlayStation-General/bd-p/10031 in firebug, and it worked perfectly, did you add my code as it is or made any changes. It shouldn't be a difficult task any more as you're just left to add the code.
lmk what steps are you following, must be missing something. 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
- 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!
- VarunLuthra11 years agoAdvisorHi @bhupen, such posts are helpful for other developers, please mark the appropriate reply as the solution so other people can get to know which post was the solution. Might help someone in someways.
Good to hear.
Related Content
- 10 months ago
- 11 months ago
- 2 years ago