Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10569

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.0.10
    • 3.0.11-RC1
    • Styles
    • None

    Description

      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>

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: