Topic-icon Register with facebook

Active Subscriptions:

None
10 years 7 months ago #36302 by ncbeeny
How do I get the register with facebook link at the top of the register form? Like it is on this site.

(www.sourcecoast.com/register) - without being logged in obviously!

Thanks
The topic has been locked.
Support Specialist
10 years 7 months ago #36309 by alzander
Replied by alzander on topic Register with facebook
You'll need to add it manually to the Registration template file, but it's a pretty simple process. To do so properly, create a template override of the registration page by copying:
/components/com_users/views/registration/tmpl/default.php
to
/templates/<YOUR_TEMPLATE>/html/com_users/registration/default.php (create any directories that don't exist).

Then, edit that file. At the top, you'll see:
<?php if ($this->params->get('show_page_heading')) : ?>
	<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
<?php endif; ?>

	<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate" enctype="multipart/form-data">
<?php foreach ($this->form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?>
Update it like below and add the {JFBCLogin} tag in the blank area, with any text you may want, like:
<?php if ($this->params->get('show_page_heading')) : ?>
	<h1><?php echo $this->escape($this->params->get('page_heading')); ?></h1>
<?php endif; ?>
Or register with: {JFBCLogin}
	<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate" enctype="multipart/form-data">
<?php foreach ($this->form->getFieldsets() as $fieldset): // Iterate through the form fieldsets and display each one.?>
You can add a div or style that however you want, but hopefully the above gets you started.

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

None
10 years 7 months ago #36310 by ncbeeny
Replied by ncbeeny on topic Register with facebook
Ok thanks, I thought it might be something like this.
The topic has been locked.
Support Specialist
10 years 7 months ago #36330 by alzander
Replied by alzander on topic Register with facebook
No problem. I know it's a little work, but hopefully that guides you through it. If you have any questions, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.