× Joomla Facebook Connect support forum

Topic-icon Facebook Connect Button Placement in template file

Active Subscriptions:

None
I need some help locating the file that contains the code for jomsocial facebook connect button and replace it with your tag. Here is link to the site and jomsocial button is still active for you to see and what I want to do is replace that button location with your Facebook connect tag. Could please tell what file this located in.
knoxvilletaekwondoacademy.com/index.php?...frontpage&Itemid=232
Thanks
The topic has been locked.
Support Specialist
13 years 3 months ago #7224 by alzander
The file you're looking for is:
/components/com_community/templates//frontpage.guests.php

In this file, look for the below code toward the very bottom:

And simply replace it with:
{JFBCLogin}

The best way to make this change is to use a template override. To do that, you should copy the file above to /templates//html/com_community/
For more information on template overrides, and why to use them, see the template overrides section of:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

Let us know how that goes!
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #8248 by mario3252
I have the same problem my site is www.cagebook.com please help I am a totally newbie to jomsocial and joomla thanks you guys. I tried looking for that file in my site and its a no go.
The topic has been locked.
Support Specialist
13 years 2 months ago #8253 by alzander
You're using a pretty old version of JomSocial (1.5.x), which we don't have a copy of. However, we have copies of 1.1.x and 1.6.x, and that file exists in both. Please note, where <YOUR JS TEMPLATE> is, replace that with the theme you've chosen in JomSocial. JS comes with a few themes: "default", "bubble", "blueface", and "blackout". In both our versions, that file exists, which means it's likely in 1.5 as well.

Please try looking again, as I'm pretty sure it's there. Once you're in there, do a search for "RESEND", which will get you to the area where the "Resend Activation Code" link is on the page, and right under that line, try adding the { JFBCLogin} tag (no spaces).

Hopefully that helps you find it, but if not, let us know.
The topic has been locked.
Active Subscriptions:

None
13 years 2 months ago #8264 by mario3252
here is the code in that section of my site i tried but no luck

<a href="<?php echo CRoute::_( 'index.php?option=com_community&view=register&task=activation' ); ?>" class="login-forgot-username">
<span><?php echo JText::_('CC RESEND ACTIVATION CODE'); ?></span>
</a> )
</form>
<?php
if( $config->get('fbconnectkey') && $config->get('fbconnectsecret') )
{
?>
<script type="text/javascript" src="static.ak.connect.facebook.com/js/api_li...FeatureLoader.js.php">
<script type="text/javascript">
window.addEvent('domready', function()
{
FB_RequireFeatures(["XFBML"], function() {
FB.Facebook.init( "<?php echo $config->get('fbconnectkey');?>" , "<?php echo CRoute::_('index.php?option=com_community&view=connect&task=receiver&tmpl=component');?>");
});
});

function FBLogin()
{
FB.Facebook.get_sessionState().waitUntilReady(
function() {
joms.connect.update();
});
}
</script>
<div style="text-align: center;">
<div class="white">
<fb:login-button size="large" background="white" length="long" onlogin="FBLogin();"></fb:login-button>
</div>
</div>
<?php
}
?>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
The topic has been locked.
Support Specialist
13 years 2 months ago #8272 by alzander
Mario,
I responded in the other thread. Please don't post the same messages twice. It slows down support for everyone:
www.sourcecoast.com/forums/topic?id=1871#p8271

Thanks!
The topic has been locked.