vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Facebook Connect is working but small problem.. (https://vborg.vbsupport.ru/showthread.php?t=282897)

MyLibary 05-14-2012 11:29 AM

Facebook Connect is working but small problem..
 
Hi guys..

The Facebook connect works great but! :

Code:

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:
HTML Code:

                <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 [DATE]1337028323[/DATE] at [TIME]1337028323[/TIME] ---------------

Found this code on facebook developers:

Code:

<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:
PHP Code:

    if ($show['fb_likebutton'])
    {
        return 
$templater->render();
    }
    else
    {
        return 
$retval;
    } 


MyLibary 05-15-2012 11:35 AM

Still does not work..

Another suggestion?

--------------- Added [DATE]1337100046[/DATE] at [TIME]1337100046[/TIME] ---------------

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.


All times are GMT. The time now is 03:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01341 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete