Announcement

Collapse
No announcement yet.

Conditional: show reputation only if > 0

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

  • Conditional: show reputation only if > 0

    After we made some bad experience with enabling reputation we decided that only admins and mods can use the feature and that they're only allowed to give positive reputation.
    Now there is a slight glitch as the grey reputation square is shown for all users if they haven't received any reputation.
    I'd like to achieve that the squares (green then of course) are only displayed for users with a positive reputation.

    I tried the following conditional but it doesn't seem to work:
    <if condition="$user['reputation'] > 0">(all the stuff in postbit regarding reputation)</if>

    Any help?

  • #2
    Code:
    <if condition="$post['reputation'] > 0">

    Comment


    • #3
      PHP Code:
      <if condition="$posneg > 0">
       
      </if> 
      Ops, too late...

      Comment


      • #4
        thx a lot

        Comment

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