OS Property support center

question about function checkSpecial

  • elkin cano
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 6 months ago #41368 by elkin cano
question about function checkSpecial was created by elkin cano
hello...

in my site (SPANISH SITE JOOMLA 3)

in the function checkSpecial [common.php (1512) ]


the function check for the name ("Super Users", "Super Administrator", "Administrator", "Manager")

but in mt joomla spanish this profile name are ( Super Usuarios ,Administrador ,Gestor )

i change the funcion to verify by ID groups not by the title...
Code:
$specialArrid= array(8,7,6); $db->setQuery("Select b.id from #__user_usergroup_map as a inner join #__usergroups as b on b.id = a.group_id where a.user_id = '$user->id'");


i hope you check this

bye.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #41375 by Dang Thuc Dam
Replied by Dang Thuc Dam on topic Re: question about function checkSpecial
Hi,
You are correct, that's good solution in case customers don't use English in their site.
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamNguyen Phu Quan