Project

General

Profile

Feature proposal #1824 ยป 1824.patch

krileon, 02 February 2011 21:17

View differences:

modules/mod_cblogin/mod_cblogin.php
}
if ( $_CB_framework->myId() ) {
$cbUser =& CBuser::getInstance( $_CB_framework->myId() );
if ($name) {
if ($name == 2) {
$query = "SELECT firstname FROM #__comprofiler WHERE id = ". (int) $_CB_framework->myId();
......
// Add Authenticated Pre text
if ( $logoutpretext ) {
if ( defined( $logoutpretext ) ) {
echo constant( $logoutpretext );
echo $cbUser->replaceUserVars(constant( $logoutpretext ));
} else {
echo $logoutpretext;
echo $cbUser->replaceUserVars($logoutpretext);
}
echo "\n";
}
......
$avatarDisplayed = false;
if ($show_avatar == 0) {
if ($greeting) echo '<span id="mod_login_greeting'.$id_sfx.'">'.sprintf( _UE_HI_NAME, $name ).'</span>'.($horizontal ? "&nbsp;" : "");
if ($greeting) echo '<span id="mod_login_greeting'.$id_sfx.'">'.$cbUser->replaceUserVars(sprintf( _UE_HI_NAME, $name )).'</span>'.($horizontal ? "&nbsp;" : "");
} else {
if (($avatar_position=="default") and ($greeting)) echo '<span id="mod_login_greeting'.$id_sfx.'">'.sprintf( _UE_HI_NAME, $name ).'</span>';
if (($avatar_position=="default") and ($greeting)) echo '<span id="mod_login_greeting'.$id_sfx.'">'.$cbUser->replaceUserVars(sprintf( _UE_HI_NAME, $name )).'</span>';
$cbUser =& CBuser::getInstance( $_CB_framework->myId() );
$oValue = $cbUser->avatarFilePath( $show_avatar );
if ($oValue) {
if ($avatar_position=="default") echo '<div style="text-align:center; margin-left:auto; margin-right:auto;">';
......
if ($avatarDisplayed && ( ! $horizontal ) ) {
echo $preDiv . '" id="mod_login_greeting'.$id_sfx.'">';
echo '<br />';
echo sprintf( _UE_HI_NAME, '<br />'.$name );
echo $cbUser->replaceUserVars(sprintf( _UE_HI_NAME, '<br />'.$name ));
echo $postDiv;
} else {
echo '<span id="mod_login_greeting'.$id_sfx.'">'.sprintf( _UE_HI_NAME, $name ).'</span>';
echo '<span id="mod_login_greeting'.$id_sfx.'">'.$cbUser->replaceUserVars(sprintf( _UE_HI_NAME, $name )).'</span>';
}
}
......
// Add Authenticated Post text
if ( $logoutposttext ) {
if ( defined( $logoutposttext ) ) {
echo constant( $logoutposttext );
echo $cbUser->replaceUserVars(constant( $logoutposttext ));
} else {
echo $logoutposttext;
echo $cbUser->replaceUserVars($logoutposttext);
}
echo "\n";
}
    (1-1/1)