[TYPO3] Creating logout link for fe users
Gregory Remington
greg at mediatech.net
Thu Jul 26 06:03:32 CEST 2007
Hi Daniel,
Try something like this. value="36" is the location of your fe_user
sysfolder.
# Login user
#######################################
page.1 {
subparts.LOGIN_FORM = TEXT
subparts.LOGIN_FORM.insertData = 1
subparts.LOGIN_FORM.value (
<form action="index.php?id=39" method="post">
<div id="login">
<input type="text" name="user" id="username" class="username" />
<input type="password" name="pass" id="password" class="password" />
<input type="image" class="loginbutton"
src="fileadmin/templates/mytemplate/images/login.gif" alt="login"
title="login" />
<div><input type="hidden" name="logintype" value="login" /></div>
<div><input type="hidden" name="pid" value="36" /></div>
</div>
</form>
)
}
# Logout user
#######################################
[loginUser = *]
page.1 {
subparts.LOGIN_FORM.value (
<form action="index.php?id=1" target="_top" method="post" style="margin:
0pt; white-space: nowrap;">
<div id="login">
<span class="logoutuser"><b><!--###USERNAME###--></b> logged in</span>
<input type="image"
src="fileadmin/templates/mytemplate/images/logout.gif" alt="login"
title="login" class="logoutbutton" />
<input name="logintype" value="logout" type="hidden">
<input name="pid" value="39" type="hidden">
</div>
</form>
)
}
[GLOBAL]
Greg
Daniel wrote:
> Thanks Eef,
>
>
>
> I know of the login module and that is what I use for user logon but I would
> like to have a simple link on my menu page that will allow the user to
> logout when the link is select and not still have to press a logout button.
>
>
>
> Warm regards,
>
> Daniel
>
>
>
> H.E.Weenink | Aristo WebDesign wrote:
>> Hello Daniel,
>>
>> The content-element to login is also used to make logout. Option what
>> is used mostly:
>> Two pages:
>> Login (hidden when logged in)
>> Logout (visible when logged in)
>> On both pages plugin with loginmodule
>>
>> Please read manual to set startingpoint to correct sytemfolder and
>> don't forget to set data in constant-editor
>>
>> Good luck, Eef
>>
>> -----Oorspronkelijk bericht-----
>> Van: typo3-english-bounces at lists.netfielders.de
>> [mailto:typo3-english-bounces at lists.netfielders.de] Namens Daniel
>> Verzonden: woensdag 25 juli 2007 10:29
>> Aan: typo3-english at lists.netfielders.de
>> Onderwerp: [TYPO3] Creating logout link for fe users
>>
>> Hi,
>>
>>
>>
>> I'm very new to Typo3 and I'm trying to create a webpage with feuser
>> access.
>>
>> I'm now stuck with trying to create a link that will logout the
>> current fe user. There must be a simple solution.
>>
>>
>>
>> Any advice will be appreciated.
>>
>>
>>
>> Regards,
>>
>> Daniel
>>
>>
>> _______________________________________________
>> 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