ranks for secondary groups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mightyjlr
    New Member
    • Oct 2004
    • 18
    • 3.5.x

    ranks for secondary groups

    ok, hopefully I can explain this.

    On my forum, I have the registered users group. Then I have a secondary group called "XFi Members". I would like to display a rank image for all members of this secondary group. So far I cannot get it to work. I have the post count requirement set to 0. If I select registered users in the user rank menu it works, but for all users. Can anyone help?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Ranks only work for primary groups. That's why they aren't working for you.

    You can accomplish the same result by adding some conditional code to the postbit template:

    Code:
    <if condition="is_member_of($post, [color=red]X[/color])">
    	RANK STUFF HERE
    </if>
    Where X is the usergroupid of the secondary usergroup.

    Comment

    • mightyjlr
      New Member
      • Oct 2004
      • 18
      • 3.5.x

      #3
      this is what I put in and I got an error:

      PHP Code:
                      <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                      <if 
      condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                      <if 
      condition="is_member_of($post, Xfi Members)">RANK STUFF HERE</if> 

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        Replace "Xfi Members" with a usergroupid. It should be a number.

        Comment

        • griffin
          Senior Member
          • Dec 2003
          • 118

          #5
          Originally posted by Jake Bunce
          Ranks only work for primary groups. That's why they aren't working for you.

          You can accomplish the same result by adding some conditional code to the postbit template:

          Code:
          <if condition="is_member_of($post, [color=red]X[/color])">
          	RANK STUFF HERE
          </if>
          Where X is the usergroupid of the secondary usergroup.
          Sorry, to be dense, but what would "RANK STUFF HERE" be? More code, the text or image for a specific rank?

          I'm trying to have ranks work with secondary groups instead of primary in general.

          Thank you!

          Comment

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #6
            Originally posted by griffin
            Sorry, to be dense, but what would "RANK STUFF HERE" be? More code, the text or image for a specific rank?
            For example, if you want it to say "Respected Member" under their name, then you would change that to say "Respected Member".

            Comment

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