Page 1 of 1

How to get the User ID of the FrontEndUser?

Posted: Thu Nov 25, 2010 9:29 am
by milagro
Hello does anyone know how I can get the UserID of a Front-end-user?
I have tried the following
  •       {$ccuser->userid()}
            {$ccuser->userid}
            {$ccuser->uid()}
            {$ccuser->uid}
            {$ccuser->property('userid')}

Code: Select all

{cms_module module="CustomContent"}
    {if $ccuser->loggedin()}
        {cms_module module="FrontEndUsers" form="changesettings"}

        UserID

    {else}
        {cms_module module="FrontEndUsers" nocaptcha="0" returnto="63"}
        {cms_module module="FrontEndUsers" form="forgotpw"}
    {/if}

Re: How to get the User ID of the FrontEndUser?

Posted: Thu Nov 25, 2010 2:29 pm
by jmcgin51
how about $ccuser->id

Re: How to get the User ID of the FrontEndUser?

Posted: Mon Nov 29, 2010 8:09 am
by milagro
I have found it {$ccuser->_uid} I forget the print_r function