Advertisement:

Author Topic: SA Facebook Integration  (Read 1033724 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
« Reply #200 on: March 21, 2010, 04:32:51 PM »
sry for the long reply guys went away for my bday for a few days

@zzzronzzz yes i was going to add this but the thing with the box count is i coudent figar out how to keep the count eg clikc share count goes up refresh or go away and come back and it will be on 0 again you need to set up permission for guest to be able to share adfmin/permissions

@Kcmartz pls post you index.template.php show_facebook() is declared twice

@ealexander that is a facebook bug not this mod i have no control over what facebook does or doesnt do
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 zzzronzzz

  • Semi-Newbie
  • *
  • Posts: 11
Re: SA Facebook Connect Integration
« Reply #201 on: March 21, 2010, 06:24:58 PM »
thanks for the reply sleep arcade .. yeah i think youre right about the counts not "counting" .. because i put another fshare button and i had ten different members click on it but it didnt change counts ..

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: SA Facebook Connect Integration
« Reply #202 on: March 21, 2010, 10:59:13 PM »
index.template.php as requested!

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #203 on: March 21, 2010, 11:04:54 PM »
hi Sleepy Arcade I do not think facebook is error because the part where you add a comment appears for a few seconds and then disappears, the previous version of the mod also install it and showed me to add comments parrte thus can conclude that that is a mod error, appearing to add the comments for a few seconds and then disappear you may not have a good connection with the Facebook API, I hope I can help solve this problem thanks in advance
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline Legend Zero

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • Legend Zero
    • Legend Zero
Re: SA Facebook Connect Integration
« Reply #204 on: March 21, 2010, 11:07:51 PM »
To be blunt, this does not seem to work anymore. Facebook must have changed their integration methods because this will not work after installation

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: SA Facebook Connect Integration
« Reply #205 on: March 21, 2010, 11:11:34 PM »
@legend, I'd hope not!!

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: SA Facebook Connect Integration
« Reply #206 on: March 21, 2010, 11:19:41 PM »
To be blunt, this does not seem to work anymore. Facebook must have changed their integration methods because this will not work after installation
What doesn't work? It works on my end very well.
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: SA Facebook Connect Integration
« Reply #207 on: March 21, 2010, 11:26:00 PM »
Here is area where facebook is declared:
Code: [Select]

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_com_show = "',$modSettings['fb_admin_commets_post'],'";
</script>';
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '

<script type="text/javascript">
var wot_rating_options = {
selector: ".inner a[href], .post a[href]"
};
</script>
<script type="text/javascript"
src="http://api.mywot.com/widgets/ratings.js"></script>
</head>
<body>';
echo'<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>';
}


function show_facebook()
{
    global $settings, $user_info, $context, $txt, $modSettings;

    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="#" onclick="javascript:fbLogincheck(); return false;">'.$txt['fb_title'].'</a>';
        else
            echo ' <img src="' . $settings['images_url'] . '/facebook.png" alt="'.$txt['fb_title'].'" /> <a href="#" onclick="javascript:fbLoginsync(); return false;">'.$txt['fb_integrate'].'</a>';
   
        echo'<br /><br />';
    }
    elseif (!empty($modSettings['fb_enable']))
        echo'<a href="#" onclick="javascript:fbLogin(); return false;"><img src="http://b.static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif" alt="" /></a>';
}
function template_body_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">
<a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
</h1>';

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="align_right">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">';

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{

show_facebook();

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #208 on: March 21, 2010, 11:53:13 PM »
in my forum but also worked in the previous version of the mod so I say that is the error mod
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline Legend Zero

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • Legend Zero
    • Legend Zero
Re: SA Facebook Connect Integration
« Reply #209 on: March 21, 2010, 11:54:59 PM »
I'm thinking something went wrong with the latest version. I went to FB developers, followed your tutorial WORD FOR WORD, and got no where. I dunno, maybe I'm just off my modding game lately...

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: SA Facebook Connect Integration
« Reply #210 on: March 21, 2010, 11:55:49 PM »
I have to log off now, you can email it to me... webmaster@kcmartz.com, ill check tom mornin/

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #211 on: March 22, 2010, 12:03:13 AM »
hi Dismal Shadow just testing the mod you have installed on your forum 2Rc3 and works great, maybe the mod is only for the version I have the version 2RC3 and 2RC2 why not I see the window to add comments, not so Once someone has the 2RC2 and have installed the mod without problems that comment to know, thanks in advance
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline Legend Zero

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • Legend Zero
    • Legend Zero
Re: SA Facebook Connect Integration
« Reply #212 on: March 22, 2010, 12:04:35 AM »
I'm RC 1.2, might be my issue.

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: SA Facebook Connect Integration
« Reply #213 on: March 22, 2010, 12:08:29 AM »
Guys, the mod only works on RC3.


For 1.1.11 go to :
http://www.sa-mods.info/index.php?topic=427.0
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #214 on: March 22, 2010, 12:12:44 AM »
hi Dismal Shadow with reason, but it should make changes to my version as I use the 2RC2 and there is only one version for this mod as you say for 2RC3 that modifco files to run on the 2RC2, thanks for your help
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline Legend Zero

  • Semi-Newbie
  • *
  • Posts: 60
  • Gender: Male
  • Legend Zero
    • Legend Zero
Re: SA Facebook Connect Integration
« Reply #215 on: March 22, 2010, 12:13:43 AM »
Guys, the mod only works on RC3.

Now THERE'S your problem, right there. I must've misread the compatibility, and was thrown off by it attempting to install maybe the instillation should be modded so it wont even attempt on non-compatible versions.

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: SA Facebook Connect Integration
« Reply #216 on: March 22, 2010, 12:15:56 AM »
Guys, the mod only works on RC3.

Now THERE'S your problem, right there. I must've misread the compatibility, and was thrown off by it attempting to install maybe the instillation should be modded so it wont even attempt on non-compatible versions.
Now how is that MY problem? It should be yours since you did not read the compatibility and attempt to install on another version?  ::)
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #217 on: March 22, 2010, 12:16:14 AM »
I probe with the parser of the mod and told me that supports version 2RC2 if they try again
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline ealexander

  • Full Member
  • ***
  • Posts: 532
  • Gender: Male
  • Seguir Aprendiendo
    • foros peru
Re: SA Facebook Connect Integration
« Reply #218 on: March 22, 2010, 12:20:15 AM »
I correctly install the parser besides guide me to install it if not compatible with my version must have a separate amendment that should be doing to support my version, I know that change, thanks
Greetings
foros peru
en el encontraras temas de interes como los sgtes:

Deportes     Estudiantes    Tv y Espectáculos       Universidades   
Amor y Sexualidad

Offline KensonPlays

  • SMF Hero
  • ******
  • Posts: 4,306
    • @Kenson_Plays on Twitter
Re: SA Facebook Connect Integration
« Reply #219 on: March 22, 2010, 09:10:43 AM »
?? Sleepy Arcade ??