Heliosurge
(Dan DeMontmorency)
July 17, 2024, 2:36pm
3
Hi my topic here might be of help. @Canapin shared code for hiding like button in a category if not part of a group. The Code might be able to be modified to use status of current user and if silenced to hide button.
Hi I have categories that are visible to public but only certain groups are allowed to post/reply.
I am looking for guidance thst if current user is not part of saud groups to hide the Like button in posts. To remove one of the many flaws of reddit.
I am also looking fir code to allow decorating a Topic Author so all of there posts in the topic identify them as Op.
Thanks.
I suppose the easiest way would be using CSS Classes for Current User’s Groups which adds the current user groups to the body classes, then use CSS such as:
body.category-your-category-slug:not(.group-group_name) {
button.like {
display: none;
}
}
Let me know if you have trouble understanding
This could be used as an interm workaround.
2 Likes