Sweet! Didn't see the SSI option!
In user_ssi_login.html, I have:
<li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">My Profile</a> | <a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi?do=user_logout">Logout</a></li>
<%else%>
<li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">User Login/Registration</a></li>
<%endif%>
Now I can call things properly from static pages using:
However, this doesn't appear to work from within my Links templates. I also tried using the same code as above that I have in user_ssi_login.html, but it always returns <li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">User Login/Registration</a></li>, whether I am logged in or not.
In short, how do I insert code into my Links templates to check if I am logged in to community, and then print different HTML depending on if I am logged in or not?
Thanks!
In user_ssi_login.html, I have:
Code:
<%if comm_username%> <li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">My Profile</a> | <a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi?do=user_logout">Logout</a></li>
<%else%>
<li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">User Login/Registration</a></li>
<%endif%>
Now I can call things properly from static pages using:
Code:
<!--#include virtual="/cgi-bin/community/community.cgi?do=ssi_login"--> However, this doesn't appear to work from within my Links templates. I also tried using the same code as above that I have in user_ssi_login.html, but it always returns <li><a href="http://www.WiredBIZ.com/cgi-bin/community/community.cgi">User Login/Registration</a></li>, whether I am logged in or not.
In short, how do I insert code into my Links templates to check if I am logged in to community, and then print different HTML depending on if I am logged in or not?
Thanks!