help with welcome text if user is logged in

Hi there,

I am trying to move the welcome text that appears on the promo images and the user avatar when a user is logged in to a different location on the page and have it not on the banner.

I figured this is the code, but I can't work out how to strip just the welcome text/profile. Could anyone help me with this?

This is the code:

[php]

function getPromoImagesArray() {
global $dir;

$aAllowedExt = array('jpg' => 1, 'png' => 1, 'gif' => 1, 'jpeg' => 1);
$aFiles = array();
$rDir = opendir( $dir['imagesPromo'] );
if( $rDir ) {
while( $sFile = readdir( $rDir ) ) {
if( $sFile == '.' or $sFile == '..' or !is_file( $dir['imagesPromo'] . $sFile ) )
continue;
$aPathInfo = pathinfo($sFile);
$sExt = strtolower($aPathInfo['extension']);
if (isset($aAllowedExt[$sExt])) {
$aFiles[] = $sFile;
}
}
closedir( $rDir );
}
shuffle( $aFiles );
return $aFiles;
}

function getPromoCode() {
global $site;

$sSiteUrl = BX_DOL_URL_ROOT;

if( getParam( 'enable_flash_promo' ) != 'on' )
$sCode = '<div class="promo_code_wrapper">' . getParam( 'custom_promo_code' ) . '</div>';
else {
$aImages = getPromoImagesArray();
$iImages = count($aImages);

$sImagesEls = '';
foreach ($aImages as $sImg)
$sImagesEls .= '<img src="'.$site['imagesPromo'].$sImg.'" />';

$sPromoLink = $sSiteUrl;
$sPromoRelocati alt= getParam('promo_relocation_link_visitor');
$sPromoRelocati alt= getParam('promo_relocation_link_member');

$sWelcomeElement = '';
if(!isMember()) {
$sWelcomeC = _t('_Welcome_to_the_community');
$sWelcomeElement = '<div class="sys_title">' . $sWelcomeC . '</div>';

$sPromoLink .= ($sPromoRelocationVisitor!='') ? $sPromoRelocationVisitor : 'join.php';

$sLoginSecti alt= '<div class="sys_promo"><div class="subMenuOvr">';
$sLoginSection .= $GLOBALS['oSysTemplate']->parseHtmlByName('login_join.html', array());
$sLoginSection .= '</div></div>';
}
else
{
$aInfo = getProfileInfo();
$sWelcomeElement = '<div class="label_thumbnail">' . get_member_thumbnail($aInfo['ID'], "left", false) . '</div><div class="label_thumb">' . _t('_Hello member', $aInfo['NickName']) . '</div><div class="clear_both"></div>';
}

$sCode = '';
if($iImages > 1)
$sCode .= <<<EOF
<script type="text/ {
$('#indexPhoto').dolPromo(8000, 1500);
} );
</script>
EOF;

$sCode .= <<<EOF

[/php]

Thank

Quote · 20 Jul 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.