[TYPO3-english] Show usergroup and fe_user info
sara_bets at hotmail.com
Thu Nov 7 02:31:42 CET 2013
I'm using the extension "itypo_expiring_fe_groups" to deal with timed usergroups, and now i would like to show to the user when he log's in some information about his account, like for example the date of last login, expiration date of his membership and the usergroup that he belongs in the moment.
In what concerns to last login date, i succeed with this code:
10 = TEXT
10.data = TSFE:fe_user|user|lastlogin
10.strftime = %b-%d-%Y, %H:%M
I tried to apply the same code to the expiration date, but it shows a wrong date...I checked in phpMyAdmin, and the field shows some numbers before the information....For example, lastlogin field has the numbers "1383785754" giving the correct date, but the field from tx_itypoexpiringfegroups_groups shows a number like this " 2|1383602700|1415138700* ", which shows a wrong date in the frontend (just for the record, it shows me "Jan-01-1970, 01:00" in the frontend).
The other problem is showing the usergroup, i've been searching the web for how to do this, but so far no luck.
I would appreciate very much some guidance to solve my problems
Sorry for the inconvenience, kind regards
More information about the TYPO3-english