Results 1 to 4 of 4

Thread: Logged users only

  1. #1
    Join Date
    Nov 2006
    Posts
    61

    Default Logged users only

    Hi,
    I tried this code
    Code:
    <%if $logged_in%>
    	 <div class="button_subscribe">
        <a href="<%$site_url%>/cp/subscribe.php?cat=<%$cat%>">Suscribirse a esta categor&iacute;a</a>
        </div>
        <%else%>
        not logged in
        <br />
    <%/if%>
    but it seems that $logged_in and $username are only available for the index.html. Is this correct? How can i change that so that this tags can be used in browse.html and *row.html and other templates?

  2. #2
    Join Date
    Nov 2006
    Posts
    61

    Question Re

    Help??

  3. #3
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    Now you can use <%$login_status_username%> and <%$login_status_logged_in%> to check login status. They can be called in any template files.

    Update code here: http://nicecoder.com/svn/index.php?act=changeset&id=427

    247

  4. #4
    Join Date
    Nov 2006
    Posts
    61

    Default Re

    Thanks! Just what I needed.

Similar Threads

  1. e-mail sent by users/members
    By Edmondo in forum v5.x
    Replies: 4
    Last Post: 04-17-2006, 06:22 AM
  2. Email to registered users
    By vittle in forum v5.x
    Replies: 2
    Last Post: 11-02-2005, 11:59 PM
  3. xxx users online
    By landuyt in forum v5.x
    Replies: 2
    Last Post: 02-21-2005, 07:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •