News:

Wondering if this will always be free?  See why free is better.

Main Menu

SA Facebook Integration

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

Previous topic - Next topic

SA™

i have fixed this in rc4 i will try to realese this somtime this week give my testers a chnae to test things :)
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 -___-

OnlineFunCorner

thanks
can you share modified file so I just replace that instead of removing old version and installing new

SA™

sure in surces/fb_connect/fb_connect.php

find

require_once($sourcedir . '/Profile.php');
loadCustomFields(0, 'register');


after add

// Or any standard ones?
if (!empty($modSettings['registration_fields']))
{
require_once($sourcedir . '/Profile-Modify.php');

// Setup some important context.
loadLanguage('Profile');
loadTemplate('Profile');

$context['user']['is_owner'] = true;

// Here, and here only, emulate the permissions the user would have to do this.
$user_info['permissions'] = array_merge($user_info['permissions'], array('profile_account_own', 'profile_extra_own'));
$reg_fields = explode(',', $modSettings['registration_fields']);

// We might have had some submissions on this front - go check.
foreach ($reg_fields as $field)
if (isset($_POST[$field]))
$cur_profile[$field] = $smcFunc['htmlspecialchars']($_POST[$field]);

// Load all the fields in question.
setupProfileContext($reg_fields);
}


in fb_connect.template.php

find

echo'<h4 class="titlebg"><span class="left"></span>
'.$txt['fb_reg45'].'
</h4>';


after add

foreach ($context['profile_fields'] as $key => $field)
{

echo '<dl class="register_form">
<dt>
<strong', !empty($field['is_error']) ? ' style="color: red;"' : '', '>', $field['label'], '</strong>';

// Does it have any subtext to show?
if (!empty($field['subtext']))
echo '
<span class="smalltext">', $field['subtext'], '</span>';

echo '
</dt>
<dd>';

// Want to put something infront of the box?
if (!empty($field['preinput']))
echo '
', $field['preinput'];

// What type of data are we showing?
if ($field['type'] == 'label')
echo '
', $field['value'];

// Maybe it's a text box - very likely!
elseif (in_array($field['type'], array('int', 'float', 'text', 'password')))
echo '
<input type="', $field['type'] == 'password' ? 'password' : 'text', '" name="', $key, '" id="', $key, '" size="', empty($field['size']) ? 30 : $field['size'], '" value="', $field['value'], '" tabindex="', $context['tabindex']++, '" ', $field['input_attr'], ' class="input_', $field['type'] == 'password' ? 'password' : 'text', '" />';

// You "checking" me out? ;)
elseif ($field['type'] == 'check')
echo '
<input type="hidden" name="', $key, '" value="0" /><input type="checkbox" name="', $key, '" id="', $key, '" ', !empty($field['value']) ? ' checked="checked"' : '', ' value="1" tabindex="', $context['tabindex']++, '" class="input_check" ', $field['input_attr'], ' />';

// Always fun - select boxes!
elseif ($field['type'] == 'select')
{
echo '
<select name="', $key, '" id="', $key, '" tabindex="', $context['tabindex']++, '">';

if (isset($field['options']))
{
// Is this some code to generate the options?
if (!is_array($field['options']))
$field['options'] = eval($field['options']);
// Assuming we now have some!
if (is_array($field['options']))
foreach ($field['options'] as $value => $name)
echo '
<option value="', $value, '" ', $value == $field['value'] ? 'selected="selected"' : '', '>', $name, '</option>';
}

echo '
</select>';
}

// Something to end with?
if (!empty($field['postinput']))
echo '
', $field['postinput'];

echo '
</dd></dl>';

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

OnlineFunCorner


eric1234

API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.

This messages pop out when i am trying to log into my forum using the mods.

After setting up the application
i log into admin and access the mods

and head to main setting

than enable fan page and change the codes of  " Your applications page id
can be found in you applications url "  to my Application ID in the application section

Replace Facebook Application Key with API key

and also

Replace Facebook Application Secret with Application Secret from the application site.

So did i missed out something or some error?

By the way,  there's 2 " connect to facebook " button located at the headers of my forum. May i know how can i change it to just 1 button just like what in this current forum, which got only 1 button instead of 2. 

Pardon my English . :D


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

OnlineFunCorner

is there any link to share with friends on facebook to register them through facebook on our site
or
any invitation system
..
it will be a great feature

SA™

this?

your_site_url/index.php?action=facebook;area=invite
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 -___-

OnlineFunCorner


Fatal error: Uncaught Exception: 601: Parser error: unexpected ')' at position 70. thrown in /home/****/public_html/fbc/facebook.php on line 425

OnlineFunCorner

what is the url link of f Login button?
I want to directly share the url link of F login button to facebook friends
..
please

rafli

Quote from: eric1234 on December 15, 2010, 07:10:27 AM
API Error Code: 191
API Error Description: The specified URL is not owned by the application
Error Message: redirect_uri is not owned by the application.

This messages pop out when i am trying to log into my forum using the mods.

Hi Eric,
I installed SA Facebook Connect this morning and got same result. I use Pretty url mod. I try to do maintain pretty url in pretty url section and this error is fix. I hope this help, if you also use pretty url mod.

rafli

Hi All,
I have installed mod SA_FBConnect_1.0+Beta5_rev264_forsmf1.zip . My forum is SMF 1.1.12. I have no error installing it, nor manual install.
However, It keep show error message like this when I try to unsync account.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ID_MEMBER = 1
LIMIT 1' at line 4
File: /home/.../Sources/Subs.php
Line: 631


The rest of features is function well.
I am no programmer, guys. So please kindly help me.

SA™

try using the 0.2 version the persone who was developing the sm1 version has abandond the 1.0 beta version so it will be removed soon
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 -___-

OnlineFunCorner

in our website only F Login Button Show

is it possible text show with button like (login with facebook)

as in attached picture

can I put facebook login on other page?

like www.exapmle.com/fb/login.php

etc

SA™

in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted
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 -___-

OnlineFunCorner

Quote from: SA™ on December 16, 2010, 12:16:25 PM
in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted

sorry I don't understand

SA™

SA Fb Connect RC4 realsed

added better unsync support
now uses session login url
added some secrity checks during login
fixed standerd profile feilds not showing on fb reg
added option to enable disable fb reg/login
added more check to see if user is allready suynced with another account when sycing forum account
removed some uneeded code from fb_connect_subs.php
fixed like on boardindex not showing atall
fixed undefined imdex site slogon
moved language strings to there own files
fixed uninstall errors
added supprt for core 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 -___-

OnlineFunCorner

Quote from: SA™ on December 16, 2010, 12:16:25 PM
in subs.php in function show_facebook(){

you can chnage '.$txt['fb_login'].' to what ever you wanted

I did not find .$txt['fb_login'] in subs.php

!RFAN

The new version of this mod works with smf2 rc3 or not?

Advertisement: