Advertisement:

Author Topic: SA Facebook Integration  (Read 1033852 times)

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #940 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
http://samods.github.io/SAChatBar/

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

Offline BRiNGiTT

  • Semi-Newbie
  • *
  • Posts: 34
    • 2x3 Entertainment
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #941 on: October 28, 2010, 03:03:07 PM »
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

Offline Bobn

  • Full Member
  • ***
  • Posts: 561
  • Gender: Male
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #942 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!

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #943 on: October 29, 2010, 12:20:42 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.



Quote
I 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.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #944 on: October 29, 2010, 02:12:41 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Spoogs

  • SMF Hero
  • ******
  • Posts: 1,676
  • Gender: Male
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #945 on: October 29, 2010, 03:57:38 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 :)

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #946 on: October 30, 2010, 04:25:13 AM »
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 :

Code: [Select]

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;
    }
}
}


Offline king999

  • Jr. Member
  • **
  • Posts: 229
  • Gender: Male
    • Welcome to the ShareTheTrick :: Your Source for Full Downloads. - Index
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #947 on: October 30, 2010, 11:57:10 AM »
faced problem in install fb this mod in dark break theme

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #948 on: October 30, 2010, 01:29:25 PM »
@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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #949 on: October 30, 2010, 04:39:57 PM »
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...

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #950 on: October 30, 2010, 09:44:56 PM »
try this but backup beforehand
http://samods.github.io/SAChatBar/

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

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #951 on: October 31, 2010, 12:16:51 AM »
hmmm not working... still blank...

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #952 on: October 31, 2010, 12:54:35 AM »
do you get any errors in erro logs?
http://samods.github.io/SAChatBar/

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

Offline diontoradan

  • Semi-Newbie
  • *
  • Posts: 73
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #953 on: November 01, 2010, 06:56:34 AM »
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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #954 on: November 01, 2010, 02:41:16 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #955 on: November 01, 2010, 05:43:14 PM »
package updated for rc4
http://samods.github.io/SAChatBar/

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

Offline maihannijat

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • Afghanistan Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #956 on: November 02, 2010, 01:00:57 AM »
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.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #957 on: November 02, 2010, 01:05:24 AM »
smf version?
mod version?
http://samods.github.io/SAChatBar/

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

Offline maihannijat

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
    • Afghanistan Forum
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #958 on: November 02, 2010, 01:07:31 AM »
I have just updated my SMF version to 1.1.12

and Mod version: SA_FBConnect_0.2_smf11x.zip

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Facebook Connect Integration [now supports smf1 and smf2]
« Reply #959 on: November 02, 2010, 01:18:16 AM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-