Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2013, 02:17 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Pages not showing "Facebook Connect" button

I have some custom pages on which everything seems to work fine but the "Facebook" button will not show in the header.

When checking the page source code I see that the first line in the facebook_header template that is called is causing the element to be "hidden".


Code:
<li id="fb_headerbox" class="hidden">

Why is this line affecting my custom pages but not any of the standard vB pages when it is called.
Reply With Quote
  #2  
Old 04-16-2013, 02:31 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think there's a javascript file that needs to be included, which checks the user's status and makes the button visible if they're not already "connected". I don't know offhand exactly what it's called or how it gets included on the standard pages.
Reply With Quote
  #3  
Old 04-16-2013, 10:06 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been searching for missing java or possibly css, but haven't come up with anything yet.
Reply With Quote
  #4  
Old 04-16-2013, 10:10 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...are there any javascript errors on the page?

Can you give us a link to a page with the problem?
Reply With Quote
  #5  
Old 04-16-2013, 10:31 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no java errors.
here is a page that will not show the "Facebook" button:

http://www.cruisin.me/info/carnival/

It consistently will not show the "Facebook" button on all custom pages, but appears correctly on all vB standard pages.

-----------
Edit: These custom pages all reside outside of the forum directory, so if something in java/css is using a relative reference it probably isn't getting loaded. But I didn't find anything myself.
Reply With Quote
  #6  
Old 04-16-2013, 10:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think the facebook button that you've added at the top is interfering with the built-in one. I see these 2 warnings in the js console:

Code:
The "fb-root" div has not been created, auto-creating
FB.getLoginStatus() called before calling FB.init().

I think it might be because the new buttons call the facebook script before the html for the built-in vb button is reached. I'm not sure what to do about that - maybe try moving the js for the add buttons to be later in the code? I guess if it's a mod that will be difficult.
Reply With Quote
  #7  
Old 04-16-2013, 10:59 PM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh, you found the conflict. Thanks.

It wasn't quite what you thought but I know where the conflict is now. The links at the top of the page are just hyperlinks to social pages with no java, so the issue wasn't there.


Lightbulb goes off... the "Facebook" connect button is not showing on ANY page that has "AddThis" social sharing code. Which for me is all custom pages, CMS articles, threads, etc - a ton of pages


Seems that anyone using AddThis on vBulletin should be seeing this issue.

-------------------------
Edit: Found some info on AddThis for asynchronous loading. Seems to have solved the conflict. Thanks again.

http://support.addthis.com/customer/...is-performance
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06314 seconds
  • Memory Usage 2,214KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete