logo
Home XtGem- Templates- XtScript- bottom
XtGemmanual

XtGem tags and tools

auth bar

The XtGem authorisation bar

Notes

The xt:auth system allows visitors to It allows you to The login signup and subscribe link will be shown at the top right of all your pages
If you wish to remove it from a page add
<xt:auth skip="yes" />

If you want to remove the auth bar from all pages add it to _headtags
There is one other auth function
<xt:is_logged_in />

Which will return 1 or 0 depending on the login state of the user
This javascript can be used to customize the auth bar
It is set with the default css
auth uses an iframe you can only style the iframe not the contents
<div id="auth"><xt:auth /></div>
  <script>
  var auth=document.getElementById("auth");
  var style=auth.getElementsByTagName("style");
  var iframe=auth.getElementsByTagName("iframe");
  style[0].innerHTML="html { padding-top: 26px; } #xt_auth_iframe { position: fixed; top: 0; left: 0; background: transparent; }"
  iframe[0].style.width="100%";
  iframe[0].style.border="0";
  iframe[0].style.height="26px";
  </script>

Related

blog forum guestbook chatroom

XtGem manual · all sections

Powered by XtGem
About us Contact Forum top