× Joomla Facebook Connect support forum

Topic-icon Community builder field defaults

Active Subscriptions:

None
14 years 4 weeks ago #22489 by douden
Hi All,

Have been setting up JFBConnect with CB 1.8 profiles.

I have some custom select boxes that I want auto populated during registration.
These all seem to be blank during auto register and come defaulted as blank during Normal registration modes. How can I get these defaults to be populated?

CB field settngs
screencast.com/t/aPjcLyiN2O1

Normal Registration
www.screencast.com/t/v0tdLmYqa

Auto Registration
screencast.com/t/76wS5oIGPJ
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22573 by alzander
Douglas,
Sorry for the delay. We'll have to do some more testing to see why the default isn't being filled out properly. The default value should definitely be filled out when the auto-registration is enabled (I just looked at the code that *should* be doing that..).

For the pre-filled registration fields, we do tell Community Builder to display those fileds by itself, but it's possible we're not properly having it set the defaults.

We'll let you know what we find, but it may take a few days to get a good answer to you.

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

None
14 years 3 weeks ago #22627 by douden
Hi Alex,

Were you able to reproduce this problem on your end? I will pair down the sites extensions tomorrow and see if a certain module or plugin is causing the issue.
Will post back and let you know what I find.

Thanks,

Doug
The topic has been locked.
Active Subscriptions:

None
14 years 3 weeks ago #22640 by chenau
How do I setup JFB to work with community builder?
The topic has been locked.
Support Specialist
14 years 3 weeks ago #22704 by alzander
Douglas,
Sorry for the delay. We're working on finalizing the 4.2.2 release, which fixes some common issues we've heard about. It will be in testing all day tomorrow and out on Thursday if all goes well. I'll be looking more into your issue tomorrow now that that release is just about ready, and hopefully have some good ideas for you then.

Cheryl,
For setting up general Community Builder integration, you simply need to install the Community Builder Profile Plugin in the profile_plugins zip file that came with main zip package you downloaded. For more information about exactly how to configure it, please see the page below:
www.sourcecoast.com/jfbconnect/docs/conf...n-guide/overview-tab

Hope that helps, but if you have other questions, let us know. It's probably preferable to create a new thread for any questions, unless you're running into the same issues as Douglas above.

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

None
14 years 2 weeks ago #22899 by douden
Hi Alex,

I have hacked away at the the jfbc community builder plugin and now have custom fields populate default values in normal registration.
During automatic registration they are set to default if one is provided and is not mapped with the facebook -> field mapping already defined.

If anyone would like a patch or diff just let me know and I will either post or PM it over depending on what is allowed.

Next question. Does JFBConnect have a mechanism to send a fbuserA to fbuserB message? Given that fbUserA is logged into the website and I have fbUserB facebookId ? What are the requirements for this ? SSL certs ? etc ?

Thanks,

Douglas
The topic has been locked.
Support Specialist
14 years 2 weeks ago #22919 by alzander
Douglas,
Wow. Had no intention of making you go through that. The Default Fields was one (of 2) top priorities for things to look into today. If you wouldn't mind sending over the diff of what you did, we'll gladly take a look and provide any recommendations we see. We'll also be incorporating this into the next release as it's definitely something that should be happening.

As for messaging, no, we don't currently have that ability. It's something we've discussed, but haven't really been able to gauge interest for. The current plan for us is to have a customize-able Requests feature in the future, so users can send messages to any of their Facebook friends (not just specifically part of the site) with a custom message. Similar to the Send button, but a little more configurable.

If you have specifics about how you'd like it to work, we can likely help you implement (or get close to) something you're looking for. Specifically:
* Where would the message be initiated from? I'm assuming just a button with a popup, but if other, let me know
* Would it just be a message, or would a link be included? Would the link be fixed (to the current page, or home page, for instance) or be configurable to anywhere?
* Would the message be editable by the user? Would there be a default?

Lots of questions, but hopefully it gets your thoughts going, and we can get something going that will work for you!

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

None
14 years 2 weeks ago #22950 by douden
Left file: new\plg_jfbcprofiles_communitybuilder_j1.5_v4.2.0\communitybuilder.php
Right file: orig\plg_jfbcprofiles_communitybuilder_j1.5_v4.2.0\communitybuilder.php
128c129
<             $hideField = $cbField->type == 'primaryemailaddress' || $cbField->type == 'password' || $cbField->type == 'image' || $cbField->name == 'username'|| $cbField->name == 'name';
---
>             $hideField = $cbField->type == 'primaryemailaddress' || $cbField->type == 'password' || $cbField->type == 'image' || $cbField->name == 'username';
130,131c130
< 			//if ($cbField->published && $cbField->profile && $cbField->registration && !$hideField)
< 			if ($cbField->published && $cbField->registration && !$hideField)
---
>             if ($cbField->published && $cbField->profile && $cbField->registration && !$hideField)
166,169d164
< 					if ($cbField->type != "predefined")
< 					{
< 						$cbTabs->_initFieldToDefault($cbField, $cbUser, 'register');	
< 					}
275d266
<                     {    
277,278d267
< 					}
< 					else{ //it's null so try and populate it with the default
280,283d268
< 						if( $oField->default != null ){
< 							$postArray[$fieldName] = $oField->default; //set the default value
< 						}
< 					}

Hi Alex,

Here is my diff.

First change is to hide the name field after I enabled showing non-profile fields in the normal registration process.
Second change enables showing hidden profile fields that are marked for registration.
Third change is during normal registration to populate the field defaults for the html that is displayed on screen
Fourth change is if the post value coming in is null check to see if it have a default in cb and set it.This works for both the normal and automatic registration process.

I also took advantage of the semi automatic forum post to remove some of the data during the default registration from your post here. Thanks for that one. www.sourcecoast.com/forums/jfbconnect/jf...automatic?p=1#p22014

Cheers,

Doug
The topic has been locked.