PDA

View Full Version : Facebook Connect is working but small problem..


MyLibary
05-14-2012, 11:29 AM
Hi guys..

The Facebook connect works great but! :


Like Button - Threads
Enabling this option will make a "Like" button appear on all threads. Users will then be able to "Like" individual threads. Note: users do not have to have Facebook linked accounts to use this feature

In admin panel, when i enable this option its appearing only in forums which guest can view, others forums which closed to registered members only its not appear.

How can i configure that every forum will have that LIKE button or at least configure more groups who can see it? (I.E Registered members group)

Will be happy to get your help.

Lynne
05-14-2012, 03:56 PM
Take the condition off of the SHOWTHREAD template here:
<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>
(Alternately, if you know how to write a plugin, write one to set that $show variable to true all the time.)

MyLibary
05-14-2012, 07:39 PM
Did that already ,removed the condition but still the same..
any other suggestions? :)

--------------- Added 1337028323 at 1337028323 ---------------

Found this code on facebook developers:

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>


Is that doing the same action? or the one in vbulletin connected somehow with the integration between vbulletin and facebook?

Lynne
05-14-2012, 09:13 PM
Probably need to modify/remove the else condition in the function contruct_fblikebutton in functions_facebook.php:
if ($show['fb_likebutton'])
{
return $templater->render();
}
else
{
return $retval;
}

MyLibary
05-15-2012, 11:35 AM
Still does not work..

Another suggestion?

--------------- Added 1337100046 at 1337100046 ---------------

There is any difference if i put custom facebook code or i use vbulletin code?

Cuase use custom code may be easier..

Lynne
05-15-2012, 04:55 PM
If that doesn't work, then most likely there is something else perhaps in the javascript and I just can't look through all of that, sorry.