Topic-icon Process additional PHP file on login

Active Subscriptions:

None
12 years 2 weeks ago #44249 by lyljov
Hi,

I'd like to know which file to edit to add a PHP processing file (e.g. requesting for username) after the redirection upon login. I'm planning to ask for a username for both new users and returning users so I can trigger a workflow involving SEF. My plan is to load a modal window preferrably after the redirection. Can you help me with this?
The topic has been locked.
Support Specialist
12 years 2 weeks ago #44254 by alzander
I'm really not sure what you're asking for here. Can you explain a bit more? In general, I'd highly recommend either creating a user plugin (which is called by Joomla itself) or a socialprofile plugin (which is specific to JFBConnect) and add your code there. That will allow you to execute whatever code you want during logins, without having to modify our code after every update.

Please be aware that if you redirect the user in the middle of the authentication process, you could cause some issues though if the full JFBConnect registration/login process hasn't fully completed.

Either way, I hope the above gives you some ideas, but if you need any more information or help, again let me know specifically what you're looking for, and we'll gladly help.

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

None
12 years 2 weeks ago #44291 by lyljov
Hi Alex,

Thanks for the response.

Currently, we have set on JFBConnect that the user will be redirected to "My Profile" upon login. This is integrated with CB. However, I want an additional step to be set up when a user logs in again/new user registers. I want them to answer a specific question (i.e. please provide a username) using a modal page with no close button. This has to happen everytime they log in, in case they haven't provided the information I want.

This cannot be provided upon user registration, as it will be used for an entirely different purpose.
The topic has been locked.
Support Specialist
12 years 1 week ago #44311 by alzander
That isn't something I think would be appropriate for adding to JFBConnect. If you're already redirecting the user to their Profile page in CB, that should be where you add whatever code you need. The user will have to be redirected after they click the social login button. Our login process will happen as expected. Once the authentication happens, JFBConnect redirects and transfers control to whatever menu item you've set.. in your case, CB.

In the CB profile page, you can add Javascript to put up a modal or there may even be CB-specific addons already to do what you're looking for. However, that's outside of the scope of JFBConnect.

I hope that helps explain, but should you have any other questions or need any help, just let me know.

Thanks,
Alex
The topic has been locked.