Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Custom Comment CSS Based on User Role
worldtravlr
New
Hello,
I am trying to do something similar to what is described in the post linked below and what is seen when a Vanilla staff person posts in the community forums here.
http://vanillaforums.org/discussion/8474/highlighting-admins-comments
Can anyone let me know how or where I need to look to edit the PHP to add a new class based on user role? Once that is done, I can handle the CSS myself, but need help with the PHP file location and editing. Thanks so much.
Griffin
1
Comments
http://vanillaforums.org/addon/roletitle-plugin , you could always use CSS to hide the title if you don't need it ; but this plugin injects a css class depending on the user role
There was an error rendering this rich post.
Perfect! Thanks so much @Tama!!
If you want to get rid of that markup at its source, you could comment out the first three functions in the plugin (DiscussionController_CommentInfo_Handler(), PostController_CommentInfo_Handler(), and _AttachTitle()).
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
deleted --- I see you guys had an easier solution.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.