Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10569

template/ucp_main_front.html does not correctly handle active topic with the name "0"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.11-RC1
    • 3.0.10
    • Styles
    • None

      Just a small fix that has been applied to memberlist_view.html and is still missed in ucp_main_front.html

      Find:
      <td><!-- IF ACTIVE_FORUM --><b><a class="gen" href="

      {U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></b><br /><span class="genmed">[ {ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT} ]</span><!-- ELSE -><span class="gen"></span><!-- ENDIF --></td>

      Replace With:
      <td><!-- IF ACTIVE_FORUM != '' --><b><a class="gen" href="{U_ACTIVE_FORUM}

      ">

      {ACTIVE_FORUM}

      </a></b><br /><span class="genmed">[

      {ACTIVE_FORUM_POSTS}

      /

      {ACTIVE_FORUM_PCT}

      ]</span><!-- ELSE -><span class="gen"></span><!-- ENDIF --></td>

      Find:
      <td><!-- IF ACTIVE_TOPIC --><b><a class="gen" href="

      {U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></b><br /><span class="genmed">[ {ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT} ]</span><!-- ELSE -><span class="gen"></span><!-- ENDIF --></td>

      Replace With:
      <td><!-- IF ACTIVE_TOPIC != '' --><b><a class="gen" href="{U_ACTIVE_TOPIC}

      ">

      {ACTIVE_TOPIC}

      </a></b><br /><span class="genmed">[

      {ACTIVE_TOPIC_POSTS}

      /

      {ACTIVE_TOPIC_PCT}

      ]</span><!-- ELSE -><span class="gen"></span><!-- ENDIF --></td>

            Oleg Oleg [X] (Inactive)
            Mighty Gorgon Luca Libralato [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: