Ha a bejelentkezés után ezt írja üdvözlésképpen: name0
A modules/mod_login.php-ban
// keressétek meg ezeket a sorokat
$registration_enabled = $mainframe->getCfg( 'allowUserRegistration' );
$message_login = $params->def( 'login_message', 0 );
$message_logout = $params->def( 'logout_message', 0 );
$pretext = $params->get( 'pretext' );
$posttext = $params->get( 'posttext' );
$login = $params->def( 'login', $return );
$logout = $params->def( 'logout', $return );
$name = $params->def( 'name', 1 );
$greeting = $params->def( 'greeting', 1 );
// szúrjátok be alá
if ( $my->id ) {
// Logout output
// ie HTML when already logged in and trying to logout
if ( $name ) {
$query = "SELECT name"
. "\n FROM #__users"
. "\n WHERE id = $my->id"
;
$database->setQuery( $query );
$name = $database->loadResult();
} else {
$name = $my->username;
}
?>
<form action="<?php echo sefRelToAbs( 'index.php?option=logout' ); ?>" method="post" name="logout">
<?php
if ( $greeting ) {
echo _HI;
echo $name;
}
?>
<br />// innen a régi kód marad
<div align="center">
<input type="submit" name="Submit" class="button" value="<?php echo _BUTTON_LOGOUT; ?>" />
</div>