[TYPO3] newloginbox - check user state logged in?

H.E.Weenink | Aristo WebDesign h.e.weenink at aristo-webdesign.nl
Mon Oct 22 07:14:33 CEST 2007


Hi,

My solution is to use the visibility settings here: 
Put 2 contentelements, 1 with text when NOT-logged in => visibility set to
that 
And other to text when LOGGED in => and also visibility set tot that (you
could even do more content-elemtens and have different visibility settings
per fe-user group. 

Eef  

-----Oorspronkelijk bericht-----
Van: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] Namens JoH asenau
Verzonden: maandag 22 oktober 2007 4:50
Aan: typo3-english at lists.netfielders.de
Onderwerp: Re: [TYPO3] newloginbox - check user state logged in?

> I'm using the newloginbox extension, and I want to know if there is a
> chance to check if a FE user is logged in or not with some sort of
> code (e.g. java script)?
> My aim is to display a link to the login page defined in my template
> file for my typo3 website. The link is named 'login' and if the user
>   is already logged in I would like to have 'log out' displayed
> instead.
>
> I would ve very thankful for every hint I get to solve that problem...

Check TSref for conditions.
There should be something like

temp.blah = TEXT
[loginUser = *]
temp.blah.value = Logout
[else]
temp.blah.value = Login
[global]

Of course you can fill in as many TS code as you like between the conditions
but be sure to not use these within curly braces.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com


_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english





More information about the TYPO3-english mailing list