Topic-icon Registration Page Setup Using K2

Active Subscriptions:

None
9 years 5 months ago - 9 years 5 months ago #48227 by webdevtim
Ran into problem with Joomla User Profile because my T&C page is a K2 item and the Joomla User Profile doesn't recognize K2 Items. Have found a hack to get Joomla User Profile to talk to K2 User Profile, but would rather avoid the hack because of issues that may arise when components, modules and plugins are upgraded.

So I want to set up the site registration to use the K2 User Profile plugin with k2 Captcha and have the Users assigned to K2 Groups and have the Registration form populated from the users Social Media user information, complete with avatar. And when all is done allow the user to log in with their Social Media credentials or their website account credentials.

I just want to know where to start so that I only have to go through this process one time.

JFBConnect advises that I enable the Joomla User Profile plugin. The question is can I use the K2 User Profile plugin instead, and if so how to I go about doing that? How do I go about mapping the JFBConnect User fields to the K2 User Fields. I need username, email, city, state/province, Country, zip/postal code, password all to be entered in the user registration form and stored in the user's profile. I also need the user to be able to edit their profile any time they log in. Would also like the user to be able to delete their own account as well.

Everything is ready to go as far as the Social Media accounts are concerned. Have created the accounts and the apps and populated the JFBConnect component with App Key and Secret Keys for each Social Media account and the "Error Check" utility reports that everything is good.

I also use ACYMailing for subscriptions and would like to add a check box to the registration form asking the user if they would like to subscribe to our newsletter at the same time.

I also have an SSL Certificate in place and I am getting the green pad lock indicating that I pass all the security checks.

So now it is just setting up the registration form and I should be good to go, I am just not sure where to begin with K2 or with adding the check box for the ACYMailing Subscription. I can edit PHP, CSS, HTML, JavaScript and jQuery, so if any custom work needs to be done just point me in the right direction.
Last edit: 9 years 5 months ago by webdevtim.
The topic has been locked.
Support Specialist
9 years 5 months ago #48244 by mel
JFBConnect should be able to do what you're looking for. The following basic steps should get you going:
* Enable the Social Profiles - K2 plugin
* Configure the profile import settings in the JFBConnect -> Profiles area to match the fields from a user's social network to the K2 fields
* In the JFBConnect -> Configuration area, set the "Enable Automatic Registration" feature to "No" so the user can go through the standard registration process
* In the JFBConnect -> Configuration area, set the "Registration Component" to "Joomla"

The only issues I see with what you mention above is that JFBConnect doesn't currently support the K2 User Profile plugin. We only support importing data into the standard K2 profile fields. Any additional fields would need to be filled out by the user.

I don't believe we document anywhere that we recommend the User - Profile plugin. We do support that plugin though, if that's what you choose to show your profile data and T&C checkbox. However, for the last step above for setting the Registration Component to Joomla, you will need to have the Social Profiles - Joomla plugin enabled, but you shouldn't need to enable the User - Profile plugin (or, you could enable it and disable all the fields in it).

With that configuration, the user will be brought to the standard Joomla registration page. From there, other extensions, like AcyMailing, can add their own checkbox for subscriptions and such.

I hope that helps get you started, but if not, let us know.

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

None
9 years 5 months ago #48246 by webdevtim
Thanks, I will take that course and see how it goes.
The topic has been locked.
Active Subscriptions:

None
9 years 5 months ago #48252 by webdevtim
There are only Gender, Description and URL fields listed for K2 in "Social Network Profile Import Configuration" under "Profiles."
The topic has been locked.
Support Specialist
9 years 5 months ago #48266 by mel
Correct. Those are the standard built-in fields of K2. Again, we don't support the K2 User Profile plugin in K2 for additional fields yet. We do support the Joomla User - Profile plugin, Alpha User Points, JomSocial, Community Builder and various other profile-specific extensions. K2 is more of a content editor and few sites use it as a profile extension, so we haven't focused on supporting that additional plugin, since even fewer sites use it.

I hope that helps explain a little more, but if there's anything else we can do to help, just let us know.

Thanks,
Melissa
The topic has been locked.