Announcement

Collapse
No announcement yet.

Another multiple user ranks with images question

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

  • Another multiple user ranks with images question

    I did some searching and I fear there is not an easy answer to this.. but here it goes...

    I need to have multiple display groups for users that have donated to a couple different causes.

    So far, I've been able to do one.

    I have a moderator who has donated to the site.

    So his setup up is:
    primary group - moderator
    display group - donator (image)

    What I need is:

    primary group - moderator
    display group1 - donator1 (image1)
    display group2 - donator2 (image2)

    because he also donated to something else.


    And so I need something like this in postbit_legacy:


    Code:
     
    <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
      
    <if condition="$post['rank2']"><div class="smallfont">$post[rank2]</div></if>
    Has anyone pulled this off? Jake? Anybody?

    Thanks in advance...

  • #2
    Only one rank can display at a time. For your needs, you need to avoid ranks and use more forward code in the postbit:

    Code:
    <if condition="is_member_of($post, X)">
    	THIS CODE WILL SHOW IF THE POSTER IS A MEMBER OF GROUP X
    </if>
    Where X is the usergroupid of a group. Duplicate this code for other groups.

    Comment


    • #3
      Wow that's easy enough!
      BEAUTIFUL! Thanks a lot Jake!

      Comment

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