Topic-icon JFBC Login Screen Formatting

Active Subscriptions:

None
12 years 10 months ago - 12 years 10 months ago #35478 by theronin
First off, I gotta hand it to you on this extension and the documentation you’ve put together. I’m new to Joomla and of all the extensions and themes I’ve incorporated into my site, this is not just very integral, it was the least painful to install. Thanks.

Questions on the login screen. I’m noticing test users trip up on this screen and just had a couple of questions …

File Attachment:


1) Any way to test JFBC on localhost + wamp + Windows 7 x64? I’ve got the curl thing all figured out it’s the FB connection that won’t even let me get to this screen. Which is all I want to do so I can format it locally. If not, no worries, just wanted to avoid the upload step.

2) Is there an easy way to “inheret” the default template style? Or only way is to alter loginregister.css (or override in custom.css)?

3) The login screen is not marking required fields appropriately with an asterisks. Note that all the fields shown in the screen shot have been set to “required” in the JomSocial Custom Profiles section.

4) This one is probably a stretch … I REALLY like the Automatic Registration feature –so seamless! But is there a way to have JFBC just use the new member’s Facebook name as is? If the name is taken, then a generated name would be offered as well as a text box for the member to enter a different name. I have tested the various Auto Username Prefix function but the formatting of the names just seem less appealing.

Thanks much.
Last edit: 12 years 10 months ago by theronin.
The topic has been locked.
Active Subscriptions:

None
12 years 10 months ago #35479 by theronin
Sorry I need to add a #5 to that list. I wanted to flip the two columns as this is a completely new site and most members will likely be logging in with FB at first. As such, I want the new members registration on the left side. I thought it would be as straightforward as flipping the <div> containers in \components\com_jfbconnect\loginregister\tmpl\default.php but that doesn't seem to be doing it. Added a couple <br />'s at the end and saw that change so it seems to be the right file and also not a cache issue.

Any suggestions? Thanks.
The topic has been locked.
Support Specialist
12 years 10 months ago #35481 by alzander

1) Any way to test JFBC on localhost + wamp + Windows 7 x64? I’ve got the curl thing all figured out it’s the FB connection that won’t even let me get to this screen. Which is all I want to do so I can format it locally. If not, no worries, just wanted to avoid the upload step.

Facebook should work just fine on localhost.. just make sure you re-run Autotune (hit the Refresh in the top right) and then save the Recommended settings. That should get things going for you locally.

2) Is there an easy way to “inheret” the default template style? Or only way is to alter loginregister.css (or override in custom.css)?

We do to some extent, but not all templates are the same.. so it's impossible to 'inherit from all of them'. Unfortunately, that means that using your own CSS or creating a template override may be necessary. We can help with any information you may need though, just let us know.

3) The login screen is not marking required fields appropriately with an asterisks. Note that all the fields shown in the screen shot have been set to “required” in the JomSocial Custom Profiles section.

This sounds like a bug.. we'll have to look into this.. I'm not sure if we mark the JomSocial required fields at all with an *, that may just be an omission from how we generate those fields.

4) This one is probably a stretch … I REALLY like the Automatic Registration feature –so seamless! But is there a way to have JFBC just use the new member’s Facebook name as is? If the name is taken, then a generated name would be offered as well as a text box for the member to enter a different name. I have tested the various Auto Username Prefix function but the formatting of the names just seem less appealing.

What do you mean the "member's Facebook name as is"? Do you mean for "John Smith", the username would be "John Smith" or maybe "John Smith123" (if there are many John Smiths)? A long time ago, spaces weren't allowed in Joomla usernames. Those are allowed now, and changing that format would be very simple. Let me know if that's what you mean, or something else.

One thing JFBConnect can't do is redirect the user to the Login/Register page if you have automatic registration enabled.. so, if the username is taken, we'll just add a number to it.. we won't detect the conflict and then allow them to edit it.

Swapping columns
I think we do floats on those columns to place them where they are, so swapping wouldn't work directly. If you still want to use the page (instead of auto-login), let me know and I can look into this further.

Glad everything's going smoothly. Honestly, we think it's really rough right now, and the upcoming v5.1 release is meant to be even easier to install and configure.. that's the plan at least :)

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

None
12 years 10 months ago #35486 by theronin

alzander wrote: What do you mean the "member's Facebook name as is"? Do you mean for "John Smith", the username would be "John Smith" or maybe "John Smith123" (if there are many John Smiths)?

Yup Alex that's exactly what I mean. And I guess if a user ends up with a suffix due to a duplicate name, they can always change it in their profiles. If I may, that would be a very useful feature though if it notifies of the duplicate, offers an alternative username and also allows the user to enter a name. Can you show me how to keep the name as is just as you described with "John Smith"?

Just as well though, if you wouldn't mind letting me know how to switch the columns that would be great in the event I need to revert back to manual registration.

Lastly, please do look into the asterisk missing from required fields in the registration form. Again, in the event I need to revert back.

Thanks very much for your attention.
The topic has been locked.
Support Specialist
12 years 9 months ago #35515 by alzander
Alright.. got some answers for ya:
Auto username of "John Smith"
First, set the Auto Username generation in JFBConnect to "first.lastname". Then, edit the /libraries/sourcecoast/utilities.php file. Around line 572, you'll see:
else if ($usernamePrefixFormat == AUTONAME_FIRSTLAST) //first.last
        {
            $firstName = SCStringUtilities::strtolower($firstName);
            $lastName = SCStringUtilities::strtolower($lastName);
            $prefix = $firstName . "." . $lastName;
        }
Change that block to:
else if ($usernamePrefixFormat == AUTONAME_FIRSTLAST) //first.last
        {
            $prefix = $firstName . " " . $lastName;
        }
This will still automatically append a number to the end of the username if it's already taken. In Normal Registration mode, the user will see this username. In Automatic mode, their account will created with the username generated.

Swap Login / Registration
Edit the /components/com_jfbconnect/views/loginregister/tmpl/loginregister.css file. Toward the top, you'll see the following blocks:
#jfbc_loginregister_userinfo.horizontal #jfbc_loginregister_existinguser
{
    width: 40%;
    float:left;
}
#jfbc_loginregister_userinfo.horizontal #jfbc_loginregister_newuser
{
    width: 55%;
    float:right;
}
Swap the float: right and float: left there and it will swap the columns.

The asterisk will take a bit more investigation, so please let us know if you need it.. we'll try to get an answer either way, but we're focused on the v5.1 release right now, so don't want to prioritize something that may not be necessary right now.

Let me know how that goes, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #35518 by theronin
Sweeeettt!! Thank you Alex! I will try this as soon as I get home and let you know my results. You rock very much.
The topic has been locked.
Support Specialist
12 years 9 months ago #35531 by alzander
No problem. Keep us posted, as always!

Thanks,
Alex
The topic has been locked.