Announcement

Collapse
No announcement yet.

Upgrade gone wrong

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

  • Upgrade gone wrong

    Upgraded to v 3.6.9 today, seemed to go well but then I made the mistake of responding the the "templates updated" messages in the CP.

    What is happening is the if condition="" functions are not working, at all. Example:

    <if condition="$show['member']">
    ....
    <else />
    ....
    </if>

    So what I get is when a member is logged in, there's a "welcome" message and a login box, both. When logged out, neither show.

    Tried reverting, re-configuring the navbar template, nothing appears to be working. Has anyone got any ideas off the top of their head?

    Fortunately it's just the one template so far.

  • #2
    Have you tried a conditional based on usergroups?

    Code:
    <if condition="is_member_of($bbuserinfo, X, Y, Z)">
    That is to show it to certain usergroups.
    Regards,
    Nick

    Comment


    • #3
      Thank you for your reply, no, I haven't. The conditionals are just not working. Example, logged in member gets:

      Code:
      <!-- breadcrumb, login, pm info -->
      <table class="tborder" cellpadding="6" cellspacing="1" border="0" width="95%" align="center">
      <tr>
          <td class="alt1" width="100%">
              
          </td>    
              <td style="border: 1px solid #6F420D;" valign="top" nowrap>
              <div class="smallfont">
                  <strong>Welcome, (username).</strong><br>
                  You last visited: Today at <span class="time">05:08 PM</span>
                  <br><a href="private.php">Private Messages</a>: Unread 0, Total 27.
                  
              </div>
              </td>
              
          <else />
              
              <td class="alt2" nowrap style="padding:0px">
                  
              <!-- login form -->
              <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
      (login form here)
              </form>
      
              <!-- / login form -->
              </td>
      </tr>
      </table>
      <!-- / breadcrumb, login, pm info -->
      Note the hanging "<else />".

      Re-uploading and re-upgrading all, if that will work. I'm sure I did something wrong.

      Comment


      • #4
        Thanks again Nick, but problem fixed. I first did a re-install, it didn't work.

        Turns out there are three instances in adminfunctions_template.php, it was not finding "<else />". Don't know how it got corrupted, but I opened it, inspected, and re-saved it, all is well. Probably something I did, and I'm sure this is not a bug or error in the release.

        Comment

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