vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - Add New Facebook "Like" Button and Social Plugins (and OpenGraph to Headinclude) (https://vborg.vbsupport.ru/showthread.php?t=242525)

elemoum 05-21-2010 11:45 AM

thanks kall...does it works only in the navbar template? would be nice to be able to place the button at the bottom for example.

Xencored 05-21-2010 01:50 PM

Quote:

Originally Posted by elemoum (Post 2041278)
thanks kall...does it works only in the navbar template? would be nice to be able to place the button at the bottom for example.

look at the last 3 pages that what i did all the info is there :)

I have to say tho i took it of
i "Think" and this is a Think facebook was slowing my site down alot seem to improve tons after i clicked the off part :/
shame because i love this idea

kall 05-22-2010 07:10 PM

Quote:

Originally Posted by Animemike (Post 2041366)
look at the last 3 pages that what i did all the info is there :)

I have to say tho i took it of
i "Think" and this is a Think facebook was slowing my site down alot seem to improve tons after i clicked the off part :/
shame because i love this idea

That is weird.. the only thing that should be slow is the Like Button itself, it shouldn't cause the rest of the page to hang.

If you take out this bit and place it manually somewhere in headinclude, does it make a difference?

PHP Code:

<div id="fb-root"></div

<
script

  
window.fbAsyncInit = function() { 

    
FB.init({ 

      
appId  '{vb:raw vboptions.ogfb_appid}'

      
status true// check login status 

      
cookie true// enable cookies to allow the server to access the session 

      
xfbml  true  // parse XFBML 

    
}); 

  }; 



  (function() { 

    var 
document.createElement('script'); 

    
e.src document.location.protocol '//connect.facebook.net/en_US/all.js'

    
e.async true

    
document.getElementById('fb-root').appendChild(e); 

  }()); 

</
script


Xencored 05-26-2010 04:18 PM

Quote:

Originally Posted by kall (Post 2041971)
That is weird.. the only thing that should be slow is the Like Button itself, it shouldn't cause the rest of the page to hang.

If you take out this bit and place it manually somewhere in headinclude, does it make a difference?

PHP Code:

<div id="fb-root"></div

<
script

  
window.fbAsyncInit = function() { 

    
FB.init({ 

      
appId  '{vb:raw vboptions.ogfb_appid}'

      
status true// check login status 

      
cookie true// enable cookies to allow the server to access the session 

      
xfbml  true  // parse XFBML 

    
}); 

  }; 



  (function() { 

    var 
document.createElement('script'); 

    
e.src document.location.protocol '//connect.facebook.net/en_US/all.js'

    
e.async true

    
document.getElementById('fb-root').appendChild(e); 

  }()); 

</
script


Hey Kall sorry been busy mate
Anyways i turned it back on and it was fine. Must of been a bad day i guess
It still working awesome <3

kall 05-27-2010 03:36 AM

Phew! :)

That code really should be placed immediately after <body> to help it load in synch with the rest of the page, but where it is, shouldn't do any harm.

Xencored 05-30-2010 01:14 AM

Yo Kall :D

I tryed to get it working on my 4.0.1 forum and give me

Code:

Parse error: syntax error, unexpected '[' in /home/**/includes/class_core.php(4029) : eval()'d code on line 12

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php(4029) : eval()'d code:12) in [path]/includes/functions.php on line 3742

Am guessing its a no no than
Thanks (still running fine on my other one :up:)

Xencored 06-01-2010 06:56 PM

Meh god dam Error now lol

Code:

The page at http://www.myanimeisland.com/threads/89-Some-changes-) could not be reached.
on the main site :D

kall 06-01-2010 07:04 PM

Hmm.
Quote:

<meta property="og:url" content="http://www.myanimeisland.com/threads/89-Some-changes-?" />
That session id must be what is causing the problem. :(

Gargi 06-01-2010 07:33 PM

I got similar problems. I guess there are some changes on FB's side :confused:

Xencored 06-01-2010 07:39 PM

Quote:

Originally Posted by kall (Post 2046641)
Hmm.

That session id must be what is causing the problem. :(

Should i remove it than mate? *wishes he knew code like Kall* :D


Quote:

Originally Posted by Gargi (Post 2046655)
I got similar problems. I guess there are some changes on FB's side :confused:

There allways seem to be pissing about with it :(


All times are GMT. The time now is 06:21 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.01770 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete