Hi there,
On my forum, I have (of course) several membergroups and I'd like to be able to distinguish them clearly. I am looking for a code that will
change the color of the poster that appears next to the post, based on membergroup. For example, I am an Administrator, and the color of Administrators is gold on my forum, so I would like my name to appear in gold next to my posts.
Now when searching this forum, I found
this topic on changing the background of a post, based on a membergroup. I tried tweaking it so it would not change the background, but the color of the username, but obviously I didn't succeed. (I inserted the code correctly, since it would change the background to gold before trying to tweak it).
Now this is the code I tried (after I tweaked it a bit):
<script>
function xboi209_colormembergroupposts(membergroup,color){$("li.membergroup:contains('"+membergroup+"')").closest(".poster h4 a").css("color",color)}xboi209_colormembergroupposts("Administrator","gold");
</script>Could anybody help me?