Can you help me to integrate the Joomla login in phpFreeChat 2.0.5?
I have created a component to launch the chat and it works fine. Now I want to use this code to autologin the registered users:
- Code: Select all
$user =& JFactory::getUser();
if (!$user->guest) {
return $user->username;
} else {
return 'guest'.rand(1,1000); }