Customizing SMF > Modifications and Packages

SA Facebook Integration

<< < (567/678) > >>

Texan78:
Just grabbing at straws, but also trying to eliminate possibilities too. I know you have stated in the Admin CP for the FB Mod under boards. You have selected the boards you want published.

Under the Publisher settings, do you have "Enable Post Publisher?" enabled to post new topics?

Like I said, grabbing straws but just trying to do a process of elimination.

Texan78:
I am trying to get rid of some errors in my logs. One of the last ones I think I am dealing with is when the eNotify mod runs it throws a error.


--- Quote ---8: Undefined variable: fb_hook_object
Apply Filter: Only show the errors from this file
File: /home4/mesquiu0/public_html/wxconnection/Themes/default/index.template.php
Line: 299
--- End quote ---

Which is referring to adding the hook for my login button on the index referring to this line below.


--- Code: ---if(class_exists('SAFacebookhooks'))
--- End code ---

Here is the full snippet it is including in.

 
--- Code: ---// Show Twitter and Facebook login for guest if not logged in
if ($context['user']['is_guest'])
{
show_twitter_login(); echo '&nbsp;'; global $fb_hook_object;
==>299: if(class_exists('SAFacebookhooks'))
$fb_hook_object->call_facebook_hook('show_facebook_login',array(true));
}


--- End code ---

Is this error a result of something needing to be defined in the global functions for the hook on the index page? If so what would that be?

-Thanks

DutchJam:

--- Quote from: Texan78 on August 18, 2012, 11:34:58 AM ---Like I said, grabbing straws but just trying to do a process of elimination.

--- End quote ---

I know that Texan78 and your help is very, very much appreciated  :)

I checked the "Enable Post Publisher?" setting, set to "New topics".
The "Publish to facebook?" is set to "Page".
Sounds good to me, right?

I still think it has something to do with the sign-in procedure. Every time I go back to the SA Facebook Integration settings in the Admin panel of SMF I see the Facebook 'sign-in' button, and not the 'Grand permissions' button.

Then, when I click the Facebook 'sign-in' button I get a few blank windows,  then the question "Permissons granted?" and after clicking "ok'  the message in the image above appears (what does it mean anyway?). I click "ok" again and after that I am redirected to the homepage of my forum. Without publishing on my facebook page at all....

Texan78:
I wish I had some answers for you. This is puzzling since it has worked sometime and then sometimes it doesn't.

I can tell you though, mine has showed logged in before and it always shows "grant permissions" even after I have granted permissions and mine is working fine now. I get those white pop up boxes too.

Only thing I can think of is how your Facebook is set up but it sounds like yours is set up correctly. Here is how I have mine set up. I have my own personal FB page. Then I set up a fan page for my forum that is attached to my personal page. I think that is the only way you can set it up is you have to have  FB account first. I know when I want to use and FB functions from my forum I have to be switch to my personal FB page. Just double check you have your ID's right. Have you tried switching them and see if that helps?

Wish I had more info for you, it is definitely puzzling.

Texan78:
I cleaning up the Facebook manual register page. One question is on the last part how do you shorten the input fields for the Additional Information at the bottom? They are a little long and would like to shorten them a bit, but I am not familiar with how this input fields are set up. I have located them, just can't tell how to change the size. I also can't seem to get the drop down box to align to the left more so it is uniform with the rest of the input boxes.

Also, when you use the manual registration what email address does it use. The username@ facebook.com? If so, wouldn't this be a good change to have them enter their email address?

Here is the code for those input fields.


--- Code: ---// 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>';

}
}
foreach ($context['custom_fields'] as $field)
echo '
<dl class="fb_add_info_form">
<dt>
<strong>', $field['name'], '</strong>
<span class="smalltext">', $field['desc'], '</span>
</dt>
<dd>
', $field['input_html'], '
</dd>
</dl>
';
}
}
--- End code ---





-Thanks!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version