Page 1 of 1

[RESOLVED] HELP : How can I display a FEU Id ?

Posted: Mon May 07, 2012 10:41 am
by square
Hi,

I try to display a simple thing : a FEU's ID.

This this seems pretty basic, but after multiple tries, I got no results :(

This is the last snippet I tried in my UDT but it has no results... What's wrong ?

Code: Select all

    global $gCms;
    $feu_module = $gCms->modules['FrontEndUsers']['object'];
    if( $feu_module )
    {
      $feu_uid =  $feu_module->LoggedInId();
      if($feu_uid)
      {
        echo $feu_uid;
      }
    }
I also tried the {$ccuser->uid} or {$ccuser->_uid} but they don't exist, where {$ccuser->username()} or {$ccuser->property('email')} are doing well their job.

I want my output to get the user his ID :
#1 Your ID is : 1948
#2 Your name is : Jhon Doe
#3 You email is : jhon@doe.com

As you can see, I'm looking for step #1 output method.

Any advice ?

[RESOLVED] Re: HELP : How can I display a FEU Id ?

Posted: Mon May 07, 2012 12:06 pm
by square
Ok, found it :

Code: Select all

{cms_module module= FrontEndUsers form='silent'}
#1 Your ID is : {$userid}
#2 Your name is : {$ccuser->username()}
#3 You email is : {$ccuser->property('email')}
I was missing the {cms_module module= FrontEndUsers form='silent'} stuff to call all the variables .