× Joomla Facebook Connect support forum

Topic-icon How to add "connect with facebook" button elsewhere than login module?

Active Subscriptions:

None
Hello,
I want to add the "connect with facebook" button (the one in the login module) in other parts of my site, e.g. below a big "register" button I have in the site header.
Is this possible? I'm not a programmer, but if there is a place where I can get the code necessary to generate the button all I will need to do will be to paste it here and there...

Regards,
Niccolò
The topic has been locked.
Support Specialist
Yup, we get that question a lot. Unfortunately, right now, you do need to add a little bit of PHP code. With the 3.1 release of JFBConnect, we'll have an easier method to put the button in different spots. For now, check out this link. If you have other questions, just let us know!
www.sourcecoast.com/extensions/jfbconnec...estions#login-button
The topic has been locked.
Active Subscriptions:

None
mhhh
your tutorial tells about inserting the php code in the template file or other file, couldn't I insert it into an article or maybe a custom html module?

I'm asking because I tried to do so but the code is not working, what I did was inserting the given code between php tags and then pasting it into a custom html module code, instead of rendering the button all I see on frontend is this: getLoginButton();?>
The topic has been locked.
Support Specialist
Joomla doesn't let you insert PHP into an article or the Custom HTML module, so that's not possible. Until we come out with our replacement tag {JFBCLogin}, which will be part of the 3.1 release, we'd recommend using mod_php if you want to insert the login button into a module and place that on your page. You can get mod_php at the link below:
www.fijiwebdesign.com/component/option,c...ew/gid,90/Itemid,76/
The topic has been locked.