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 doesn't work 4.1.12 (https://vborg.vbsupport.ru/showthread.php?t=282610)

ohadpartuck 05-08-2012 11:29 AM

facebook connect doesn't work 4.1.12
 
My Facbook connect btn doesn't work
I have read a few post about it and tried:
1. changing the style (worked and then stopped when I changed back)
2. checking my facebook settings APP ID and secret number

and nothing.
what should I do?

Lynne 05-08-2012 03:42 PM

Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Then browse the site using that totally default vbulletin style - do you still have the same problem?

ohadpartuck 05-08-2012 03:58 PM

hi lynne,
I already wrote in the msg,
I did created a new style and the facebook btn worked there.
But I need it to work in my style!!

Lynne 05-08-2012 05:31 PM

You only said changing the style fixed it, you didn't say it was to a default style.

Anyway, if it works on the default style, that means it is a problem with a template on your custom style. So, you need to go through the edited templates (I'd start with header, headinclude, and footer) and compare them to default templates and make sure all necessary code is in your custom templates.

ohadpartuck 05-09-2012 06:49 AM

what exactly am I supposed to look for??
I looked there and even copied the templates to an outside editor,
and found no unclosed divs or anything.
What could stop this btn from working? how does it work anyway?
Is it a javascript? because I didn't get an error in firebug?

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

thanks I figured it out,
the problem was in the 'headinclude_bottom' Template.
1. 'unclosed curly brackts' - used <vb:literal> https://www.vbulletin.com/forum/show...ace-Expression

2. changed
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311854578865577";
into
js.src = "//connect.facebook.net/en_US/all.js";

and now it works..


All times are GMT. The time now is 04:43 AM.

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.01529 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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