FEU login weirdness

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
grimmus
Forum Members
Forum Members
Posts: 28
Joined: Sun Jan 11, 2009 7:17 am

FEU login weirdness

Post 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
osxfil
Forum Members
Forum Members
Posts: 186
Joined: Wed Apr 01, 2009 6:03 pm

Re: FEU login weirdness

Post 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}
Post Reply

Return to “Modules/Add-Ons”