Topic-icon How to Enable "Silent Registration" using Facebook Log In?

Active Subscriptions:

None
I want to enable "Silent Registration" on my site. So when the user creates an account with facebook, no registration emails are sent. I've tried to accomplish this in Joomla 2.5.2, but it doesn't seem to work for me. Setup details...

In User Manager:
- Allow User Registration = Yes
- New User Account Activation = None
- Notification Mail to Administrators = No

In Joomla User Plugin
- Auto-create Users = Yes
- Notification Mail to User = No

In JFBC Configuration:
- User Creation = Facebook User Only
- Skip Joomla User Activation = Yes

I also tried commenting out this line in components/com_users/models/registration.php on line 407 and added a return = true:
//$return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);

$return = true;

But new users are still getting registration emails. Any ideas on how to disable this? All of my users are registering with facebook credentials using the JFBC extension.
The topic has been locked.
Active Subscriptions:

None
Nevermind, I found the line to edit in com_jfbconnect/controllers/loginregister.php

Would be cool to see this as a feature in a future release. :)
The topic has been locked.
Support Specialist
Ryan,
We're changing the emails around a bit for the next release.. we may add an option to disable them, but we're definitely pulling the registration/login strings into JFBConnect's language file to make it so you can customize the emails for Facebook registrations over the default Joomla registrations. I believe (though I can't guarantee this now), if you were to make the email or subject line blank in the language file, that will prevent the email from being sent.

You'll have to test when the release is out.. otherwise, you'll need to make the minor modification to forcibly prevent them from sending when 4.2 is out.

Thanks for the suggestion... not sure when or if we'll implement the ability to disable emails as it's not a common request, but we'll keep it in mind!

Alex
The topic has been locked.
Active Subscriptions:

None
Cool, thanks for the insight, looking forward to 4.2! :)
The topic has been locked.
Active Subscriptions:

None
Ryan can you share what you did to the loginregister.php. I am also interest in this too, since my site will be facebook register only.

Thanks
The topic has been locked.
Active Subscriptions:

None
Sure, you just need to change this line (around 431)...
$return = JUtility::sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);

to...
//$return = JUtility::sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);
$return = true;

Enjoy! :)
The topic has been locked.