SA Facebook Integration

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

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Quote from: Dismal Shadow on August 05, 2010, 01:42:21 PM
I have helped him in some areas to transfer links into a new tab using target="_blank
Your name is mentioned in that mod as one of the tester. So I do know who are involved for this great mod. Thanks to you too.

eng_HK

What I have to do to let it work with another template?

nend

WDM I wouldn't say that unclean uninstall is a bug in the mod, however it should be considered. I actually think somehow it is tied with SMF 2.0 RC3, because I have been having this problem from time to time with installations and uninstalls even though the package manager reports everything is going to be just fine. Will I have examine packages and there is no problem with the code, they just sometimes work and sometimes do not. I never experience this problem with 1.1.11 which is on another site of mine. It might not even be SMF though, could be server limitations having a effect on packages. Allot of variables.  :-\

SA™

@nend thx i wasnt sure

@eng_HK you have to edit the index.template.php if you have trouble  atacch it here and i can do it for you
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 -___-

eng_HK

This is the index.
What I have to chage? and where?

Thx

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

eng_HK

It works.
Thx.

Now I'm going to translate in italian it and also I'm trying to change the "Connect with Facebook" logo image to something in italian... You have a PM with the translation.

I have 2 question.
1) Can you provide the code that I have to insert into index.template.php ?? Because in my forum I have different themes and I'd like to use this mod with that themes, or if you can explain me how I can be sure that the mod will be run for every themes.

2) I can see only, I think part of the FBConnect because I cannot see the "unlink" button, and also the part I selected into the image attached.


Thx 4 your support and the mod that is greate.
Hope you can include the italian language too.

SA™

if you go to thwe mod page ojn this site you can get edits from there or you can look in instal.xml for the chnages to index.template.php

i anserd number 2 in the pm :)

i probaly wont update the package with the new language strings but i will add them to 1.0 version with the new api tho there is sevaral new txt strings in 1.0
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 -___-

program5

Thank You for this mod.
I have a small problem on IE 8 , not in FF.
Not on the main page, not in topic list, but only on Topic's own page,
I get this small pop up window with the following error. No other areas-pages as well.
"stuck overflow at line :15"
Example :
http://www.petim.net/forum/lutfen-okuyun-t378.0.html

How can I solve this ?

Thank You :)

Hj Ahmad Rasyid Hj Ismail

Just a suggestion, can you make this mod to modify SimplePortal as well?

SA™



ill look into it

Quote from: program5 on August 10, 2010, 09:16:05 AM
Thank You for this mod.
I have a small problem on IE 8 , not in FF.
Not on the main page, not in topic list, but only on Topic's own page,
I get this small pop up window with the following error. No other areas-pages as well.
"stuck overflow at line :15"
Example :
http://www.petim.net/forum/lutfen-okuyun-t378.0.html

How can I solve this ?

Thank You :)

more info ?
Quote from: ahrasis on August 10, 2010, 11:58:12 AM
Just a suggestion, can you make this mod to modify SimplePortal as well?
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 -___-

eng_HK

I moved to RC3 and everything works greate, with the default theme.

I'm now using the Design Blue Skin, here http://custom.simplemachines.org/themes/index.php?lemma=2229

and receive this error could you help me?

Fatal error: Call to undefined function show_facebook() in /web/htdocs/www.larico.it/home/SForum/Sources/Load.php(2102) : eval()'d code on line 63

also I cannot see the Facebook button for login.

MATTEK

I'm having a nightmare trying to get this uninstalled manually. Everytime I upload the edited files I get parse errors galore. Wondering if I could supply the files needs for the uninstall so someone could make the edits for me.

I am planning on reinstalling.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

SA™

@MATTEK sure attach the files



@eng_HK

you need to add this function to your theme index.tmoplate.php

function show_facebook()
{
    global $settings, $user_info, $context, $txt, $modSettings, $scripturl, $boarddir;
include_once $boarddir.'/fbc/facebook_init_main.php';
    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 />';
    }
    elseif (!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" 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" onlogin="window.location=\'', $scripturl, '?action=facebook;area=connect;step\'">'.$txt['login'].'</fb:login-button>';
    }
    }
}
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 -___-

eng_HK

@sleepy
I already have the Facebook function on the index template, see attached file.

I'm now using the Design Blue Skin, here http://custom.simplemachines.org/themes/index.php?lemma=2229

The forum add correctly automatically the Show facebook function as you can see on the attached file, but I receive the error.


MyOutdoorsIowa

First of all my hats off to the creators of this mod! Very nice. 8)

I have installed this mod and the like button shows up sometimes and sometimes not? The share button shows every time.

Has anyone else experienced this?

You can view the site http://hawgz.com/wp/forum/index.php?topic=2.0 [nofollow]

Thanks,
Darrin

~DS~

Quote from: MyOutdoorsIowa on August 14, 2010, 01:05:11 PM
First of all my hats off to the creators of this mod! Very nice. 8)

I have installed this mod and the like button shows up sometimes and sometimes not? The share button shows every time.

Has anyone else experienced this?

You can view the site http://hawgz.com/wp/forum/index.php?topic=2.0

Thanks,
Darrin
Yeah, I think he's working on it. :)
"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

MyOutdoorsIowa

Quote from: Dismal Shadow on August 14, 2010, 01:06:05 PM
Quote from: MyOutdoorsIowa on August 14, 2010, 01:05:11 PM
First of all my hats off to the creators of this mod! Very nice. 8)

I have installed this mod and the like button shows up sometimes and sometimes not? The share button shows every time.

Has anyone else experienced this?

You can view the site http://hawgz.com/wp/forum/index.php?topic=2.0 [nofollow]

Thanks,
Darrin
Yeah, I think he's working on it. :)
Thanks for the instant reply!  8)

SA™

can you try removing that function from both that theme and default themes index.template.php and putting it in to subs.php before the closing php tag ?>

Quote from: eng_HK on August 13, 2010, 02:35:50 AM
@sleepy
I already have the Facebook function on the index template, see attached file.

I'm now using the Design Blue Skin, here http://custom.simplemachines.org/themes/index.php?lemma=2229

The forum add correctly automatically the Show facebook function as you can see on the attached file, but I receive the error.


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

eng_HK

@sleepy
I received and error like

Call to undefined function trackStats() in /web/htdocs/www.MYFORUM.IT/index.php on line 225

Advertisement: