Hi forum,
is there a way to get the user's name through a php code line?
Something like:
Thank you,Code:$usr=$_SESSION['FORM_DATA']['user'];
Dan
Hi forum,
is there a way to get the user's name through a php code line?
Something like:
Thank you,Code:$usr=$_SESSION['FORM_DATA']['user'];
Dan
In mod_logout_1cl.tpl template is:
[code=php:237fk72g]<span class="syntaxhtml"><?php*echo*$this->loggedInAs;*?></span>[/code:237fk72g]
Marcin
http://www.contao.pl - Polish Support Site
http://forum.contao.pl - Polish Contao community forum
-----------------------
Need custom template? Feel free to contact me by e-mail marcin@contao.pl
Frontend User (or Member)
etc....Code:if (FE_USER_LOGGED_IN) { $this->import('FrontendUser', 'User'); $FrontendUserFirstName = $this->User->firstname; $FrontendUserLastName = $this->User->lastname; $FrontendUserID = $this->User->id; }
Backend User (or User) would be
Code:if (BE_USER_LOGGED_IN) { $this->import('BackendUser', 'User');
Hi guys,
following your explanation I was able to accomplish the desired operation.
Thank you very much.
Dan
Bookmarks