Topic-icon Normal Registration - Remove Password Requirement

Active Subscriptions:

None
Hi,

File Attachment:


Please refer to the above attachment. When users click the 'Login With Facebook' button, I would like the user to be able to choose their own username. The only way I can do this is if I select 'Normal Registration'. However, I see it as pointless for users to have to enter a password when they are already logging in using Facebook. I thought that the new version with the auto generate password function would work, but apparently it only works when i select 'Automatic Registration'. Is there a way to remove the requirement for the 2 password fields in the right column, or otherwise auto-fill it with an auto-generated password?

Is it possible to remove the left column that provides the option to link an existing Joomla / CB account? Especially since I have already selected the 'Automatically link Facebook users by email' option. Alternatively, can i swap the positions of the left and right columns?

Another issue is I've added 'user_location' FB request, and selected the Show imported fields setting in the Profiles tab, but the field doesn't seem to show up here.

Finally, why is the custom field at the bottom formatted differently from the above fields? How do I fix it to make it fit in with the above fields. Perhaps some CSS amendments?
The topic has been locked.
Support Specialist
14 years 4 weeks ago #22437 by alzander
Isaac,
I'll have to look into the best way to automatically fill (or leave blank) the password field. That is a setting we're also planning for the next 4.3 release (in the summer).

For the view of the login/registration area, you can simply hide the left hand side with the following CSS in your template:
#jfbc_loginregister_userinfo { display:none; }

Alternatively, you can create a template override and customize to your content. To do so, simply copy the /components/com_jfbconnect/views/loginregister/tmpl/default.php file to /templates/<YOUR_TEMPLATE>/html/com_jfbconnect/loginregister/default.php. Once there, edit it. You can swap the sides or remove the left-hand side altogether.

For the custom field at the bottom, you'll need to add some CSS to style that differently. We try to inherit the styles properly, but some templates override things in a way that JFBConnect simply chokes on.

Finally, for the user_location request.. what do you mean? What did you add? You should simply enable the Profile plugin you want and then 'map' the "Current City" (or whatever field) you want into the appropriate filed in CB or whatever. JFBConnect will take care of the rest. If that's not what you're doing, please explain more.

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

None
14 years 3 weeks ago #22711 by isache
Hi Alex,

The suggestions you provided were useful.
How do I format the fieldset so that the input field displays on the same line as the field label? I've tried #jfbc_loginregister dt {float: left;} and that seems to be what I'm looking for. However there are a few problems as seen in the attachment below:
File Attachment:


1. The Name label in the left column moves up to the same line as "* Required field"
2. The input field seems to display inline in the right column but not in the left column.
3. I think the only way to display inline is to reduce the <input size="30"> to < size="20">. However I don't see this setting in the CSS, and I don't see it hardcoded in the /com_jfbconnect/views/loginregister/tmpl/default.php file. Where can I change this?
4. How do I make the fields line up nicely so that it would look like a table? Perhaps give it a fixed width like dt {width:100px; margin-right:10px;}?

As for the formatting of the custom field at the bottom, I've managed to make it "look" like the rest of the fields by using .profile-fields {margin-left: 30px; margin-top: -30px;} & #cb_address {margin-left: 40px;}. Is this the best way to format it, or would a more elegant solution be to display these custom field within the same <fieldset> tag?

Finally, is it possible for to display additional info for each fields. e.g. "The address field is required so that ... " either in a tooltip or in small font below each field?

Thank you for your help.
The topic has been locked.
Active Subscriptions:

None
14 years 1 week ago #23158 by isache
Hi Alex,

Just wondering did you miss seeing my reply above?

Thanx
The topic has been locked.
Support Specialist
14 years 1 week ago #23201 by alzander
Isaac,
Very sorry for the delay. Yes, I somehow did miss this post. Hopefully, I can answer the questions as best I can.

First, instead of #jfbc_loginregister dt {float: left} change that to {clear:left}. That should fix the required line problem showing up on the same line as Name. That also makes the right-hand column's input boxes 'drop' down to the next line.

The other points (looking like a table and input width) have to do with displaying things inline. That doesn't sound like what you want. Was that a backup in case we couldn't drop everything down? Let me know if you need more help beyond the above, and I'll help how I can!

Thanks, and sorry again for the delay,
Alex
The topic has been locked.