Somebody know how to use if $login == true for indexu template ?
Antony
Somebody know how to use if $login == true for indexu template ?
Antony
Hotel Discount Web Search
www.hotel-discount.com
hmm... well the way i do it on one of my sites is a little hack to detail.php, i check to see if a cookie is set with a username, if it is i assign the variable to the detail template and then use :
<% if $username %>
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Thank's Inspereme....
And can i use <%if !$logged_in%>
or <%if !$logged_in==true%>
or by this way <%if !$logged_in==false%>
or <%if !$if_not_logged_in%>
Did you try it ?
Antony
Last edited by Antony; 10-26-2007 at 12:43 PM.
Hotel Discount Web Search
www.hotel-discount.com
well jsut put <%$logged_in%> onto your detail page and see if anything is output - im not sure if that variable is available, i didnt think it was.
if it output a 1 on your page you could use :
<%if $logged_in %>
do this
<%/if%>
if it output nothing then the variable isnt available and you'll need to hack the php a little.
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
From block.login.html
<%if !$logged_in%>
No I try BOTH on a custom page but doesn't work....
Thank's for your help.....
Maybe Doddy will know...
If he passe to the forum maybe i have a chance to get the answer....
Hotel Discount Web Search
www.hotel-discount.com
Somebody help me...
And the answer is
<%if $login_status_logged_in%>
I test it and its work perfectly.
Hotel Discount Web Search
www.hotel-discount.com