× Joomla Facebook Connect support forum

Topic-icon Registration validator and FBConnect

Active Subscriptions:

None
15 years 3 months ago #7626 by ciaphuas
I have a unique situation. I have created a college only Jomsocial website. The way I keep it college only is I whitelist only the .edus' of the user emails that i want to register. The plugin is a System - Registration validator. Right now i have it setup when you login with facebook, you have to create a full Joomla user. However this bypasses my e-mail validator. Is their a way for these to work in unison with each other. Like let the user connect using facebook, but they must create a user with the proper email address before they gain access?
The topic has been locked.
Support Specialist
15 years 3 months ago #7644 by alzander
Howdy Antoine,
We downloaded Registration Validator last night and are poking through it a little to figure out an answer for you. Basically, it has some code to look at different registration paths, and doesn't include JFBConnect. The code seems pretty straightforward, so I think we'll be able to give you a few lines of code that you'd have to add to their plugin to properly check JFBConnect's registration path.

We're looking into it now, but please be patient. We may not get an answer to you for a day or so, but we should be able to figure something out in relatively short order.

Please verify that you're using Registration Validator (the free version) and not v2.0 (the paid version). Want to make sure we're looking at the right thing.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7646 by ciaphuas
Awesome, your guys support is the best. I am using the paid version however.
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7647 by ciaphuas
Specifically I'm using Registration Validator v2.1.3
The topic has been locked.
Support Specialist
15 years 3 months ago #7649 by alzander
Antoine,
Alright, in that case, there's 2 ways we can move forward. Generally, we don't buy 3rd party extensions just to do support unless it very popular or we plan to implement integration.. it can just get too expensive otherwise.

1) Contact the developer to see if they can add the functionality you're looking for. They can contact us anytime, and we'd gladly help them.
2) Email us the extension to test/develop with. (This email address is being protected from spambots. You need JavaScript enabled to view it.) It's GPL, just like JFBConnect, so this is acceptable. We won't distribute it and would purchase it if we ever wanted to us it.. just cause that's the right thing to do. Once done, we (or you) can try to contribute these back to the plugin developer.
3) We can make some changes live on your site. To do this, please send us a super admin account. We'll install extPolorer (if not there) and try to add the features to their extension that you're looking for. This is our least favorite approach as we don't like working on live sites if we can avoid it (especially with system plugins which can be tricky).

We'll get you fixed up, and thanks for your complements about our support!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7650 by ciaphuas
Plan 2 sounds great and I already emailed it
The topic has been locked.
Support Specialist
15 years 3 months ago #7654 by alzander
Thanks for the email. We got interested and decided to look into this sooner :)

From our testing, there's a very simple solution to your issue. Please edit the /plugins/system/cedit_registrationvalidator.php file. At line 176, you'll see a variable with called $registrationtasks. Simply add the following line to this list of items:
'com_jfbconnect.createnewuser' => 'index.php?option=com_jfbconnect&view=loginregister',

The rest of the code doesn't need to be modified. We setup a simple filter to prevent certain usernames, and the check worked as expected. This should work for any filters you setup, but obviously test.

Please let us know if this works, as we'd love to hear your results. We may try to contact the developers of that plugin cause I can see some benefits of how it could be used with JFBConnect in a few other ways.

Finally, if you'd like to vote or review for JFBConnect on the Joomla Extension Directory, we'd appreciate it.. though of course it's not necessary :)
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7661 by ciaphuas
OMG Awesome, you guy rock!
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7663 by ciaphuas
Hmm...this may not be the solution I need. What exactly does this do? I'm having my friends test it out and their getting an error when trying to login.
The topic has been locked.
Support Specialist
15 years 3 months ago #7671 by alzander
Really, all that does is tell the Registration Validator to run and perform it's checks during registration if the following is true:
1) If a form is being submitted from JFBConnect (com_jfbconnect)
2) AND the task being called is createnewuser

If those are true, and the checks pass, everything should proceed if normal. If the Validator fails, redirect the user to the URL specified on the right side of that line (the login/register page).

We only tested this quickly, but it did work for us. We'll do some more testing, but if you can tell us any information about the error your getting (what's the message, is it coming from the Validator, Joomla, or something else.. if you know) and information about what checks may be failing, that will help use recreate your situation.

Thanks, and we'll help you get to the bottom of it.
The topic has been locked.