[TYPO3-UG Dutch] FE login-menu
Jos Schipper [Netcreators]
jos at netcreators.nl
Tue Jan 3 23:01:12 CET 2006
Rob.... Sorry.. Mijn fout, je gaat niet in de extensie werken..
(Zal wel moeheid zijn dat ik dat dacht ofzo :))
Groeten,
Jos
Rob De Vries wrote:
>Dag Tijn,
>
>
>deze TS geeft je wat meer mogelijkheden:
>(aan te passen naar je eigen smaak)
>
>##--------------------- LOGIN AT FRONTPAGE ---------------
># Deze file moet je ergens in je fileadmin zetten
>includeLibs.blabla = fileadmin/template/scripts/fe-realname.php
>
>[usergroup = *]
>temp.login = COBJ_ARRAY
>temp.login {
>10 = TEXT
>10.wrap =<div class="loginholder2"> |
>
>20 = RECORDS
>20 {
> dontCheckPid = 1
> tables = fe_users
> source.cObject = USER
> source.cObject.userFunc = user_feid->getFeId
> source.cObject.renderObj = TEXT
> conf.fe_users = TEXT
> conf.fe_users.field = name
> conf.fe_users.wrap = <span
>class="loginpre-info">Welkom </span><span class="login-realinfo">
>|</span> <br />
> conf.fe_users.required = 1
>}
>
>65 = TEXT
>65.value = Klik hier om je profiel aan te passen.
>65.wrap = <a href="#" class="loginprofiel">|</a>
>
>70 = TEXT
>70.data = TSFE : id
>70.wrap=<form action="index.php?id= | " method="post"><input
>name="logintype" class="logoutimage" type="image" title="Login"
>src="fileadmin/template/css/afmelden.gif" width="82" height="22"
>alt="Logout" align="left" /> <input type="hidden" name="logintype"
>value="logout" > </form></div>
>
>
># if nobody is logged in, show this part
>[else]
>temp.login = TEXT
>temp.login.data = TSFE : id
>temp.login.wrap (
><div class="loginholder">
><form action="index.php?id=|" method="post">
><div class="inputforms">Login: <input class="inputlogin"
>name="user" type="text" id="user" title="loginname" onfocus="if
>(this.value==this.defaultValue) this.value=''" value="Login" size="12"
>/> Pass: <input class="inputpass" name="pass" type="password"
>id="pass" title="Passwort" onfocus="if (this.value==this.defaultValue)
>this.value=''" value="Paswoord" size="12" ></div>
><div class="loginbutplacer"><input class="loginimage" name="image2"
>type="image" title="Login" src="fileadmin/template/css/aanmelden.gif"
>alt="Login" /></div>
><input type="hidden" name="logintype" value="login" > <input
>type="hidden" name="pid" value="22" >
></form>
></div>
>)
>[global]
>
>
>
>
>### Code voor fe-realname.php
>
><?ph
>class user_feid {
> var $cObj; // reference to the calling object.
>
> function getFeId($content,$conf) {
> global $TSFE;
> $TSFE->set_no_cache(); // Turning caching off - good while developing.
>
> $conf["renderObj."]["value"] = $TSFE->fe_user->user["uid"];
>
> $outputString = $this->cObj->cObjGetSingle(
> $conf["renderObj"], // Contains the name, here "TEXT"
> $conf["renderObj."], // Contains the properties of "TEXT"
> "renderObj" // Basically just information for the TypoScript debugger
> );
> return $outputString;
> }
>}
>?>
>
>
>
>
>have fun
>Rob
>_______________________________________________
>TYPO3-UG-dutch mailing list
>TYPO3-UG-dutch at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
More information about the TYPO3-UG-dutch
mailing list