× Joomla Facebook Connect support forum

Topic-icon Redirect to Invite after registration

Active Subscriptions:

None
15 years 4 months ago #7361 by dagofee
Hello guys,
amazing componets I have to admin I had never expected something so poweful : ) My registration % is definetly more than before.
Did you superguys come across a way to redirect the user to you invite method AFTER josocial (normal)registration? Yes, they'd have to log in trought facebook but it doesn't matter, would push even more the % of new users!!

thanks for any hints
Andrea
The topic has been locked.
Support Specialist
15 years 4 months ago #7376 by alzander
Andrea,
Thanks for the kind words. Superguys may be excessive, but I'm not going to argue on the weekends :)

Unfortunately, I'm not sure of a way to do what you're saying on just the registration. JomSocial has redirections for every login, but not one that's only used for the first registration. We obviously think those are separate since we have options for both in JFBConnect, but I don't know how you'd do that in JS. It's possible there are plugins that can redirect first time users, but I did a quick search and didn't find any, sorry to say.

If you wanted to set it up for every login, you'd simply create a menu item pointing to a content article (let's call it "Welcome Back").. add the Invite module to show on this menu item, then in the JS configuration, set the login redirect to this page.

Hope this helps, but I don't think it's exactly what you're looking for. You may want to post in the JomSocial forums to see if there's a way to do a one-time redirect for new users.

Best of luck!
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #7393 by dagofee
Thanks! you are right this is Jomsocial related

I'd like to send periodic reminder to the users that didn't synchronize theyr account (the wall post function is a wonderfull promotion method)
Can you tell me how to check in php if a user already syncronized its own joomla account with facebook? (this means it appears in User Maps as well)

thanks for the great support!!!
Andrea
The topic has been locked.
Support Specialist
15 years 4 months ago #7417 by alzander
Sure thing. In PHP all you should have to do is the following code, which will return a true/false if the user is mapped. It will return the id of the Facebook user account (if mapped/synchronized) or null if not:
$user =& JFactory::getUser(); // Get the current user
if (!$user->guest)
{
  include_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jfbconnect'.DS.'models'.DS.'usermap.php');
  $userMapModel = new JFBConnectModelUserMap(); // The JFBConnect Usermap model
  $fbId = $userMapModel->getFacebookUserId($joomlaId); // Get the FB Id of the currently logged in user
  if ($fbId != null) // Check if the user has an FB mapping
    return true;
}
return false; // If we made it here, the user is either a guest, or doesn't have a FB mapping

Hopefully you know enough PHP to understand that all. If not, just let us know and we can explain more or help out where necessary.

Good luck!
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #7456 by dagofee
Thanks
I would like to find such a support anywhere :)
really
The topic has been locked.
Support Specialist
15 years 4 months ago #7463 by alzander
Glad you appreciate it. You know where to find us if you have any other questions.

If you use JFBConnect, please leave a rating and review on the Joomla Extension Directory. We'd definitely appreciate it, but it's certainly not necessary:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks again!
The topic has been locked.