Topic-icon soical button for community builder register page

Active Subscriptions:

None
Hi,

I m using CB 2.0.4

i try to follow :
www.sourcecoast.com/jfbconnect/docs/thir...or-community-builder

"How do I add the social login buttons to the CB Registration page?

To add the login buttons to the CB Registration page, you'll need to edit /components/com_comprofiler/comprofiler.html.php Around line 1416, add the {JFBCLogin} line below:"

i added those line at 1416 but nothing happen at my register page.

Could someone advice me how can i go about it ?

thank you
The topic has been locked.
Support Specialist
11 years 4 months ago #50248 by mel
That document is slightly outdated for the newest version of CB, but the concept is still the same. Around line 940 of the same file mentioned in the help doc /components/com_comprofiler/comprofiler.html.php, add the JFBCLogin tag.

The existing code should look like this:
$return							=	$_PLUGINS->callTemplate( $cbTemplate, 'RegisterForm', 'drawProfile', array( &$user, $tabcontent, $registrationForm, $headerMessage, CBTxt::Th( 'LOGIN_REGISTER_TITLE', 'Welcome. Please log in or sign up:' ), CBTxt::Th( 'REGISTER_TITLE', 'Join us!' ), CBTxt::Th( 'UE_REGISTER', 'Sign up' ), $moduleContent, $topIcons, $bottomIcons, $footerMessage, $formatting, $results ), $output )
										.	cbPoweredBy();

		echo $return;

Modify it to add the JFBCLogin tag like this to place the Social Login buttons at the top of the register form:
$return							=	$_PLUGINS->callTemplate( $cbTemplate, 'RegisterForm', 'drawProfile', array( &$user, $tabcontent, $registrationForm, $headerMessage, CBTxt::Th( 'LOGIN_REGISTER_TITLE', 'Welcome. Please log in or sign up:' ), CBTxt::Th( 'REGISTER_TITLE', 'Join us!' ), CBTxt::Th( 'UE_REGISTER', 'Sign up' ), $moduleContent, $topIcons, $bottomIcons, $footerMessage, $formatting, $results ), $output )
										.	cbPoweredBy();

        echo "{JFBCLogin text=Register using:}"; // INSERT THIS LINE
		echo $return;

Let me know if you still have trouble after this, but I just did this on my test machine with CB 2.0.4 and it worked fine. I will go ahead and update the documentation also. Sorry for the confusion.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50251 by joeofall
Thank you mel!

it work!! :D
The topic has been locked.
Support Specialist
11 years 4 months ago #50253 by mel
Great. Once again, sorry for the confusion. I've updated the documentation page.

-Melissa
The topic has been locked.