How to check if a FEU is logged in

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
shmoyko
New Member
New Member
Posts: 9
Joined: Sat Mar 13, 2010 11:59 am

How to check if a FEU is logged in

Post by shmoyko »

Hello all,

After hours of searching and trying things out, I just can't figure it out (feeling very stupid)

How do I check if a FEU is actually logged in?

I have a page with {cms_module module=FrontEndUsers} which displays the login form. Works fine.
But I want to restrict content of the same page to logged users only.

How would I do this:
{if $user=="xxx"}
show stuff
{/if}

Many thanks!
NaN

Re: How to check if a FEU is logged in

Post by NaN »

Come on.
If you really searched for it for hours you would have found at least 10 topics that mention the module CustomContent. It is even mentioned in the module help of FrontendUsers...
shmoyko
New Member
New Member
Posts: 9
Joined: Sat Mar 13, 2010 11:59 am

Re: How to check if a FEU is logged in

Post by shmoyko »

Fair enough. I guess I was just freaking out.
Thanks anyway.
Post Reply

Return to “Developers Discussion”