<body id="secondary"><script type="text/javascript">
if(document.namespaces) {
// IE
document.namespaces.add("fb", "http://www.facebook.com/2008/fbml");
} else {
var htmlElement = document.getElementsByTagName('html')[0];
htmlElement.setAttribute('xmlns:fb', 'http://www.facebook.com/2008/fbml');
}
</script>
<h3>JFBCLogin</h3>
<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>
<script type="text/javascript">
window.addEvent('domready', function()
{FB_RequireFeatures(["XFBML"],
function() {
FB.Facebook.init("998dd845a367d70059086a8ef4165a70", "/component/jfbconnect/?view=xdreceiver&format=raw");
});
})
;</script>
<script type="text/javascript">
function fb_login_button_click()
{
FB.Facebook.get_sessionState().waitUntilReady(
function() {
var fbUserLoginLink = "/component/jfbconnect/?task=loginFacebookUser&view=xdreceiver&return=L2NvbW11bml0eQ%3D%3D";
window.location = fbUserLoginLink;
});
}
function logout_button_click()
{
redirect_to_jfbconnect_logout(); }
function redirect_to_jfbconnect_logout()
{
window.location = '/component/jfbconnect/?task=logout&return=aW5kZXgucGhwP29wdGlvbj1jb21fY29udGVudCZ2aWV3PWZyb250cGFnZQ%3D%3D';
}
</script>
<form action="http://www.theskipper2.com/" method="post" name="login" id="form-login" >
<fieldset class="input">
<div id="form-login-username">
<label for="modlgn_username">Username</label><br />
<input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" size="18" />
</div>
<div id="form-login-password">
<label for="modlgn_passwd">Password</label><br />
<input id="modlgn_passwd" type="password" name="passwd" class="inputbox" size="18" alt="password" />
</div>
<input type="submit" name="Submit" class="button" value="Login" />
</fieldset>
<input type="hidden" name="option" value="com_user" />
<input type="hidden" name="task" value="login" />
<input type="hidden" name="return" value="L2NvbW11bml0eQ==" />
<input type="hidden" name="f1ce410b7b63e2592bac9aae7955efec" value="1" /></form>
Login using Facebook</a>
<fb:login-button onlogin="javascript:fb_login_button_click();"></fb:login-button>
<ul>
<li>
<a href="/community/register">Register for this site</a>
</li>
</ul>
<h3>JFBCInvite</h3>
<fb:serverfbml>
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action=""
method="POST"
invite="true"
type="XFBML"
content="Come join me on this site! <fb:req-choice url='' label='Confirm' />">
<fb:multi-friend-selector
showborder="false"
actiontext="Invite your friends to join you on this site!">
</fb:request-form>
</fb:fbml>
</script>
</fb:serverfbml>
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
<script type="text/javascript" src="media/system/js/mootools.js"></script>
fezzicnex wrote: how did you solve this? im having the same problem but im not using mootools. im using ja_purity sukerfish menus.
aytonmm wrote: Sorry for the bother... ended up fixing the issue by myself. In case anyone else runs in to the same issue, I noticed that the line calling mootools was wrong in the template that I am using:
<script type="text/javascript" src="/media/system/js/mootools.js"></script>
Changed to:
<script type="text/javascript" src="media/system/js/mootools.js"></script>
just removing the preceding forward slash, so that it could actually find the script.
Thanks,
Ayton
dalekurt wrote: Hi Ayton,
Can you recall what file you modified to remove the forward slash, I'm experiencing a similar issue with custom template I am working where the facebook connect button shows up on the Japurity template but will not on my custom template. My template had a second call for a mootool script which I removed however the result is the same.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.