#1 (permalink)  
Alt 14.05.2007, 13:13
Benutzer
 
Registriert seit: 17.04.2007
Beiträge: 64
Standard loginbox ändern wenn eingeloggt

Moin,

würde gerne die Loginbox bei nicht eingeloggtem Zustand mit den Inputs füllen und sobal man eingeloggt ist mit der {greeting}-message. (XTC 3.04)

krieg es leider nicht richtig hin und finde den Fehler nicht. Hier mein Code.

HTML-Code:
{config_load file="$language/lang_$language.conf" section="boxes"}

	{$FORM_ACTION}
	<table width="262">
	{php} 
		if (isset($_SESSION['customer_id'])) {
	{/php}

		<tr><td>{$TEXT_LOGGEDIN}</td></tr>

	{php} 
		} else {
	{/php}
		<tr>
			<td align="right">{#text_email#}:&nbsp;</td>
			<td>{$FIELD_EMAIL}</td>
		</tr>
		<tr>
			<td align="right">{#text_pwd#}:&nbsp;</td>
			<td>{$FIELD_PWD}</td>
		</tr>
		<tr>
			<td align="right"><a href="{$LINK_LOST_PASSWORD}">{#text_password_forgotten#}</a>&nbsp;</td>
			<td>{$BUTTON}</td>
		</tr>
	{php}
		}
	{/php}
	</table>
	{$FORM_END}
PHP-Code:
$box_smarty = new smarty;
$box_smarty->assign('tpl_path''templates/'.CURRENT_TEMPLATE.'/');
$box_content '';
require_once (
DIR_FS_INC.'xtc_image_submit.inc.php');
require_once (
DIR_FS_INC.'xtc_draw_password_field.inc.php');

if (!
xtc_session_is_registered('customer_id')) {

    
$box_smarty->assign('FORM_ACTION''<form id="loginbox" method="post" action="'.xtc_href_link(FILENAME_LOGIN'action=process''SSL').'">');
    
$box_smarty->assign('FIELD_EMAIL'xtc_draw_input_field('email_address''''id="loginBoxInputEmail" size="25" maxlength="50"'));
    
$box_smarty->assign('FIELD_PWD'xtc_draw_password_field('password''''id="loginBoxInputPassword" size="10" maxlength="30"'));
    
$box_smarty->assign('BUTTON'xtc_image_submit('button_login_small.gif'IMAGE_BUTTON_LOGIN));
    
$box_smarty->assign('LINK_LOST_PASSWORD'xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT'''SSL'));
    
$box_smarty->assign('FORM_END''</form>');

    
$box_smarty->assign('BOX_CONTENT'$loginboxcontent);

    
$box_smarty->caching 0;
    
$box_smarty->assign('language'$_SESSION['language']);
    
$box_loginbox $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_login.html');
    
$smarty->assign('box_LOGIN'$box_loginbox);
} else {
    
$box_smarty->assign('TEXT_LOGGEDIN'$greeting);
}
?> 
Bin mir auch nicht sicher ob ich in der loginbox.php die Variable $greeting zur Verfügung habe, aber selbst jeder beliebig eingesetzter Text wird nicht angezeigt.

Vielleicht kann jemand helfen.
Danke
Gruß
Lars
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
ändern, eingeloggt, loginbox

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Loginbox bei eigeloggtem Zustand ausblenden schlauch-profi.de Installation und Konfiguration 1 26.04.2007 13:13


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:53 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand