Page 1 of 1

FEU login weirdness

Posted: Tue Sep 29, 2009 2:33 pm
by grimmus
Hi,

I have the FEU Module installed to make 1 page on my site only show certain info for logged in people.

The user can login fine but the code below only seems to work sometimes, i.e. after logging in it still says 'Please login above to view the contents of this page'

The page i have this code on is NOT cachable. It's possible multiple (max 5) users login concurrently with the same username

Code: Select all

<p class="userLogin">{cms_module module=FrontEndUsers}</p>
{if $customcontent_loggedin == 1}
<p><a href="uploads/files.zip">Click here to access all student files</a></p>
{else}
<p><strong>Please login above to view the contents of this page</strong></p>
{/if}
Please tell me what i might be doing wrong

Thanks

Re: FEU login weirdness

Posted: Fri Oct 02, 2009 1:37 pm
by osxfil
Should be:

Code: Select all

<p class="userLogin">{FrontEndUsers}</p> <!-- here you can use only tag {FrontEndUsers} --!>
{if $ccuser->loggedin()} <!-- you need use $ccuser->loggedin() --!>
<p><a href="uploads/files.zip">Click here to access all student files</a></p>
{else}
<p><strong>Please login above to view the contents of this page</strong></p>
{/if}