PDA

View Full Version : Question on a template conditional



Titus
Wed 14th Jul '04, 7:35pm
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.


<if condition="THIS_PAGE == 'login.php?do=logout'">

login form HTML

</if>

Thanks!

Zachery
Wed 14th Jul '04, 7:38pm
<if condition="THIS_SCRIPT == login"> stuff here </if>

Titus
Wed 14th Jul '04, 7:40pm
That was quick. Thanks!

Titus
Tue 10th Aug '04, 4:34pm
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.