Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: eriktm - maaliskuu 23, 2006, 08:20:12 AP

Otsikko: New PM's
Kirjoitti: eriktm - maaliskuu 23, 2006, 08:20:12 AP

<?php require('SSI.php');
if (
$context['user']['is_logged'])
{
echo '<h3>Hello, '$context['user']['name'], '</h3>';
echo '<i>xxx</i>';
}
else
{
   
ssi_login();
}
?>



The <i>xxx</i> shall be replaced with a script that shows hwo may new messages the user have??
Like on the frontpage of Simplemachines.org