Template: pt_issue & pt_issuenotebit_user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mOdEtWo
    Senior Member
    • Dec 2003
    • 334
    • 3.7.x

    Template: pt_issue & pt_issuenotebit_user

    Hello.

    I have a condition in my postbit-template (vB) that gives the posters a .gif title if they are a member of either usergroup 21 or 22. This works like a charm. However, I'm having problems making it behave like it should in Project Tools. Here is the code:

    Code:
    <if condition="is_member_of($post, 21)"><div class="smallfont"><img src="images/forumstaff.gif" alt="Forum Staff" /></div></if>
                <if condition="is_member_of($post, 22)"><div class="smallfont"><img src="images/developer.gif" alt="Developer" /></div></if>
    The .gif refused to show up when adding the code to template pt_issue and pt_issuenotebit_user, but I solved it by changing "$post, xx" to "$issue, xx" like this:

    Code:
    <if condition="is_member_of($issue, 21)"><div class="smallfont"><img src="images/forumstaff.gif" alt="Forum Staff" /></div></if>
                <if condition="is_member_of($issue, 22)"><div class="smallfont"><img src="images/developer.gif" alt="Developer" /></div></if>
    This seems to work for the original issue/post/report in PT, however - it seems to mess up on any comments/posts made to the original post (displays the incorrect gif on members). I think I may have to change "$issue, xx" in pt_issuenotebit_user to something else but I'm not sure to what.

    Any help is much appreciated.
    meow
  • thincom2000
    Senior Member
    • Mar 2007
    • 153

    #2
    I think the var you want to use is either $note or $issuenote, but not $issue since that will reference the first post.
    - the makers of VaultWiki

    Comment

    • mOdEtWo
      Senior Member
      • Dec 2003
      • 334
      • 3.7.x

      #3
      Thanks, that works.
      meow

      Comment

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