if(!isProfileActive($ID))

$sAddons = "";
if(!isProfileActive($ID)) {  
  $sAddons = '<font color="green"><b>Account Active</b></font>';
}
else
{
$sAddons = '<font color="red"><b>Please confirm your email address</b></font>';
}

That look right to anyone? lol

Quote · 2 Aug 2011

 

$sAddons = "";
if(!isProfileActive($ID)) {  
  $sAddons = '<font color="green"><b>Account Active</b></font>';
}
else
{
$sAddons = '<font color="red"><b>Please confirm your email address</b></font>';
}

That look right to anyone? lol

No. You have a ! before the function isProfileActive which means Not True. So you have it backwords.

Remove the !

Other than that it looks fine.

https://www.deanbassett.com
Quote · 2 Aug 2011

 

 

$sAddons = "";
if(!isProfileActive($ID)) {  
  $sAddons = '<font color="green"><b>Account Active</b></font>';
}
else
{
$sAddons = '<font color="red"><b>Please confirm your email address</b></font>';
}

That look right to anyone? lol

No. You have a ! before the function isProfileActive which means Not True. So you have it backwords.

Remove the !

Other than that it looks fine.

 Thank you Deano :)

Quote · 2 Aug 2011

This doesn't seem to be working :(

P.S I'm completely new to Dolphin editing :(

 

//--- Get additional links(right side) ---//

$sAddons = "";

//--MY EDIT--//

if(isProfileActive($ID)) {  

$sAddons = '<font color="green"><b>Account Active</b></font>'; 

else 

$sAddons = '<font color="red"><b>Please confirm your email address</b></font>'; 

}

//--END MY EDIT--// 

if(isMember()) {

   $aProfile = getProfileInfo();   

 

   $sAddons = _t('_Hello member', $aProfile['NickName']);

   $sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';

   $sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';

}

else {

   $sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));

   $sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php">' . _t('_sys_breadcrumb_join') . '</a>';

   $sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';

}

 

return '<div class="breadcrumb"><div class="bc_open">&nbsp;</div>' . $sPathLinks . '<div class="bc_addons">' . $sAddons . '</div><div class="bc_close">&nbsp;</div></div>';

}

}

Quote · 2 Aug 2011
 
 
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.