BE Login angepasst, Login nur im IE möglich?
| Autor | Nachricht |
|---|---|
|
Verfasst am: 07. 04. 2009 [10:48]
|
|
|
ben2k
Themenersteller
Dabei seit: 13.08.2008
Beiträge: 48
|
Hallo Forum, habe eine Extension erstellt, die die Loginmaske etwas verändert (über die ux_SC_index) gemäß der Anleitung im Typo3 Kochbuch (bilder.buecher.de/zusatz/22/22487/22487712_lese_1.pdf) class.ux_SC_index.php PHP <?php class ux_SC_index extends SC_index { function wrapLoginForm($content) { $logo = $GLOBALS['TBE_STYLES']['logo_login']; $loginboxImage = $this->makeLoginBoxImage(); $content=' <table cellspacing="0" cellpadding="0" border="0" id="wrapper"> <tr> <td class="c-wrappercell" align="center"> <div id="loginimage"><img src="'.$logo.'" border="0" alt="" /></div> <table callspacing="0" cellpadding="0" border="0" id="loginwrapper"> <tr> <td>'.$loginboxImage.'</td> <td>'.$content.'</td> </tr> <tr><td colspan="2">Erweiterung: Firma XY</td></tr> </table> <div id="copyrightnotice">'.$this->makeCopyrightNotice().' </div>'.$this->makeLoginNews().' </td> </tr> </table>'; return $content; } } ?> sowie die ext_localconf.php PHP <?php $ext_path = t3lib_extMgm::extPath($_EXTKEY); $TYPO3_CONF_VARS['BE']['XCLASS']['typo3/index.php'] = $ext_path. "class.ux_SC_index.php"; ?> und die ext_tables.php PHP <?php $lConf = unserialize($TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY]); $ExtPath = t3lib_extMgm::extRelPath($_EXTKEY); $GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'] = $lConf['picture_path'] ? "../".$lConf['picture_path'] : $ExtPath."res/loginimages/"; $GLOBALS['TBE_STYLES']['logo_login'] = $lConf['logo'] ? "../".$lConf['logo'] : $GLOBALS['TBE_STYLES']['logo_login']; ?> Nun kann ich mich im Firefox nicht mehr einloggen, er erkennt mein Passwort nicht mehr. Und komischerweise: im Internet Explorer funktioniert es noch?! Viele Grüße |
|
Verfasst am: 07. 04. 2009 [10:59]
|
|
|
SLAng
Moderator
Dabei seit: 20.10.2004
Beiträge: 2778
|
Warum erfindest du das Rad neu? Kennst du chloginskin? Wenn ich das richtig sehe, willst du das Logo, das Image und den text ändern... Mit der Extension kannst du alle bildelemente und den Aufbau komplett umstylen. Alle Texte kannst du über das Installtool anpassen wie du möchtest. Nichts wissen ist schlecht, nichts wissen wollen ist eine Katastrophe!
|
|
Verfasst am: 07. 04. 2009 [11:36]
|
|
|
ben2k
Themenersteller
Dabei seit: 13.08.2008
Beiträge: 48
|
Hi SLAng, danke. Die Extension kannte ich schon. Möchte nur einen Hinweis auf unsere Firma dort integrieren, dass wir Erweiterungen vorgenommen haben. Habe es jetzt hinbekommen, irgendwo in der ux_SC_index war etwas falsch. Wie folgt klappt es: PHP <?php class ux_SC_index extends SC_index { function wrapLoginForm($content) { $logo = $GLOBALS['TBE_STYLES']['logo_login']; $loginboxImage = $this->makeLoginBoxImage(); $content='<table border="0" style="padding:10px 10px 10px 20px" width="35%" cellspacing="2" cellpadding="2"> <tr><td style="text-align:center"> <img src="../fileadmin/templates/img/logo_komplett.png"> </td></tr> <tr><td>' .$content.'</td></tr> <tr><td style="padding-left:20px;"> <a href="http://www.firma.de" target="_blank"> <img src="../fileadmin/templates/img/firma.gif"> </a><br> Systemerweiterung /-anpassung: <a href="http://www.firma.de" target="_blank"><u>Firma XY</u></a><br><br></td></tr> <tr><td style="padding-left:20px;">'.$this->makeCopyrightNotice().' </td></tr></table>' ; return $content; } } ?> Viele Grüße |



