× Joomla Facebook Connect support forum

Topic-icon Add JFBConnect FB Button to Jomsocial Registration Page

Active Subscriptions:

None
15 years 7 months ago - 15 years 7 months ago #5410 by rdbean
Hi Guys,

I'm using a Pop Up Log In so I can't use the included module, but for registration I have the pop up redirecting to the JomSocial Standard registration page.

I saw that I can add the sign up / in with Facebook button using the following code:
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php'); 
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance(); 
echo $jfbcLibrary->getLoginButton();

So my question is what file do I need to edit?

Thanks,

Rich

Edit: Would need to have this on two pages I guess, both the com_community tak register and the default landing page for Jomsocial.
Last edit: 15 years 7 months ago by rdbean.
The topic has been locked.
Support Specialist
Sorry for the delayed response.

For the 'front page' of JomSocial, to add the JFBConnect Facebook link, you'll want to edit the frontpage.guests.php file. This is the header area on this page, which includes the "Join Now" image/button/feature overview area on the left and the Login form on the right.

The registration page is the register.index.php file

Both of these can be found in your specific JomSocial template directory, which, if you're using the default template is /components/com_community/templates/default

Let us know if you have any other questions!
The topic has been locked.