News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SA Facebook Integration

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

Previous topic - Next topic

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

zzzronzzz

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

KensonPlays


Owner of Mesozoic Haven

ealexander

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

Legend Zero

To be blunt, this does not seem to work anymore. Facebook must have changed their integration methods because this will not work after installation


KensonPlays


Owner of Mesozoic Haven

~DS~

Quote from: Legend Zero 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
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

KensonPlays

Here is area where facebook is declared:


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();

Owner of Mesozoic Haven

ealexander

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

Legend Zero

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


KensonPlays

I have to log off now, you can email it to me... [email protected], ill check tom mornin/

Owner of Mesozoic Haven

ealexander

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

Legend Zero



~DS~

"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

ealexander

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

Legend Zero

Quote from: Dismal Shadow on March 22, 2010, 12:08:29 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.


~DS~

Quote from: Legend Zero on March 22, 2010, 12:13:43 AM
Quote from: Dismal Shadow on March 22, 2010, 12:08:29 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

ealexander

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

ealexander

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

KensonPlays


Owner of Mesozoic Haven

Advertisement: