[Typo3] Login form in urban nomad template?
Salih Sertkaya
sertkayasalih at gmail.com
Thu Jul 7 14:18:41 CEST 2005
Hi typo3 family,
My local pc configuration:
- Xampp 1.4.14
- typo3 v3.8
- WinXP Pro. SP2
- I found the typo3 CMS one month ago. I'm trying something on everyday. It's niceful for me.
Now, I want to intagrate the login box in urban nomad template's Top Navigation section.
I searched this title "Customized FE login form" and found this topic at link : http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/18464/?tx_maillisttofaq_pi1%5Bsword%5D=Customized%20FE%20login%20form&tx_maillisttofaq_pi1%5Banswered_only%5D=0&tx_maillisttofaq_pi1%5Bmode%5D=1
I modified the urbannomad.html for login_logout as below:
..............................................
<!-- START Top Nav -->
<table cellpadding=0 cellspacing=0 border=0 class="topnav_bar" width="100%">
<tr><td colspan=2 class="topnav_bar" height="20" align="left" ID="toplinks">
<!-- ###LOGIN_LOGOUT### START -->
<!-- ###LOGIN_LOGOUT### END -->
<!-- ###TOPLINKS### start -->
<!-- ###TOPLINK_ITEM### start -->
<!-- ###LINK### start -->###TITLE###<!-- ###LINK### end -->
###SEPARATOR###
<!-- ###TOPLINK_ITEM### end -->
<span class="top_nav"><a href="#" class="top_nav">toplink1</a>
|
<a href="#" class="top_nav">toplink3</a>
|
<a href="#" class="top_nav">toplink3</a>
<!-- ###TOPLINKS### end -->
</td></tr>
<!-- END Top Nav -->
.................................................
Template setup as below:
###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
########
----------------------------------------------------------
- I tried more times but I couldn't see the login box on front end of template!
I think my mistake.
Where is my mistake? How can I do it correctly?
- I need your help please!
- Can you help me step by step?
Best Regards.
- Salih Sertkaya (ssalih)
-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
More information about the TYPO3-english
mailing list