Topic-icon Facebook login on JomSocial registration screen

Active Subscriptions:

None
I use the JomSocial registration screen with the JFBConnect buttons which appear below the registration fields. I would like to add the buttons above the registration fields (using the {JFBCLogin} tag as I am sure that many visitors only see them at the end, or don't know that the buttons can be used for registration.
Can you tell me how to do that? or is there another solution? Many thanks
The topic has been locked.
Support Specialist
7 years 2 months ago #60897 by mel
Those buttons are placed there by JomSocial. If you want to change the position, you will have to create a template override of their registration page.

The file you want is the /components/com_community/templates/jomsocial/layouts/register/base.php (or substitute "jomsocial" folder for whatever template you're using). Around line 107 is the following block of code that you can move up:
<?php if ( $fbHtml ) { ?>
<div class="joms-form__group">
   <span></span>
   <?php echo $fbHtml;?>
</div>
<?php } ?>

After you make the code change, I suggest you make a new JomSocial template with the changes so that they don't get lost when you upgrade JomSocial in the future.

-Melissa
The topic has been locked.
Active Subscriptions:

None
7 years 2 months ago #60920 by jersmith
Many thanks - that is perfect. I copied the block of code and now have buttons at the top and bottom of the form.
The topic has been locked.
Support Specialist
7 years 2 months ago #60923 by mel
Glad I could help :)
The topic has been locked.