vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem JS breaking Facebook Connect (https://vborg.vbsupport.ru/showthread.php?t=260763)

nick-harper 03-22-2011 11:54 AM

Problem JS breaking Facebook Connect
 
I have had a problem for a while on www.skybluestalk.co.uk that Facebook Connect doesnt want to work at all.

When looking at the source code the code at the bottom is incomplete

I have tried it with the default theme and turned all mods off but still no luck. I have re upgraded without any joy and re uploaded all of the clientscript files.

I have noticed that when a PM is received and there is added JS in the footer to alert me, the source code changes in the footer so the complete code is there and it works.

At the minute my code ends:

Code:

<script type="text/javascript">
<!--
YAHOO.util.Event.onDOMReady(
        function()
        {
                vBfb = new vB_Facebook({
                        appid : "138910852808964",
                        connected : 0,
                        active : 0,
                        autoreg : 1,
                        feed_newthread : 1,
                        feed_postreply : 1,
                        feed_blogentry : 1,
                        feed_blogcomment : 1,
                        feed_newarticle : 1,
                        feed_articlecomment : 1
                });
        }
);
-->
</script>

When it should be:

Code:

<script type="text/javascript">
<!--
YAHOO.util.Event.onDOMReady(
        function()
        {
                vBfb = new vB_Facebook({
                        appid : "138910852808964",
                        connected : 0,
                        active : 0,
                        autoreg : 1,
                        feed_newthread : 1,
                        feed_postreply : 1,
                        feed_blogentry : 1,
                        feed_blogcomment : 1,
                        feed_newarticle : 1,
                        feed_articlecomment : 1
                });
        }
);
-->
</script>
<div id="fb-root"></div>

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

I have just bodged it by removing the if statement in footer and adding <div id="fb-root"></div> manually.


All times are GMT. The time now is 05:45 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.01018 seconds
  • Memory Usage 1,716KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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