{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang3081{\fonttbl{\f0\fnil\fcharset0 Calibri;}} {\colortbl ;\red0\green0\blue255;} {\*\generator Riched20 10.0.14393}\viewkind4\uc1 \pard\sa200\sl276\slmult1\f0\fs32\lang9 Adding full name to Welcome message\par {{\field{\*\fldinst{HYPERLINK https://www.boonex.com/forums/topic/How-to-get-Full-Name-of-logged-in-user-.htm }}{\fldrslt{https://www.boonex.com/forums/topic/How-to-get-Full-Name-of-logged-in-user-.htm\ul0\cf0}}}}\f0\fs32\par \par \b To solve, add a new function in inc\\profiles.inc.php\par Look for the getUserName function at about line 443. And add this new function right after it.\par \pard\sl240\slmult1\b0 function getFullName( $ID = '' )\par \{\par if ( !$ID && !empty($_COOKIE['memberID']) )\par $ID = (int)$_COOKIE['memberID'];\par \par if ( !$ID )\par return '';\par \par $aProfile = getProfileInfo($ID);\par if (!$aProfile)\par return false;\par \par return $aProfile['FullName'];\par \}\par \par -------------------------------------------\par \b Then make welcome message:\b0\par \par date_default_timezone_set('Australia,Brisbane');\par $Hour = date('G');\par \par $memID = $_COOKIE['memberID'];\par \par $full = getFullName($memID);\par \par if ( $Hour >= 0 && $Hour < 12 ) \{\par \par echo "Good Morning ".$full." ";\par \par \} else if ( $Hour >= 12 && $Hour < 17 ) \{\par \par echo "Good Aftrenoon ".$full." ";\par \par \} else if ( $Hour >= 17 && $Hour < 24 ) \{\par \par echo "Good Evening ".$full." ";\par \par \}\par \par \par }