[TYPO3-english] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Show usergroup and fe_user info

Miguel xadi10 at hotmail.com
Thu Nov 14 03:36:46 CET 2013

 Great news, you've done it once again ! An ".stdWrap.if" worked as a charmed !

Dear god, i can't thank you enough for what you have done with me, your patience, your work, and all the time you wasted with me... Thank you so much Bernd.

Now i have another big mountain to climb: in some cases, the user can belong to more than just 1 expiring group, so i need to show both usergroups in the frontend.

This would be easy if the extension applied to the fields always the same token, but unfortunelly it doesnt... When a user has 2 timed usergroups, the extension separates them with an asterisk, like this " 3|1384385040|1384385160*5|1384389960|1385772360* " (the 5 after the first asterisk is the beginning of the second timed usergroup). If the extension developer had made the separation with another "|" it would be much easier.

But well, once it isn't made like this, my thoughts are that the best way to do this is by making two new splits: the first one that splits the field by the asterisk, and the second one to split the part after the asterisk by the token " | ".

However i don't know if this is possible, but i'm half a way there, so here is my code:

20 = TEXT
20.data = TSFE:fe_user|user|tx_itypoexpiringfegroups_groups
20.split {

token.char = 42
returnKey = 1


This code shows me this in the frontend: "5|1384389960|1385772360", so i think i'm half a way there, as now i only need to split once again the given result, but i don't know to do it...

Any suggestions or what i'm asking is impossible?

More information about the TYPO3-english mailing list