News:

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

Main Menu

SA Facebook Integration

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

Previous topic - Next topic

SA™

@ Sincere
wht is the permissions on fbc/facebook.php ?

@sardaukar74
it means the code didnt get uninstalled properly can you attach you index.template.php pls
http://samods.github.io/SAChatBar/

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 -___-

BRiNGiTT

Please I cnt find any errors about the mod in my log....
I dnt see what has been done; I only see what remains to be done

Bobn

Let me say this is one awesome mod! And the support from Spoog is just incredible!  Thanks you so much for this and all your help!

Sincere

Quote from: Sleepy Arcade on October 28, 2010, 01:21:41 PM
@ Sincere
wht is the permissions on fbc/facebook.php ?

@sardaukar74
it means the code didnt get uninstalled properly can you attach you index.template.php pls


sleepy, as I mentioned in my post, the fbc folder is chmodded to 755 and all files within to 644 as recommended by your kind self many times earlier in this thread.



QuoteI AM logged to Facebook, and I DID check that the fbc folder under my forums is chmod'ed 755 and all files within as 644, and that I am not using www in my domain name neither on my site nor in the facebook devpers appl.

Do you need a special mod for your smf forums? contact me for a quote.

SA™

oh i am sry it was late last night
can i have a link to you site pls
http://samods.github.io/SAChatBar/

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 -___-

Spoogs

Quote from: Bobn on October 28, 2010, 10:49:04 PM
Let me say this is one awesome mod! And the support from Spoog is just incredible!  Thanks you so much for this and all your help!
Glad i was able to help :)

diontoradan

i have an error in subs.php, every time i install fbconnect the script would disable entire forum (blank page), it seems like a problem with below function, because when i remove it, the forum would be back to normal again :



function show_facebook(){
   global $settings, $user_info, $context, $txt, $modSettings, $scripturl, $boarddir;
      include_once $boarddir.'/fbc/facebook_init_main.php';
    //user is logged in and maintenance mode is disabled
if ($context['user']['is_logged'] && empty($modSettings['fb_enable']))
    {
        if (!empty($user_info['fbname'])){
echo '<img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="', $scripturl, '?action=facebook">'.$txt['fb_title'].'</a>';
        }else{
echo '<img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="', $scripturl, '?action=facebook;area=sync">'.$txt['fb_integrate'].'</a>';
    }
        echo'<br /><br />';
    }
//user is logged maintenance is enabled and they have permission to manage facebook
elseif ($context['user']['is_logged'] && !empty($modSettings['fb_enable']) && allowedTo('manage_facebook')){
if (!empty($user_info['fbname'])){
echo '<img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="', $scripturl, '?action=facebook">'.$txt['fb_title'].'</a>';
        }else{
echo '<img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="', $scripturl, '?action=facebook;area=sync">'.$txt['fb_integrate'].'</a>';
    }
        echo'<br /><br />';
    }
//user isnt logged and maintenance mode is disabled
    elseif (empty($context['user']['is_logged']) && empty($modSettings['fb_enable'])){
if(!empty($modSettings['requireAgreement'])){
echo' <fb:login-button v="2" size="large" autologoutlink="false" perms="email,user_birthday,status_update,publish_stream,user_photos,create_event" onlogin="window.location=\'', $scripturl, '?action=facebook;area=connect;agree\'">'.$txt['login'].'</fb:login-button>';
    }else{
       echo' <fb:login-button v="2" size="large" autologoutlink="false" perms="email,user_birthday,status_update,publish_stream,user_photos,create_event" onlogin="window.location=\'', $scripturl, '?action=facebook;area=connect;step\'">'.$txt['login'].'</fb:login-button>';
    }
    }
}

function show_facebook_like($extra,$extra1,$extra2){
    global $scripturl, $modSettings, $sourcedir, $user_info, $context, $boarddir;

include_once $sourcedir.'/FB_Connect/FB_Connect.php';
db_select_member_settings('fb_show_likeb',$user_info['id']);
if(!empty($context['fb_show_likeb'])){
if (empty($modSettings['like_board_url'])){$url = ''.$scripturl.'';}else{$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];}
include_once $boarddir.'/fbc/facebook_init_main.php';
if($modSettings['likeshow'] == $extra2){
       echo $extra.'<iframe src="http://www.facebook.com/plugins/like.php?href='.$url.'&amp;layout=', empty($modSettings['liketopiclayout']) ? 'standard' : 'button_count','
   &amp;show_faces=false&amp;width=450&amp;action=', empty($modSettings['liketopicverbb_board']) ? 'like' : 'recommend','&amp;colorscheme=', empty($modSettings['liketopiccolour']) ? 'light' : 'dark','
       &amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>'.$extra1;
    }
}
}


king999

faced problem in install fb this mod in dark break theme

SA™

@diontoradan
can you post up the file whith the code in place pls

@king999
that realy helps?
http://samods.github.io/SAChatBar/

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 -___-

diontoradan

ok, i will break down the problem...

already installed version 0.2, no problems, uninstall and install the latest version.
click install, i ended up having 2 incompatibility in subs.php and display.template.php, manual edit no problem.
but when i click install now, and wham, blank pages.

try to sort out the problems, and everything went back to normal after i remove the bottom function in subs.php.

here's the full code of subs.php. sorry for my not so good programming. i need this badly because most of my member use Facebook.

thanks before...

SA™

http://samods.github.io/SAChatBar/

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 -___-

diontoradan


SA™

http://samods.github.io/SAChatBar/

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 -___-

diontoradan

this is the error code :

PHP Fatal error:  Cannot redeclare show_facebook() (previously declared in /home/www/public_html/forum/Sources/Subs.php:4690) in /home/www/public_html/forum/Sources/Load.php(2232) : eval()'d code on line 232

SA™

that error mean that u still have code probaly left over from the old version of the mod

are u using a custom theme make sure that functiom show_facebook show_faceboo_like isnt in the index.template.php and in you default theme
http://samods.github.io/SAChatBar/

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 -___-

SA™

http://samods.github.io/SAChatBar/

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 -___-

maihannijat

Great I really like this.

I have installed on my custom theme and have created application in Facebook.

I have tried but not successful to edit my index.template.php custom theme file.

Here attached index.template.php if anyone could help me regarding this.


Thanks in Advance.

SA™

http://samods.github.io/SAChatBar/

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 -___-

maihannijat

I have just updated my SMF version to 1.1.12

and Mod version: SA_FBConnect_0.2_smf11x.zip

SA™

here you go pls back before uploading cos i aint tested it
http://samods.github.io/SAChatBar/

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 -___-

Advertisement: