I'm using FEU to allow users to log in:
{FrontEndUsers action=login }
After log in they are redirected to a module that I created. How do I get the Loggedid ID?
I've tried this:
$feu = \cms_utils::get_module('FrontEndUsers');
$uid = $feu->LoggedInId();
but I am getting this error message:
Notice: Undefined offset: 1 in C:\wamp64\www\xxxxxx\modules\FrontEndUsers\lib\class.FrontEndUsersManipulator.php on line 66
FEU - how to get LoggedInId
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: FEU - how to get LoggedInId
That is the correct syntax.
But you must be running an old version because line 66 of that file in the latest release is:
But you must be running an old version because line 66 of that file in the latest release is:
Code: Select all
list($json,$sig) = explode('::',$encoded,2);
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.