SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SA Facebook Integration

Started by Team, February 12, 2010, 01:36:11 PM

Previous topic - Next topic


can anyone help me in installing this mod to sunshine2 theme by Fussilet (

Quote from: !RFAN on September 14, 2010, 10:45:59 AM
Quote from: Sleepy Arcade on September 08, 2010, 01:06:59 PM
sry for the delay what version of the mod are you using?

sorry for late from my side now...

i'm using 1.0 Beta5 Rev264



I do not get to edit this template I just get errors. Can someone help? The problem is that the heavily edited by me. Could someone help me?

This is the index.template, I just do not get editing errors appear.


Hi, I just installed this mod for my 1.1.11, finished config in admin of this mod with fb aps..
But I didn't see anything about fb on my forum..
Am I missing something?



Are you using a custom theme... if so have you made the necessary edits?


Oh ya. I'm using custom theme. Sorry.
Please tell me how to edit it. Thanks


Go back to the mods page, select your version of the mod, select your version of smf, then click parse

the edits you need should be on index.template.php

Hj Ahmad Rasyid Hj Ismail

Thank you for a very useful mod. It has been nice using your mod all these while. I need some help regarding the width of some function of this mod.

1. Invite Page.
2. Comment Page.

For the first one, I've tried to change the cols="4" to "3" but that doesn't really control the width of that page but the column. I've even tried put style="width:450px" for <div>, <fb:serverfbml> as well as <fb:fbml> but it's not working. I don't have any idea how to for the second one.

But I have managed to set width of the Like Page by changing the width in this line:
<fb:like href="',$like['name'],'/',$like['id'],'?v=wall&ref=ts#" layout="standard" show_faces="true" width="350" action="like" colorscheme="light" /></fb:like> <br />';

Thanks a million in advance.

P/S: I really hope that the template in this mod will use a css file in the future so that it will be easier to modify the styling to suit our needs.


20 september 2010 SMF 2.0x:

like feture has now new fetures
addded target blank to all external facebook links links
added permissions to admin facebook
added facebook admin to drop menu if permission
fixed gender showing female if none selected
chnaged enable disable to maintenance mode admin can stil enter so can users if they have permission to admin faceboo
fixed undefined index member var
fixed share topic button showing when disabled
fixed like topic button showing when disabled
fixed incorrect php version check
fixed recomend not showing in correct places
fixed some typo's
fixed names all being lower case
added dream portal supports
added option to set default groupe for new registerd fb users
moved some stuff from index.template.php to subs.php

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Hj Ahmad Rasyid Hj Ismail

Hj Ahmad Rasyid Hj Ismail

I've also noted that the language lines have been reduced. I'll provide the latest Malay translation here later. It will be better if the language file is made separate from the installation files and use its own language files in the future.


Hello Sleepy Arcade. Thanks for this mod is fantastic.

I have a problem with this latest update (RC1 rev271)
1. I can not "preview" the topip, it is always "Fetching preview."
2. Quotes do not work

The previous version that did not happen.

I've been researching a bit around the "parse" and this script is the one that seems to give this error, and that removing this part of the problem disappears:

             global $boardurl;
    echo'<script src="'.$boardurl.'/fbc/fbconnect.js" type="text/javascript"></script>
        <script type="text/javascript">
        var mod_settings_fb_app_pageid = "',$modSettings['fb_app_pageid'],'";   
        var mod_settings_fb_app_stream = "',$modSettings['fb_app_stream'],'";
        var mod_settings_fb_app_connection = "',$modSettings['fb_app_connection'],'";
        var mod_settings_fb_app_width = "',$modSettings['fb_app_width'],'";
        var mod_settings_fb_com_xid = "',$modSettings['fb_app_comments_boxid'],'";
        var mod_settings_fb_li_xid = "',$modSettings['fb_app_stream_boxid'],'";
        var mod_settings_fb_com_show = "',$modSettings['fb_admin_commets_post'],'";
        var forum_name = "'.$context['forum_name'].'";
        var site_slogan = "'.$settings['site_slogan'].'";
        var like_layout = "', empty($modSettings['liketopiclayout']) ? 'standard' : 'button_count', '";
        var like_verb = "', empty($modSettings['liketopicverb']) ? 'like' : 'recommend', '";
        var like_colour = "', empty($modSettings['liketopiccolour']) ? 'light' : 'dark', '";
        var live_hight = "'.$modSettings['fb_app_stream_hight'].'";
        var live_width = "'.$modSettings['fb_app_stream_width'].'";
        var fp_width = "'.$modSettings['fb_app_fp_width'].'";
        var fp_row = "'.$modSettings['fb_app_e_fp_row'].'";
        var rec_width = "'.$modSettings['fb_app_rec_width'].'";
        var rec_hight = "'.$modSettings['fb_app_rec_hight'].'";

Sorry for my English is very bad. Thanks


@ im looking into this

@ RAULVK confirmed as a bug

if you move it from where it is and put ifbefore this


if (isset($settings['use_default_images']) && $settings['use_default_images'] == 'defaults' && isset($settings['default_template']))

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-



Good to know a newer version has been released! However, I am getting a warning error while trying to install that one. Some of the tests are failing too:
Quote1.   Replace   ./Sources/Profile.php
Replace   ./Themes/default/index.template.php   Test failed
Replace   ./Themes/default/index.template.php   Test failed
Add After   ./Themes/default/index.template.php   Test failed
Replace   ./Themes/default/index.template.php   Test failed

What should I do? =/

Also, with the current version on, when i someone "like" something, their facebook profile shows it as "xyz person like login". and thats it. Is there a way to replace this "login" with the actual title of the post they like?

Thanks a bunch!


xyz likes login... This is because the topic they like is on a board that guests do not have access to

What version of SMF are you using... the updated version is for 2.0RC3


Quotexyz likes login... This is because the topic they like is on a board that guests do not have access to

Actually, there is one board which is available to everyone, but even topics on that board gets shared that way.
Besides, why is that even a problem if people who are "liking" these topics are members of my forum?

I am using SMF V2.0 RC3, but I still get those errors  :-\


For the files that failed, do a manually edit them to add the code

SA can answer this better than I can but my guess is that
Its a matter of maintaining the integrity of boards that are off limits

For example I you and I were admins on your site and we posted a few things on an admin only board and I choose to like or share this on FB (would you really want others to see this topic)

I would be happier if it defaulted to the forum name as opposed to Login tho.