Optimization of the facebook connect on Forumotion forums
+4
Beyonder
YoshiGM
SarkZKalie
The Godfather
8 posters
Page 1 of 1
Optimization of the facebook connect on Forumotion forums
Hello,
I am pleased to announce that we have made an optimization of the Forumotion Facebook Connect code. A consolidation of the codes for a better performance and an ease of reading and updating was also carried out.
This optimization is natively included in the basic templates of all Forumotion forums regardless of the version of the forum. Administrators who have not customized the templates of their forums before the date of publication of this announcement are therefore not affected by the changes that will follow.
For administrators who have customized one of the templates listed below before before March 9, 2017, they must make the following changes manually to the templates listed in order to be able to correctly use the Facebook Connect button on their forums .
Note that this optimization also concerns the improvement of the quick login display on the phpBB2 forums.
Regards,
The Forumactif Team
I am pleased to announce that we have made an optimization of the Forumotion Facebook Connect code. A consolidation of the codes for a better performance and an ease of reading and updating was also carried out.
This optimization is natively included in the basic templates of all Forumotion forums regardless of the version of the forum. Administrators who have not customized the templates of their forums before the date of publication of this announcement are therefore not affected by the changes that will follow.
For administrators who have customized one of the templates listed below before before March 9, 2017, they must make the following changes manually to the templates listed in order to be able to correctly use the Facebook Connect button on their forums .
Note that this optimization also concerns the improvement of the quick login display on the phpBB2 forums.
Regards,
The Forumactif Team
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
phpBB3 Version :
Note: When we refer to a block XXX this means all the block contents starting from opening tag <!-- BEGIN XXX --> to the closing tag <!-- END XXX -->
- Inindex_body
- Remove:
All blocks switch_fb_connect
- Remove:
The block switch_fb_index_login
- After:
Each of these occurrences (there are 2 in the page) of- Code:
{S_HIDDEN_FIELDS}<input class="mainoption button1" type="submit" name="login" value="{L_LOGIN}" />
- Add the code:
- Code:
<!-- BEGIN switch_social_login -->
<div class="social_btn">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
<!-- END switch_social_login -->
- In overall_footer_end
- Replace:
The content of the bloc switch_facebook_login
- With:
- Code:
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
- Remove:
The block switch_facebook_logout_TMP
- In profile_add_body
- Replace:
The block switch_fb_account_not_linked
- With:
- Code:
<!-- BEGIN switch_fb_account_not_linked -->
<div class="fb-login-button" onlogin="facebook_link">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</div>
<!-- END switch_fb_account_not_linked -->
- Remove:
The block switch_fb_connect
- Remove:
The block switch_preferences_menu
- In Portal > mod_login
- Remove:
The blocks (there are 2) switch_fb_connect_login
- Remove:
The block switch_fb_widget_login
- After:
- Code:
<dd><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd>
</dl>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<dl>
<dt> </dt>
<dd><div class="fb_or_widget left">{switch_login.switch_social_login.L_OR}</div></dd>
</dl>
<dl>
<dt> </dt>
<dd>
<div class="social_btn left">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</dd>
</dl>
<!-- END switch_social_login -->
- After:
- Code:
<p align="center"><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></p>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<div class="mt10 center">
<div class="social_btn">
<div class="fb_or">{switch_login_small.switch_social_login.L_OR}</div><br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</div>
<!-- END switch_social_login -->
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
inVision Version :
Note: When we refer to a block XXX this means all the block contents starting from opening tag <!-- BEGIN XXX --> to the closing tag <!-- END XXX -->
- In index_body
- Delate:
All blocs switch_fb_connect
- Delate:
The bloc switch_fb_index_login
- After:
Each of these occurrences (there are 2 in the page)- Code:
{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" />
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<div class="mt10">
<div class="social_btn">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</div>
<!-- END switch_social_login -->
- In overall_footer_end
- Replace:
The content of the bloc switch_facebook_login
- By:
- Code:
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
- In profile_add_body
- Replace:
The bloc switch_fb_account_not_linked
- By:
- Code:
<!-- BEGIN switch_fb_account_not_linked -->
<div class="fb-login-button" onlogin="facebook_link">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</div>
<!-- END switch_fb_account_not_linked -->
- Delate:
The bloc switch_fb_connect
- Delate:
The bloc switch_preferences_menu
- In Portal > mod_login,
- Delate:
All blocs (There are 2) switch_fb_connect_login
- Delate:
The bloc switch_fb_widget_login
- After:
- Code:
<dd><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button" /></dd>
</dl>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<dl>
<dd class="center">
<div class="social_btn">
<div class="fb_or">{switch_login.switch_social_login.L_OR}</div>
<br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
<br />
</div>
</dd>
</dl>
<!-- END switch_social_login -->
- After:
- Code:
<p align="center"><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button" /></p>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<div class="mt10 center">
<div class="social_btn">
<div class="fb_or">{switch_login_small.switch_social_login.L_OR}</div>
<br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
<br />
</div>
</div>
<!-- END switch_social_login -->
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
phpBB2 Version :
Note: When we refer to a block XXX this means all the block contents starting from opening tag <!-- BEGIN XXX --> to the closing tag <!-- END XXX -->
- In index_body,
- Delate:
Les blocs switch_fb_connect_no
- Delate:
The bloc switch_fb_connect
- Delate:
The bloc switch_fb_index_login
- After:
- Code:
<!-- BEGIN switch_user_login_form_header -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
- Add:
- Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td width="50%" valign="top" align="{switch_user_login_form_header.V_ALIGN}" class="row1">
<table>
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
<!-- BEGIN switch_social_login -->
<td width="10%" align="center" valign="middle" class="row1">
<span class="genmed fb_or">{switch_user_login_form_header.switch_social_login.L_OR}</span>
</td>
<td width="40%" class="align_gauche row1">
<div class="social_btn">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</td>
<!-- END switch_social_login -->
</tr>
</table>
- After:
- Code:
<!-- BEGIN switch_user_login_form_footer -->
<form action="{S_LOGIN_ACTION}" method="post" name="form_login">
- Add:
- Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="user_login_form forumline">
<tr>
<td width="50%" valign="top" align="right" class="row1">
<table>
<tr>
<td><span class="genmed">{L_USERNAME}:</span> </td>
<td><input class="post" type="text" size="10" name="username"/> </td>
<td>
<input class="radio" type="checkbox" name="autologin" {AUTOLOGIN_CHECKED} />
<span class="gensmall">{L_AUTO_LOGIN}</span>
</td>
</tr>
<tr>
<td><span class="genmed">{L_PASSWORD}:</span> </td>
<td><input class="post" type="password" size="10" name="password"/> </td>
<td>{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" name="login" value="{L_LOGIN}" /></td>
</tr>
</table>
</td>
<!-- BEGIN switch_social_login -->
<td width="10%" align="center" valign="middle" class="row1">
<span class="genmed fb_or">{switch_user_login_form_footer.switch_social_login.L_OR}</span>
</td>
<td width="40%" class="align_gauche row1">
<div class="social_btn">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</td>
<!-- END switch_social_login -->
</tr>
</table>
- In overall_footer_end
- Replace:
The content of the bloc switch_facebook_login
- By:
- Code:
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
- In profile_add_body
- Replace:
The bloc switch_fb_account_not_linked
- With:
- Code:
<!-- BEGIN switch_fb_account_not_linked -->
<div class="fb-login-button" onlogin="facebook_link">{switch_preferences_menu.switch_fb_connect.switch_fb_account_not_linked.L_FB_LOGIN_BUTTON}</div>
<!-- END switch_fb_account_not_linked -->
- Delate:
The bloc switch_fb_connect
- Delate:
The bloc switch_preferences_menu
- In Portal > mod_login
- Delate:
The 2 blocs switch_fb_connect_login
- Delate:
The bloc switch_fb_widget_login
- After:
- Code:
<tr align="center">
<td colspan="2">
<span class="gensmall"><a class="gensmall" href="{U_SEND_PASSWORD}" rel="nofollow">:: {L_SEND_PASSWORD}</a></span>
</td>
</tr>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<tr align="center">
<td colspan="2">
<div class="social_btn">
<div class="fb_or_widget">{switch_login.switch_social_login.L_OR}</div> <br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</td>
</tr>
<!-- END switch_social_login -->
- After:
- Code:
<tr align="center">
<td><span class="gensmall"><a class="gensmall" href="{U_SEND_PASSWORD}" rel="nofollow">:: {L_SEND_PASSWORD}</a></span></td>
</tr>
- Add:
- Code:
<!-- BEGIN switch_social_login -->
<tr align="center">
<td colspan="2">
<div class="social_btn">
<div class="fb_or">{switch_login_small.switch_social_login.L_OR}</div> <br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</td>
</tr>
<!-- END switch_social_login -->
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
punBB Version :
Note: When we refer to a block XXX this means all the block contents starting from opening tag <!-- BEGIN XXX --> to the closing tag <!-- END XXX -->
- In index_body
- Replace:
All blocs switch_fb_connect
- with:
- Code:
<!-- BEGIN switch_social_login -->
<div class="mt10">
<div class="social_btn">
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
</div>
</div>
<!-- END switch_social_login -->
- Delate:
The block switch_fb_index_login
- In overall_footer_end
- Replace:
The content of the bloc switch_facebook_login
- by:
- Code:
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.byentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
- Delate:
The block switch_facebook_logout_TMP
- In profile_add_body
- Delate:
The block switch_fb_connect
- Delate:
The block switch_preferences_menu
- In Portail > mod_login
- Delate:
The 2 blocs switch_fb_connect_login
- Delate:
The block switch_fb_widget_login
- After :
- Code:
<dl>
<dd style="text-align:center;"><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></dd>
</dl>
- Add :
- Code:
<!-- BEGIN switch_social_login -->
<dl>
<dd class="center">
<div class="social_btn">
<div class="fb_or">{switch_login.switch_social_login.L_OR}</div> <br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
<br />
</div>
</dd>
</dl>
<!-- END switch_social_login -->
- After :
- Code:
<p align="center"><input type="submit" name="login" tabindex="6" value="{L_LOGIN}" class="button1" /></p>
- Add :
- Code:
<!-- BEGIN switch_social_login -->
<div class="mt10 center">
<div class="social_btn">
<div class="fb_or">{switch_login_small.switch_social_login.L_OR}</div> <br />
<!-- BEGIN fb_connect -->
<div class="fb-login-button"></div>
<!-- END fb_connect -->
<br />
</div>
</div>
<!-- END switch_social_login -->
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
Classic mobile version :
Note: When we refer to a block XXX this means all the block contents starting from opening tag <!-- BEGIN XXX --> to the closing tag <!-- END XXX -->
- In overall_footer
- After:
- Code:
{PROTECT_FOOTER}
<div class="application_footer_spacer"></div>
</div>
</div>
</div>
- Add :
- Code:
<!-- BEGIN switch_facebook_login -->
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
<!-- END switch_facebook_login -->
- In overall_header
- Before :
- Code:
{HOSTING_JS}
</head>
- Add :
- Code:
<!-- BEGIN switch_fb_login -->
<script src="https://connect.facebook.net/{switch_fb_login.FB_LOCAL}/all.js" type="text/javascript"></script>
<script src="{switch_fb_login.JS_FB_LOGIN}" type="text/javascript"></script>
<!-- END switch_fb_login -->
Modern mobile version :
- In overall_footer
- Before :
- Code:
</body>
- Add :
- Code:
<!-- BEGIN switch_facebook_login -->
<div id="fb-root"></div>
<script type="text/javascript">
$(document).ready( function() {
$('div.fb-login-button, span.fb-login-button').attr({
"data-scope": "{switch_facebook_login.FB_SCOPE}",
"data-max-rows": "{switch_facebook_login.FB_MAX_ROWS}",
"data-size": "{switch_facebook_login.FB_BUTTON_SIZE}",
"data-show-faces": "{switch_facebook_login.FB_SHOW_FACES}",
"data-auto-logout-link": "{switch_facebook_login.FB_AUTO_LOGOUT}"
});
$('div.fb-login-button, span.fb-login-button').each(function() {
if(typeof $(this).attr('onlogin') == typeof undefined || $(this).attr('onlogin') === false) {
$(this).attr('onlogin', '{switch_facebook_login.FB_ONLOGIN}');
}
if($(this).html() == '') {
$(this).html('{switch_facebook_login.FB_LABEL}');
}
});
FB.init({
appId : "{switch_facebook_login.FB_APP_ID}",
cookie : {switch_facebook_login.FB_COOKIE},
xfbml : {switch_facebook_login.FB_XFBML},
oauth : {switch_facebook_login.FB_OAUTH},
version : '{switch_facebook_login.FB_VERSION}'
});
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/{switch_facebook_login.FB_LOCAL}/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
});
function onLoginFB() {
window.location.replace('{switch_facebook_login.FB_ONLOGIN_URL}')
}
</script>
<!-- END switch_facebook_login -->
- In overall_header
- Before :
- Code:
{HOSTING_JS}
</head>
- Add :
- Code:
<!-- BEGIN switch_fb_login -->
<script src="https://connect.facebook.net/{switch_fb_login.FB_LOCAL}/all.js" type="text/javascript"></script>
<script src="{switch_fb_login.JS_FB_LOGIN}" type="text/javascript"></script>
<!-- END switch_fb_login -->
The Godfather- Administrator
- Posts : 5343
Reputation : 846
Re: Optimization of the facebook connect on Forumotion forums
Sorry, I don't get it. What does 'Delate' means? Do the same, right?
Re: Optimization of the facebook connect on Forumotion forums
TheGodFather had a typing error.. The correction is DeleteSarkZKalie wrote:Sorry, I don't get it. What does 'Delate' means? Do the same, right?
Thanks for this update!
I really appreciate all work to upgrade our forums: verygood:
Re: Optimization of the facebook connect on Forumotion forums
So I would have to manually put this all in for what?....
Re: Optimization of the facebook connect on Forumotion forums
If you have not modified templetes before March 9, 2017 do not do anything
Re: Optimization of the facebook connect on Forumotion forums
Im still confused is this for members logging in with FB?...jucarese wrote: If you have not modified templetes before March 9, 2017 do not do anything
Re: Optimization of the facebook connect on Forumotion forums
Hagoromo Otsutsuki wrote:Im still confused is this for members logging in with FB?...jucarese wrote: If you have not modified templetes before March 9, 2017 do not do anything
Only for founders that edited the templates in their forums before that date
Re: Optimization of the facebook connect on Forumotion forums
It is for Facebook Connect. The codes have been merged for better performance and to make it easier to read and update.Hagoromo Otsutsuki wrote:Im still confused is this for members logging in with FB?...jucarese wrote: If you have not modified templetes before March 9, 2017 do not do anything
If you had not modified your templates before the date of this announcement, you do not have to do anything.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Optimization of the facebook connect on Forumotion forums
If i'm using Ange's theme , do i need to do anything with the codes?
Graphic Design Section Rules || Becoming a Designer || Graphic Requests
Graphics Request Form
Make sure to check out our FREE Graphic's Gallery
No support provided via PM!
Re: Optimization of the facebook connect on Forumotion forums
As long as you're at version 1.2.0 or above you're a-okay !BlackScorpion wrote:If i'm using Ange's theme , do i need to do anything with the codes?
Re: Optimization of the facebook connect on Forumotion forums
Ange Tuteur wrote:As long as you're at version 1.2.0 or above you're a-okay !BlackScorpion wrote:If i'm using Ange's theme , do i need to do anything with the codes?
Great! I do believe i'm at version 1.2.5 on all. Thanks for responding.
Graphic Design Section Rules || Becoming a Designer || Graphic Requests
Graphics Request Form
Make sure to check out our FREE Graphic's Gallery
No support provided via PM!
Similar topics
» Facebook connect optimization!
» Facebook Connect and HTTP forums
» Information: Disabling Facebook connect Module + Facebook "Like" Button + Paypal.
» facebook connect doesn't work + facebook share button
» facebook button to connect to facebook page
» Facebook Connect and HTTP forums
» Information: Disabling Facebook connect Module + Facebook "Like" Button + Paypal.
» facebook connect doesn't work + facebook share button
» facebook button to connect to facebook page
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum