Topic-icon Login Form & SCLogin - How to ?!?

Active Subscriptions:

None
13 years 5 months ago #29020 by joomleb
Hi Alex,
I'm not a programmer, so I need help, suggestions, opinions.
I use joomla 2.5 - JBConnect 4.3.3 - Seblod 2.3.9 - Hikashop 2.0.0... etc. I don't want use Community Builder and or Joom Social.
About the Registration / Login process: following your documentation www.sourcecoast.com/jfbconnect/docs/conf...pi-configuration-tab
Please correct me if I'm wrong:

I'm not registered, so I can decide to use:
Joomla: It use Name - Username - Email - Password fields. After that I can login using Username and Password
Facebook: In this case in the joomla Name field automatically I'll find my Facebook Name and Lastname together. For me this is the first absurd because I put two fields into one and then I cannot work well with tags (during mailing with Acymailin for example).

After that, also if I yet used joomla to register, login with Facebook, if the emails are identic, I'm recognized and automatically the joomla empty fields are overwrited.
In any case, if I use Login Form module and/or SCLogin module, always when I'm logged will appear: Welcome "Username". This is the second absurd because I want a "real community" (with Name and Lastname, no virtual Username) and because I use JFBConnect to have help of Facebook with it. Infact Facebook use Email and Password to login and then just appear Name - Lastname (without welcome and so on) = this is the goal !

Solutions:
1 - You developed some Profile plugins, where the user's profile will automatically be imported into the respective profile, and I know one for Hikashop is in development,
www.sourcecoast.com/forums/jfbconnect/jf...hikashop-integration
but in any case, it will auto populate the Hikashop address fields, but I'll stiil have the same Login way. Is it right ?
How to reduce Joomla registration with Email and Password and have then a login with Email and Password and show Name - Lastname (taken from Hikashop, auto populated from JFBConnect) and logout button ?
2 - I'm not interested on Username field, so I could rename the Username field to Lastname, but in this case I'll need to hack JFBConnect on how and where it put the Facebook fields. Not simple.
3 - I can hack JFBConnect to use the Emai as Username:
www.sourcecoast.com/forums/jfbconnect/jf...ng-email-as-username
www.sourcecoast.com/forums/jfbconnect/jf...48-email-as-username
but, in this case when I'm logged still appear: Welcome Email... Instead of simple show Name and Lastname...and Logout button.
And, still are put two fields into one (Name = Facebook Name, Lastname)
4 - There are some plugins that change Email to Username
extensions.joomla.org/extensions/access-...email-authentication
May be a similar feature can be implemented into the SCLogin. But, again, still are put two fields into one (Name = Facebook Name, Lastname)
5 - I can use Seblod to create a Lastname field
www.seblod.com/support/forum/105-General...tion-page.html#42387
www.seblod.com/support/forum/105-General...-JSEBLOD-.html#45291
But then, How to have an automatic auto populate Name / Lastname fields from JFBConnect ?
How to login with Email and Password ?

Many Thanks in advance
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29077 by joomleb
...I found out that there is already a User Profile plugin to publish in joomla standard installation:
forum.joomla.org/viewtopic.php?f=624&t=7...2&p=2963708#p2963708

Well,
what I think is crazy is that in the User Profile plugin there isn't "Lastname" field!
...and the fact that you can not publish or not the individual fields!

Waiting your opinions...
PS a small guide for that plugin docs.joomla.org/Creating_a_profile_plugin
The topic has been locked.
Support Specialist
13 years 5 months ago #29100 by alzander
Joomleb,
Sorry for the delay in getting back to this. Hopefully, I can answer all your questions for you, but if I miss something, just let me know.

For the "Name" field of Joomla, that's just how they do it. JFBConnect doesn't choose to only have a Full Name field, we just fill in what Joomla is looking for. There's not any way we can directly fix that, unless you want to add an extension that adds profile functionality to your site.

After that, also if I yet used joomla to register, login with Facebook, if the emails are identic, I'm recognized and automatically the joomla empty fields are overwrited.

JFBConnect has the option to automatically map existing Joomla users to a Facebook account if those emails are the same. You can disable that if you want. I'm not sure what you mean about the empty fields though. Joomla doesn't let you create accounts if the fields are empty, so they shouldn't be empty when you do the 'connection' of accounts.

Welcome "username"
In the SCLogin module, there is a setting for "Greeting Name". You can switch that from "Username" to "Name" if you'd prefer to show their full name instead. In the /language/en_GB/en_GB.mod_sclogin.ini file, you'll see a language string called "MOD_SCLOGIN_WELCOME". You can alter that however you want to change the "Welcome" message, or remove it entirely.

For your specific numbered questions:
1) We haven't overhauled the profile plugin system. We're hoping that will be a part of JFBConnect v5.0, in January. At that poing, we'll be evaluating creating new profile plugins, Hikashop being one of them.
As for importing profile information, you can get the user's city, state and country. There is no way to obtain the user's street address from Facebook. They don't even ask that information of the users, so it's just not possible to get.

but I'll stiil have the same Login way.

I'm not sure what you mean here. With JFBConnect, the user could login with their Facebook account (a 1-click process) or their Joomla credentials, which JFBConnect can create for them.

How to reduce Joomla registration with Email and Password and have then a login with Email and Password and show Name - Lastname (taken from Hikashop, auto populated from JFBConnect) and logout button ?

There are plugins out there that can let users login with their email address. JFBConnect doesn't have anything to do with Joomla logins though, we just create the accounts. You can configure JFBConnect to automatically create the account, and you can even set our "Auto Username Prefix:" setting to "email" so that each user's username is actually their email address.
2) The username field is a fixed feature of Joomla. It'd be difficult to change it's behavior like your saying without affecting lots of other extensions as well. Joomla is always expecting a username for the user. You could hack things to make that the user's last name, but if using a forum (for instance), many times the 'username' is what's shown. That would mean that everyone's name in the forum would be their last name. Username is just something you'll likely need to work with in Joomla.
3) You don't need to hack JFBConnect to use email as username. See #1 above. Also, the SCLogin module can be configured to show Name instead of username (see top of message).
4) SCLogin can show the Name (from Joomla) or the Username (from Joomla). Those are the only built-in fields (beside email address) that every Joomla user is guaranteed to have. We can only work with what Joomla provides to us.
5) Login with email is possible with the plugin you mention in #4 or you can make sure that all JFBConnect user's are created with their email as username. No plugin is necessary then as their username is simply their email address.

Finally, for the User - Profile plugin, yes, it's extremely limited. JFBConnect can show those fields on our registration page, if you're using it, but we haven't even created a profile plugin to automatically populate those fields. No one, in almost 2 years, has ever asked for that feature as that profile system just isn't used. As for no last name, again, that's not something we have control over. That's just how Joomla works.

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29111 by joomleb
Hi Alex,
please, just some clarifications before to reflect on your answer:

alzander wrote: For the "Name" field of Joomla, that's just how they do it. JFBConnect doesn't choose to only have a Full Name field, we just fill in what Joomla is looking for. There's not any way we can directly fix that, unless you want to add an extension that adds profile functionality to your site.

So, JFBConnect automatically map Joomla "Name" field with "Name" + "Last Name" Facebook fields. Is it right?

alzander wrote: 1) We haven't overhauled the profile plugin system. We're hoping that will be a part of JFBConnect v5.0, in January. At that poing, we'll be evaluating creating new profile plugins, Hikashop being one of them.
As for importing profile information, you can get the user's city, state and country. There is no way to obtain the user's street address from Facebook. They don't even ask that information of the users, so it's just not possible to get.

With "but I'll stiil have the same Login way" I mean that also if Hikashop profile is populated from JFBConnect, When I Login the field informations are still taken from Joomla. So, not the "Name" and "Last Name" populated in Hikashop, but still the full joomla "Name" field is used as "Welcome"... Is it right?

alzander wrote: 5) Login with email is possible with the plugin you mention in #4

Have you any experience on those Extensions. You are a programmer, may be, Is there one that you prefer ? ...and Why ?
The topic has been locked.
Support Specialist
13 years 5 months ago #29113 by alzander

So, JFBConnect automatically map Joomla "Name" field with "Name" + "Last Name" Facebook fields. Is it right?

Correct. There is actually a 'Fullname' field from Facebook that we use instead of pushing the first and last name fields together, but the result is pretty much the same.

With "but I'll stiil have the same Login way" I mean that also if Hikashop profile is populated from JFBConnect, When I Login the field informations are still taken from Joomla. So, not the "Name" and "Last Name" populated in Hikashop, but still the full joomla "Name" field is used as "Welcome"... Is it right?

IF there was a Hikashop profile plugin, you'd be able to import information from Facebook into the user's Hikashop profile. With or without a plugin though, the login process would be the same. The user would click the "Login with Facebook" button and they would be automatically logged into Joomla. Once logged into Joomla, other extensions, such as Hikashop, would see the user just like any other Joomla user.

If the user has a First / Last name in Hikashop, you could use that to display anywhere on the site, but JFBConnect wouldn't do that automatically. It'd probably be a simple change to the SCLogin module to show it. Again though, other extensions would have to be updated to display that first/last name from Hikashop instead of Joomla's user table as well and not all extensions will have that integration built in. By default, any extension will always look at Joomla's user information. They may or may not integrate with other profile fields of other extensions though.

Have you any experience on those Extensions. You are a programmer, may be, Is there one that you prefer ? ...and Why ?

Never used them. We're fine with the username / fullname functionality of Joomla itself and don't require any extended profiles for our site or others we've worked on. For the sites that need a 'community', we recommend JomSocial, as that does it well. Additionally, since it's so popular, a lot of other extensions are built to use JomSocial profile data already.

Hope that all helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 5 months ago #29129 by joomleb

alzander wrote: JFBConnect has the option to automatically map existing Joomla users to a Facebook account if those emails are the same

What's happen to the complete "Name" field if first I do the registration through joomla writing in the "Name" field - Jacky - and then login with Facebook where my "Name" is Jack and Last Name - Black -?
Do -Jakc Brown - overwrite - Jacky - ?

1) We haven't overhauled the profile plugin system. We're hoping that will be a part of JFBConnect v5.0, in January. At that poing, we'll be evaluating creating new profile plugins, Hikashop being one of them

January is near, when can I get more information?

I'm investigating on extensions.joomla.org/extensions/access-...authentication/10343
because seems to be the only one that remove all traces of the username field in the front end of Joomla and from extensions.
I'll keep you informed about.

Is possible/simple have from JFBConnect the way to populate joomla "Name" just with Facebook "Name" field instead with "Fullname" ?

If I work to add Last Name field on a modified User - Profile plugin and/or through Seblod,
Is possible/simple have from you the way to populate "Name" and "Last Name" separately instead with "Fullname" into "Name" ?
The topic has been locked.
Support Specialist
13 years 5 months ago #29158 by alzander
JFBConnect won't override values that a user already entered into their Joomla profile. When they 'connect' their Facebook account to an existing account, the name, email, and password will all stay as they were and will not be updated from Facebook. JFBConnect assumes the user's profile information was entered manually how the user would want it to display on your site.

For the Profile Plugins updates, there is no information. We're in the process of creating JFBConnect v5.0, which will support Joomla 2.5 and Joomla 3.0. The full scope is still under consideration. Joomla 3.0 support is the priority. Other features are under consideration, including the overhauled profile system, but no guarantees on that or other profile plugins that would be available with it yet.

JFBConnect actually uses just the 'name' field from Facebook. I just looked it up. You could change that to First Name followed by Last Name if you wanted, which would be easy, but I think that's the same as just the 'name' field.

Finally, with a profile plugin, you could separate out the fields from Facebook into another extension however you want. That's the point of the profile plugins, to give flexibility over how the user's profile is imported into that extension. So, yes, if you made that profile plugin for Sebold, you should be able to import the first and last names into their own fields.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #29882 by joomleb
I want update you:
Waiting JFBConnect and Seblod new releases
I have installed "Email as Username" plugin
extensions.joomla.org/extensions/access-...authentication/10343
so, right now, I can login into joomla with email and password like Facebook (without username)
The topic has been locked.
Support Specialist
13 years 4 months ago #29945 by alzander
Awesome! Glad to hear you got something going that works for you.

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

None
13 years 4 months ago #29958 by joomleb
Thanks Alex,
well, logically the update for you and all JFBConnect users were:
I have installed "Email as Username" plugin and after a kind Dylan's fix it works like a charm with last JFBConnect 4.3.3 :)
The topic has been locked.