• Welcome to Simple Machines Community Forum. Please login or sign up.
September 19, 2021, 10:25:01 AM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


How to integrate TNG into SMF + TP

Started by bruegggw, March 22, 2009, 05:49:20 PM

Previous topic - Next topic

bruegggw

This is the way I did it.  If you learn more, please share.

bruegggw

Use this code instead of the included function.  The first will only work if memberName = realName and that is not always the case.

// Just return the user name
function ssi_getuser()
{
   global $context, $user_settings;
   if ($context['user']['is_guest'])
      return "Guest";
   else
      return $user_settings['memberName'];
}

Advertisement: