Announcement

Collapse
No announcement yet.

Question on a template conditional

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

  • Question on a template conditional

    When a user logs out, I want to display a login form so they can log back in with a different username. I cobbled this together after digging through the forums here, but since I won't have time to try putting it into the STANDARD_ERROR template for several days, I thought I would ask if what I have would even work.

    HTML Code:
     <if condition="THIS_PAGE == 'login.php?do=logout'">
      
      login form HTML
      
        </if>
    Thanks!

  • #2
    <if condition="THIS_SCRIPT == login"> stuff here </if>

    Comment


    • #3
      That was quick. Thanks!

      Comment


      • #4
        A little late, but I would like to report that this worked like a charm. I put it in the STANDARD_ERROR template under the $error_message bit, did a copy-paste of the login form that is displayed above, added a custom phrase, and it's gold.

        Comment

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