Image in postbit for only 1 usergroup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • konabiker47
    Member
    • Dec 2005
    • 69

    Image in postbit for only 1 usergroup

    I have a usergroup for supporting members and I want to have an image display under his/her avatar that says supporting member.

    Is there a way to do this without modding anything?
    www.ezbst.com - started 12/18/05
  • Colin F
    Senior Member
    • May 2004
    • 17689

    #2
    Yes you can do that.
    Edit your postbit or postbit_legacy template and add the following code wherever you want the image to display:
    Code:
    <if condition="is_member_of($post, [COLOR=Red][B]X[/B][/COLOR])">
    <img src="[B][COLOR=Red]foo.gif[/COLOR][/B]" />
    </if>
    Exchange the X with the usergroupid of the affected usergroup, and the foo.gif with the path to your image file.
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment

    • KingSpade
      Senior Member
      • Aug 2005
      • 538
      • 3.5.x

      #3
      You could also switch out $post for $bbuserinfo, which may make it a bit more understandable if you later decide you need to modify the IF/ELSE statement.

      Comment

      • Colin F
        Senior Member
        • May 2004
        • 17689

        #4
        No, you can't switch $post and $bbuserinfo, as they're not the same value
        $bbuserinfo is the user viewing the page, $post is the data of the user who's post I am viewing.
        Best Regards
        Colin Frei

        Please don't contact me per PM.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...