[Typo3] Login form in urban nomad template?
Salih Sertkaya
sertkayasalih at gmail.com
Tue Jul 12 01:05:46 CEST 2005
Hi friends,
I have solved it.
###login_logout###
temp.login_logout = TEXT
temp.login_logout.insertData = 1
temp.login_logout.value (
<FORM action="index.php?id=18" method="POST">
<span class="subhead">Member Login</span>
<span class="logintext">Email address:</span> <input type="text" name="user"
value="" class="inputfields" title="Enter username"><br>
<span class="logintext">Password:</span> <input type="password" name="pass"
value="" class="inputfields" title="Enter password">
<input type="submit" class="pushme" value="Login">
<input type="hidden" name="logintype" value="login">
<input type="hidden" name="redirect_url" value="index.php?id={TSFE:id}">
<input type="hidden" name="pid" value="15">
<p class="logintext"><a
HREF="index.php?id=18&no_cache=1&tx_newloginbox_pi1[forgot]=1">Forgot your
password?</a>
</p>
</form>
)
[usergroup =*]
temp.loginScript=PHP_SCRIPT
temp.loginScript.file= media/_templates/fe_user.inc
temp.login_logout.value (
<FORM action="index.php?id=18" method="POST">
<span class="subhead">Welcome</span>
<span class="logintext"><!--###username###--> </span><BR>
<input type="submit" value="Log out" class="pushme">
<input type="hidden" name="logintype" value="logout">
<p class="logintext"><a href="/index.php?id=28">Update your profile</a></p>
</form>
)
[global]
subparts.login_logout < temp.login_logout
########
- Before I have tried it in TS setup and login form couldn't work on front end.
Now it works in template setup instead of TS setup.
- Many thanks to,
team of TYPO3, author of urban nomad template and all people :-)
- Salih Sertkaya (ssalih)
-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110130192/
More information about the TYPO3-english
mailing list