Support » Fixing WordPress » How to display an image or text based on (highest) user role

  • songiuno

    (@songiuno)


    Can anybody point me to a plugin, or code snippet information, to display an image, or text in a text box widget, based on the basis of a member’s highest successive member role? For example, I’m working on a NSFW site which has successive member roles of:

    registered member -> vested member -> adult member -> private member

    What I’m trying to do is create an immediate status icon (a jpg/png image for each of those roles) that would display somewhere on my blog menu or sidebar that tells the logged in member what role he is. Since it is successive with successively more access/features, an adult member will also have vested and registered member access, and a private member would have all role accesses. But in those cases I don’t want 4 icons icon for a private member showing every role he has. I would want the icon displayed that indicates the highest role he has.

    I have looked thru plugins and the forums and haven’t seen anything that quite does this. If anyone has anything helpful, I’d appreciate it!

  • The topic ‘How to display an image or text based on (highest) user role’ is closed to new replies.