[TYPO3-UG Denmark] New login box

Jakob jakob at monaco.as
Fri Jun 22 12:48:28 CEST 2007


Hey, jeg er så småt ved at være der med loginboxen, men når jeg prøver at
logge på fra den, kan den ikke finde pluginét ( Firefox kan ikke finde
serveren {$plugin.tx_newloginbox.loginuid.) jeg har prøvet at sætte dette i
constants: plugin.tx_newloginbox.loginuid = 63 meeeeen det virker ikke!

Skal det sættes ind i selve TS koden? Hvis ja ... Hvor?

Plugin ligger pid = 63 og
Storage i pid = 2

    # Login box

#check if there is a logged in user (a feuser has to belog atleast to one
usergroup) p
[usergroup=*]

#Logoff form with username
lib.login = COA_INT
lib.login {
  10 = TEXT
  10.wrap = <span id="logoutUName">|</span>
   
  20 = TEXT
  20.typolink.parameter = {$plugin.tx_newloginbox.loginUID = 63}
  20.typolink.returnLast = url
  20.wrap = <form action="|" method="post">
   
  30 = COA
  30 {
    5 = TEXT
    5.wrap = <input type="submit" id="logout" value="|" />
     
    10 = TEXT
    10.value = <input type="hidden" name="logintype" value="logout" />
    20 = TEXT
    20.value = <input type="hidden" name="redirect_url" value="" />
    30 = TEXT
    30.value = </form>
  }
}

# if no user is logged in we show the loginform
[else]

# Important we can only get the challenge value from kb_md5feuser only
through a php script
includeLibs.md5fepw = fileadmin/scripts/md5fepw.php
lib.login = COA_INT
lib.login {
  10 = TEXT
  10.typolink.parameter = {$plugin.tx_newloginbox.loginUID = 63}
  10.typolink.returnLast = url
  10.wrap = <form action="|" method="post"
onsubmit="superchallenge_pass(this); return true;">
   
  # form
  20 = COA
  20 {
    10 = TEXT
    10.value = Login
    10.wrap = <input type="text" name="user" onclick="this.value=''"
value="|" /> <br />
    20 = TEXT
    20.wrap = <input type="password" name="pass" onclick="this.value=''"
value="|" />
     
    30 = COA
    30 {
      10 = TEXT
      10.value = <input type="hidden" name="logintype" value="login" />
      20 = TEXT
      20.value = {$plugin.tx_newloginbox.storageUID = 2}
      20.wrap = <input type="hidden" name="pid" value="|" />
       
      # Call the PHP - Script
      25 = USER
      25.userFunc = user_md5fepw->md5Challenge
       
      30 = TEXT
      30.value = <button type="submit"><img
src="fileadmin/templates/res/pictures/go.gif" alt="login" /></button>
      40 = TEXT
      40.value = </form>
    }
  }
}
[usergroup]

#Select the content for the loginbox in the correct language  (in this
expamle english and german)
[usergroup=*] AND [globalVar = GP:L = {$langUID_EN}]
lib.login.10.value = Hello <!--###USERNAME###-->
lib.login.30.5.value = press to logout
[else]
lib.login.10.value = Hallo <!--###USERNAME###-->
lib.login.30.5.value = zum abmelden best&auml;tigen
[global]

# show the login only on a certain page and subpages
[PIDinRootline={$siteIntern}]
lib.login.if.isTrue = 1

# enable login if the constant activateLogin = 1
[else]
lib.login.if.isTrue = {$activateLogin}
[global]

Mvh. Jakob



On 20/06/07 18:44, in article
mailman.1.1182357843.1958.typo3-ug-denmark at lists.netfielders.de, "Peter
Klein" <peter at umloud.dk> wrote:

> Jo det skulle være den samme extension.
> 
> Efter du har installeret extensionen, så skal du lave en fil i
> fileadmin/scripts/ som skal hedde "md5fepw.php"
> I den indsætter du PHP koden fra typo3wizard.com.
> Derefter indsætter du TypoScriptet i dit setup, og retter IDs etc til, så
> burde den køre.
> 
> BTW: Så er der ikke noget Javascript.. ;)
> --
> Peter Klein / Umloud Untd
> 
> 
> "Jakob" <jakob at monaco.as> wrote in message
> news:mailman.1.1182253068.20250.typo3-ug-denmark at lists.netfielders.de...
>> Hey, og tak for svarene!
>> 
>> Jeg har hentet kb_md5fepw, kan ikke finde kb_md5feuser er det ikke den
>> samme?
>> 
>> Jeg kan sguette få det til at spille!
>> 
>> Jeg mangler en "step by step"
>> 1: installer kb_md5feuser
>> 2: indsæt JS fra extention i Templaten
>> Osv ...
>> 
>> Mvh. Jakob
>> 
>> 
>> On 15/06/07 16:09, in article
>> mailman.1.1181916592.17861.typo3-ug-denmark at lists.netfielders.de, "Peter
>> Klein" <peter at umloud.dk> wrote:
>> 
>>> New login boxkig her:
>>> http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/typoscript-logi
>>> nb
>>> ox-using-kb-md5feuser-and-newloginbox.html
>> 
> 
> 



More information about the TYPO3-UG-denmark mailing list