[Typo3] Login form in urban nomad template?
Salih Sertkaya
sertkayasalih at gmail.com
Fri Aug 26 23:57:03 CEST 2005
Hi Frank,
- Sorry for my english!
>"template setup"
As you write, it is the setup.txt file in the static directory of the template.
I've added the login_logut codes after the 'Bottomlinks menu' section into the setup.txt file.
It good works.
My code copied and pasted as below, I hope it helps to you.
###########################################
#------------------------------
# login_logout
#------------------------------
temp.login_logout = TEXT
temp.login_logout.insertData = 1
temp.login_logout.value (
<form action="index.php?id=3" target="_top" method="POST" style="margin-bottom:0;margin-right:0;margin-left:0;margin-top:2;"><input style="width:50px; height:18px; margin-left:5;" name="user" type="text" value="" title="Enter username"><input style="width:50px; height:18px; margin-left:5" name="pass" type="password" value="" title="Enter password"><input name="login" type="image" style="vertical-align:top; margin-left:30; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border bottom: 0px solid; 0" src="fileadmin/templates/images/lock.gif" border=0 title="Login"><input type="hidden" name="logintype" value="login"><input type="hidden" name="pid" value="14"><input type="hidden" name="redirect_url" value="index.php?id={TSFE:id}">
######
# "pid" value="14" - User Storage Folder (SysFolder).
######
<p class="logintext" style="margin-left: 5px;" title="Forgot password"><a HREF="index.php?id=3&no_cache=1&tx_newloginbox_pi1[forgot]=1">Forgot your password?</a><img src="fileadmin/templates/images/spacer.gif" width="14px" height="4" border="0" alt=""><class="logintext" style="margin-left:0px;" title="Click on for registering"><a HREF="index.php?id=7">Register!</a></p>
</form>
)
[usergroup =*]
temp.loginScript=PHP_SCRIPT
temp.loginScript.file= fileadmin/templates/fe_user.inc
temp.login_logout.value (
<form action="index.php?id=3" target="_top" method="POST" style="margin-bottom:0;margin-right:0;margin-left:0;margin-top:2;"><img src="fileadmin/templates/images/spacer.gif" width="4" height="4" border="0" alt="">
<span class="subhead">Login as : </span><span class="logintext"><strong><!--###USERNAME###--></strong> </span>
<input name="logout" type="image" style="vertical-align:top; margin-left:25; border-right: 0px solid; border-top: 0px solid; border-left: 0px solid; border bottom: 0px solid; 0" src="fileadmin/templates/images/locked.gif" border=0 title="Logout!">
<input type="hidden" name="logintype" value="logout">
<input type="hidden" name="redirect_url" value="index.php?id={TSFE:id}">
<p class="logintext" style="margin-left: 10px;" ><a href="index.php?id=5">Update your profile</a></p>
</form>
)
[global]
subparts.login_logout < temp.login_logout
################################################
I've solved my problem like this.
Best regards :-)
- Salih Sertkaya (ssalih)
-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110136273/
More information about the TYPO3-english
mailing list