Topic-icon JFBConnect login under condition

Active Subscriptions:

None
10 years 10 months ago #33705 by yianik
Hello, so I have a question for you.

I'm a student and currently I'm building a non-comercial project for an exhibition area which demands visitors to be able to login using their FB accounts in order to enjoy some more priviledges. So far, so good! JFBConnect guarantess facebook connection and all the goodies it does are really what I need but... Not everyone is supposed to log in to this site, only visitors of this exhibition should be able to login.

If I use JFBConnect then anyone with a facebook acount (aka everyone) will be able to login even if they're not visiting the exhibition.
So, my question is whether there's some way to implement this via JFBConnect. For example asking for an access code during login with fb account.

Thank you,
Yiannis
The topic has been locked.
Support Specialist
10 years 10 months ago #33711 by alzander
JFBConnect doesn't have any way built-in to do that. There are options to respect the Joomla activation settings, so if email or admin approval is required, the user's account won't be useable until those steps are taken.

There are a few ways I can imagine you could implement what you want by creating a profile plugin. With that, you could add a "Code" button on Facebook registration page that would be checked during account creation. Without that, the account will be 'blocked' in Joomla and the user won't be able to get in. That wouldn't take too much work, but you may need a PHP developer to help implement it.

Before we go down that road though, can you tell me how you're preventing users from registering through Joomla? If you already have a system, that may be able to work with JFBConnect as well.

Hope that helps give some ideas or get you started.

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

None
10 years 10 months ago #33715 by yianik
Hello and thank you for your really quick response.

Right now I keep the login menu unpublished, so visitors cannot register or login to the joomla site.
But that's only because I haven't found a solution! The site is expected to go live by the end of June, so I must find a solution soon, hehehe :)

I found directions here docs.joomla.org/Creating_a_profile_plugin on how to create a profile plugin and you must be right, it's not that much work. Still, if an extra field for a code is created, how would this stop users from registering via JFBConnect?

Thank you,
Yiannis
The topic has been locked.
Support Specialist
10 years 10 months ago #33716 by alzander
Yiannis,
With JFBConnect, it wouldn't be too difficult. We have a setting for "Registration Mode" which can be set to 'Normal'. That will allow you to ask have a mini-registration form where the user could select their username, password and email address. Those fields can still be automatically generated and hidden though. Then, with a social profile plugin, you could add a new field for "Registration Code" that would be checked to activate the user or not.

With that combination, you'd have everything automatically generated, except, there would be a 1-field form the user would have to enter the proper code in.

Please note that the Social Profile plugins I'm mentioning are specific to JFBConnect. They are not the "User - Profile" plugin that is a part of Joomla, which is a lot more limited in what it can do I believe. That may be an option, and JFBConnect does work with the User - Profile plugins, I'm just not as familiar with developing them.

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