Topic-icon Integration of JFBConnect with JomSocial and AlphaUserPoints component

Active Subscriptions:

None
Hi Alex

This is very vital to provide points to users for 'Invite with Success' rule in Alpha User Points. I know that currently you don't have a similar rule for JFBConnect to award points after a user registers when a Request has been sent to facebook friends through JFBRequest module.

But still i need your help. Can you send me any documentation which can help me to create a plugin or extension to provide points to users on registration.

Waiting for your reply.

Thanks
Devendre
The topic has been locked.
Active Subscriptions:

None
Alex

One more query.. can you please tell me where it is using Destination URL mentioned in admin section under Requests tab in JFBConnect admin section.


Thanks Devendre
The topic has been locked.
Support Specialist
Devendre,
I don't have any specific documentation to send you about how to award on a successful registration after invitation. My best suggestion would be to look at the existing AUP plugin that does that. My guess is that it is triggered after the user registers automatically and then looks in the database somewhere to see if that user was ever invited by another user.

If that's the case, you could copy most of that functionality and check the #__jfbconnect_requests_notification table and check if the user that just logged in has a Facebook ID that's been sent a request before. In that case, assume that that request sender should get an award. If you get some code going, we can gladly help take a look or provide suggestions.

Finally, the "Destination URL", is where the user that is receiving/accepting the Request will be sent when they come to your page. That's good for sending them to the home page, a specific "Welcome from Facebook" landing page, or whatever you want.

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

None
Hi Alex

Thanks for your support.

But i am done with the requirement to provide points to the user when he invites his facebook friends and friend receives his request and registers the site through website's registration form. Its working properly.

But there are two ways for registration, one is through registration form and another is through facebook login button. I am done with script creation for first option and now working on second option i.e facebook login/sclogin button.

Can you tell me here..? Your any suggestion will be appreciated.

Thanks
Regards
Devendre
The topic has been locked.
Support Specialist
I'm not sure how you implemented the awarding of points for users that register through Joomla. What I would recommend for both registration types is to create a Joomla User plugin. In there, you can use the onUserAfterSave($oldUser, $isnew, $user) to do whatever checks you need. The $isnew variable will be set if the user is just registering. By checking that, you'll know if the user just registered (whether through Facebook or Joomla) and then do whatever checks you want to use.

I hope that helps explain, but if not, let us know.

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

None
Hi Alex

I have implemented my own scripts for JFBRequest and SCLogin modules, to meet the requirements. Now its functioning properly.

Thanks for your kind support.

Regards
Devendre
The topic has been locked.
Support Specialist
Glad to hear you got it going. If you have anything you'd like to share with us on how you implemented things, we'll gladly take a look and provide any suggestions for improvements. Also, we may even consider adding some of those features to a future release so you won't have to re-implement them as you upgrade.

Either way, best of luck,
Alex
The topic has been locked.