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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

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

Post 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 ?
Last edited by square on Mon May 07, 2012 12:07 pm, edited 1 time in total.
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

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

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

Return to “Modules/Add-Ons”