joomla - Fatal error: Call to undefined method JUser::authorize() in mod_envolve_chat.php on line 46 -


what have done bypassed joomla 3.0 instailling mod joomla 1.7 works when try , make mod registered users cant jomsocial users reason....

here php code

any ideas on might wrong?

$user =& jfactory::getuser();  if($user->guest != true)  if($envolveuserealnames == 'real')      $fullname = $user->name;     $spacepos = strpos($fullname, ' ');     if($spacepos != false)          $env_firstname = substr($fullname, 0, $spacepos);         $env_lastname = substr($fullname, $spacepos + 1);           $env_firstname = $fullname;         $env_lastname = null;   else     $env_firstname = $user->username;     $env_lastname = null;    $env_profileimg = null;          $env_isadmin = $user->authorize('com_content', 'edit', 'content', 'all');  echo(envapi_get_html_for_reg_user($envolveapikey, $env_firstname, $env_lastname, $env_profileimg, $env_isadmin, null));  else if($envolvewhichusers == 'all')     echo envapi_get_code_for_anon_user($envolveapikey); 

as @elin mentioned , per potential backward compatibility issues in joomla 3.0 , joomla platform 12.1:

  • jcontroller::authorize() has been removed. use jcontroller::authorise() instead.
  • juser::authorize() has been removed. use juser::authorise() instead.

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -