Topic-icon access level other then joomla default

Active Subscriptions:

None
Hello,
I would like to be able to give a different access level to the users joining my website through the social media, then registering through joomla.
Is this possible, and how?
For example I want to use an author level the ones registered from joomla, and just registered the ones through the JFBConnect.

thank you
costas
The topic has been locked.
Support Specialist
12 years 1 month ago #43403 by alzander
Costas,
We're looking to add an option for letting you set a default user type per social network in a future release. In the meantime though, it will take a minor code change to do what you're looking for. To do so, edit the /components/com_jfbconnect/models/loginregister.php file. Around line 281, you'll see:
// Default to Registered.
        $defaultUserGroup = $config->get('new_usertype', 2);
Update that bottom line to:
$defaultUserGroup = 2;
Where the number is the id of the User Group for 'Registered Users', which is likely 2.

That will work for automatic registrations. If you have automatic registrations disabled, you'll need to make a different change, which we can help with. Just let me know if that's the case, and we'll get you going.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #43491 by solarnetworks
ok. thanks alex, i have automatic.

will it be the same for jommla 1.5 component? or can you advise accodringly?

thanks.
The topic has been locked.
Support Specialist
12 years 1 month ago #43514 by alzander
Joomla 1.5 would need a similar change, but it's likely in a different file. I'd need to investigate that one more as the code isn't right in front of me right now.

Would you be needing that change for automatic registration as well?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #43536 by solarnetworks
Yes, for automatic registraiton as well.

thank you alex.
The topic has been locked.
Support Specialist
12 years 1 month ago #43542 by alzander
The change would be in the same /components/com_jfbconnect/models/loginregister.php file. Around line 80, you'll see the following lines:
$instance->set('gid', $acl->get_group_id('', $usertype));
            $instance->set('usertype', $usertype);
Update that to:
$instance->set('gid', 2); // Where 2 is the group ID
             $instance->set('usertype', 'Registered');

I hope that helps, but if you need anything else, just let me know!

Thanks,
Alex
The topic has been locked.