Hi all,
i installed this mod, i created the application on Facebook and used the key etc, but when i press on the button to connect with fb account, instead of doing it, the page doesn't load anything, like if i'm not pressing anything and after the address a "#" appears.
Like this:
1) w.ww.yoursite.com (random name)
2) i click "Fb connect", nothing happens
3) i stay with the cursor on the button and i see that it sends me to w.ww.yoursite.com/# (or yoursite.com#, don't remember now)
What's missing? I have to modify the code of my template?
Before this i had another error:
Fatal error: Call to undefined function show_facebook() in /xxxxxxxxxx/public_html/penpal-community/Sources/PortalBlocks.php on line 225
So i checked online and i found a guy that made a code to modify the template and i used that. After that, all seemed ok but instead nothing works.
This is the code i added, in index.template.php (before the line --> function template_body_above() )
function show_facebook()
{
global $boardurl, $settings, $context, $txt, $modSettings, $scripturl;
if($modSettings['fb_enable'])
{
if ($context['user']['is_logged'])
{
if(isset($context['user']['fb'])) {
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 />';
}
else
{
echo'
<a href="#" onclick="javascript:fbLogin(); return false;"><img src="http://b.static.ak.fbcdn.net/rsrc.php/zB6N8/hash/4li2k73z.gif" alt="" /></a>';
}
}
}
Probably is wrong, but since i'm a noob.... anyone can help me? Thanks