Hiya,
I made this plugin exceptionally quickly in reply to a thread here.
Igor wanted a way to be able to style comments from a certain group differently to everyone elses.
This plugin should hopefully address that need. Whilst it is possible to style the original entry authors comments differently (scroll down to see my method
) this plugin allows you to style all members of a certain group differently.
Usage Instructions :
CSS Code
.group-comment {
text-transform: uppercase;
}
.not-a-group-comment {
text-transform: lowercase;
}
Obviously the CSS can be anything you need and you can use DIVs and anything else that you like in between the conditional shown below to lay out your comments just the way you want them
ExpressionEngine Code - Goes inside {exp:comment:entries} tag pair
{exp:group_comment member_id="{author_id}" group_id="1"}
{if belongs_to_group}
<p class="group-comment">{comment}</p>
{if:else}
<p class="not-a-group-comment">{comment}</p>
{/if}
{/exp:group_comment}
Hope that helps someone somewhere. As mentioned before this was written in about 2 minutes so hopefully should work ![]()
Best wishes,
Mark
