Announcement

Collapse
No announcement yet.

Image in postbit for only 1 usergroup

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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, X)">
    <img src="foo.gif" />
    </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


    • #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


      • #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...
        X