[Typo3] FE user login in template problem

zepaz Quixxiong zepazque at gmail.com
Tue Mar 15 14:02:54 CET 2005


After a lot of trying and reading tutorials, code snippets etc. I
still can't figure out what I am doing wrong. I try to get a login
form in my template. Which when you are logged in, will be replaced by
a logout button.

It looks like my Typo installation takes the first value in a
conditional reference (even if it doesn't match) as value.
I.E.

If I visit a page on a windows machine, with this in the constants:

[system = mac]
blub = TEXT
blub.value = 1
[global]

blub = TEXT
blub.value = 2

the value will be 1, even as the conditional references don't match
(it is a windows machine not a mac)

this is also with [usergroup = 1] or [usergroup = *] Even if I haven't
logged in, the value which is declared in the conditional reference
will be presented.

If i take 2 of these conditional references, the first one will always
be picked
IE
[system = mac]
[global]
[system = win]
[global]

the value from system = mac will be presented

This drives me crazy and it makes also that the howto from the
following link won't work:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/18464/?tx_maillisttofaq_pi1%5Bpointer%5D=4

For this one the same:
http://www.typo3faq.net/index.php?sid=186408&aktion=artikel&rubrik=005&id=38&lang=de

Here is my code:

In my html template:

<!-- ###LOGIN### START -->
login
<!-- ###LOGIN### END -->

In the setup:

#login
#######################
subparts.LOGIN = TEXT
subparts.LOGIN.insertData = 1
subparts.LOGIN.value (

<FORM action="index.php?id=10" 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="7">

<p class="logintext"><a
HREF="index.php?id=10&no_cache=1&tx_newloginbox_pi1[forgot]=1">Forgot your
password?</a>
</p>
</form>
)

[usergroup = *]
subparts.LOGIN.value (
<FORM action="index.php?id=696" 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=704">Update your profile</a></p>
</form>

)
[global]

What made me wondering was when I put the code above the code for the
menu, the menu doesn't get loaded.

My question is: what am I wrong doing?



More information about the TYPO3-english mailing list