× Joomla Facebook Connect support forum

Topic-icon Field display at registration (urgent)

Active Subscriptions:

None
12 years 2 months ago #19678 by andwhi
Yeah I guess my situation is a little different as the username is a key element in the profile because I use it as a nickname. I can live with this for now but would be keen to know when you have an update.
I have another related but different question. I have noticed a big drop off between the amount of users installing the app to actually registering. My feedback has been that they think they have already registered once the allow the app access to their information despite a big register here arrow on the front page pointing to the facebook login button. Unfortunately, there are a couple of reasons I need them to register separately which means I have to use the "create full joomla user" option.
My question is... can I create a menu item for the JFBC register page so i can style it into a homepage? This would take a step out of the registration process for me.
Thanks for your help so far.
Andy
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #19683 by mtk

andwhi wrote: Yeah I guess my situation is a little different as the username is a key element in the profile because I use it as a nickname. I can live with this for now but would be keen to know when you have an update.
I have another related but different question. I have noticed a big drop off between the amount of users installing the app to actually registering. My feedback has been that they think they have already registered once the allow the app access to their information despite a big register here arrow on the front page pointing to the facebook login button. Unfortunately, there are a couple of reasons I need them to register separately which means I have to use the "create full joomla user" option.
My question is... can I create a menu item for the JFBC register page so i can style it into a homepage? This would take a step out of the registration process for me.
Thanks for your help so far.
Andy

Hello Andy,
it is not possible to link into that page, but it is possible to use a template override to style that page as you like.

Mati
The topic has been locked.
Support Specialist
12 years 2 months ago #19723 by alzander
Andy,
We implemented the code for hiding the username (and a few other similar fields) for our upcoming JLinked release. This will go into the next big JFBConnect release as well, but you should be able to make the change now. This is untested with JFBConnect, but should work the same as our JLinked tests.

In the /plugins/jfbcprofiles/communitybuilder.php file, around line 112, you'll see:
if ($cbField->required && $cbField->published && $cbField->profile && $cbField->registration && (!array_key_exists($cbField->fieldid, $socialFieldMap)))
Change that to the following 2 lines:
$hideField = $cbField->type == 'primaryemailaddress' || $cbField->type == 'password' || $cbField->type == 'image' || $cbField->name == 'username';
            if ($cbField->required && $cbField->published && $cbField->profile && $cbField->registration && (!array_key_exists($cbField->fieldid, $socialFieldMap) && !$hideField)
There's a lot more changes and improvements coming to the profile system for flexibility over what fields show. It will all be in the 4.2 release (due in April). We'll be testing it out and getting feedback from our JLinked users on the new implementation before then.

As Mati said, there's no way to create a link to JFBC's Login/Register page. That page only works if the user has already authenticated your FB Application. If they haven't, the information we try to pull back from Facebook about the user will fail. They have to click the Login With Facebook button first for things to be setup properly.

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

None
12 years 2 months ago #19821 by andwhi
Thanks for the update.
Are you sure thats the right line? I have that statement on 223 but when I replace it I get a syntax error.
I'm no developer so not sure how to rectify that.
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #19822 by mtk

andwhi wrote: Thanks for the update.
Are you sure thats the right line? I have that statement on 223 but when I replace it I get a syntax error.
I'm no developer so not sure how to rectify that.

Are you using later version 4.1.2?
what is the error you are getting?

Mati
The topic has been locked.
Support Specialist
12 years 2 months ago #19848 by alzander
Andy,
Your right. I was missing an extra ) at the end of the line. Update it to:
if ($cbField->required && $cbField->published && $cbField->profile && $cbField->registration && (!array_key_exists($cbField->fieldid, $socialFieldMap) && !$hideField))
There are 2 )) at the very end. Sorry about that. It looks to have been cut off when I pasted it.

Thanks,
Alex
The topic has been locked.