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)

kall 05-17-2010 05:19 PM

Quote:

Originally Posted by Animemike (Post 2038112)
Lets say am doing this one "8WR_media_details"

PHP Code:

vB_Template::preRegister('8WR_media_details',array('facebook_liked_url' => $facebook_liked_url)); 

Just add that same as you just said?
Thanks again Kall <3

Hang on.. is this the only one you are having issues with, or was that also for the likes of show_entry etc as well?

Xencored 05-17-2010 06:06 PM

Quote:

Originally Posted by kall (Post 2038619)
Hang on.. is this the only one you are having issues with, or was that also for the likes of show_entry etc as well?

All ones mate i posted above :(

kall 05-17-2010 06:22 PM

Quote:

Originally Posted by Animemike (Post 2038656)
All ones mate i posted above :(

Oh.. dude, I am so sorry. Remember the whole "I am getting a horrid flu" thing?

Long story short, I told you to copy/paste/change the wrong line.

PHP Code:

vB_Template::preRegister('blog_show_entry'$templatevalues);
vB_Template::preRegister('album_pictureview'$templatevalues);
vB_Template::preRegister('postbit_legacy'$templatevalues);
vB_Template::preRegister('vbcms_content_article_page'$templatevalues);
vB_Template::preRegister('8WR_media_details'$templatevalues); 


Xencored 05-17-2010 07:19 PM

Quote:

Originally Posted by kall (Post 2038662)
Oh.. dude, I am so sorry. Remember the whole "I am getting a horrid flu" thing?

Long story short, I told you to copy/paste/change the wrong line.

PHP Code:

vB_Template::preRegister('blog_show_entry'$templatevalues);
vB_Template::preRegister('album_pictureview'$templatevalues);
vB_Template::preRegister('postbit_legacy'$templatevalues);
vB_Template::preRegister('vbcms_content_article_page'$templatevalues);
vB_Template::preRegister('8WR_media_details'$templatevalues); 


All right mate hehe

Add in both again?

kall 05-17-2010 07:23 PM

Umm. Nope. I realised where the doubleup was. :)

Pretty sure it's this one: Facebook/OpenGraph Integration - Navbar (and I will have to remember to rename that plugin to 'Button Insert' or something.)

Xencored 05-17-2010 07:32 PM

Quote:

Originally Posted by kall (Post 2038693)
Umm. Nope. I realised where the doubleup was. :)

Pretty sure it's this one: Facebook/OpenGraph Integration - Navbar (and I will have to remember to rename that plugin to 'Button Insert' or something.)

All right still not working :/ maybe what am trying to do just cant be done

mediax 05-17-2010 07:40 PM

hi it's not working :( i can't get the like box on the forums, only a emty box...

www.mforum.nl

kall 05-17-2010 07:50 PM

Quote:

Originally Posted by mediax (Post 2038700)
hi it's not working :( i can't get the like box on the forums, only a emty box...

www.mforum.nl

That's odd.. the code looks fine..

Try this. Change everything within fbog_like_showthread to this:

Code:

<div style="padding: 5px; border: 1px solid #3F6F81; background: #ffffff; font-size: 10px; width: 300px;">
<iframe src="http://www.facebook.com/plugins/like.php?href={vb:raw vboptions.bburl}{vb:raw relpath}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
</div>


kall 05-17-2010 07:51 PM

Oh and.. it would have been really sensible to point out that your site is vSBEOd, and which version you are using.

mediax 05-17-2010 07:57 PM

hi i'm using vbseo 3.5

kall 05-17-2010 08:01 PM

Indeed. Which version of this modification are you using? The vBSEO one would be an assumption on my part, so I need to clarify.

mediax 05-17-2010 08:03 PM

yes i'm using the vbseo version

kall 05-17-2010 08:09 PM

Did using the iframe code instead of the FBML one make any difference?

daveaite 05-17-2010 08:22 PM

Quote:

Originally Posted by Animemike (Post 2038698)
All right still not working :/ maybe what am trying to do just cant be done

Doesn't work either. Uninstalled.

mediax 05-17-2010 08:23 PM

yes it's working but the location is strange

http://www.mforum.nl/magento-install...t-manager.html

Xencored 05-17-2010 08:34 PM

Quote:

Originally Posted by daveaite (Post 2038739)
Doesn't work either. Uninstalled.

I was trying something else
This mod does indeed work the normal way as in "Like under Navbar"

kall 05-17-2010 10:00 PM

Hey dave, you realise I really don't care whether anything works on your site, right?

I guess it's good, because otherwise we'd soon see this released as a Clone addon.

kall 05-17-2010 10:02 PM

Quote:

Originally Posted by mediax (Post 2038740)
yes it's working but the location is strange

http://www.mforum.nl/magento-install...t-manager.html

I can see the other one still there.. did you replace the code in the existing _showthread template?

kall 05-17-2010 10:13 PM

I'm going to take a massive leap here and guess that everyone saying 'it doesnt show' has Facebook Connect or YAFB turned on.

Stretching the guesswork further, it doesn't like getting the FB js called twice. Best use the iframe version if you dont want to turn off FB connect for the time being.

*edit* or try removing portions of the .js that's in the _showthread template.

Xencored 05-17-2010 10:31 PM

Quote:

Originally Posted by kall (Post 2038821)
I'm going to take a massive leap here and guess that everyone saying 'it doesnt show' has Facebook Connect or YAFB turned on.

Stretching the guesswork further, it doesn't like getting the FB js called twice. Best use the iframe version if you dont want to turn off FB connect for the time being.

*edit* or try removing portions of the .js that's in the _showthread template.

I had none of them but like i said it works fine for me :)
i was trying something else :D with the button;)

EDIT!:
dude no idea what the hell is going on BUT!

Its working lol it seems to be working the button is everywhere ive but it :D
Only one problem is left
it said on facebook "User Likes myanimeisland on myanimeisland :D

Getting there! :D

kall 05-19-2010 07:47 AM

Heh, you'll probably figure it out soon. I was surprised to find that the current rendition of Connect doesn't play nicely with the Javascript SDK that makes the full-featured Like button.

Xencored 05-19-2010 08:42 AM

Quote:

Originally Posted by kall (Post 2039677)
Heh, you'll probably figure it out soon. I was surprised to find that the current rendition of Connect doesn't play nicely with the Javascript SDK that makes the full-featured Like button.

:) thanks again kall awesome work :D

Xencored 05-19-2010 06:44 PM

All-so lol sorry XD is there a easy way to change it to just the button without the heads/avys showing in the box :D

kall 05-19-2010 06:49 PM

Yup.

In fbog_like_showthread, find:
PHP Code:

show_faces=true 

Replace with:
PHP Code:

show_faces=false 


Xencored 05-19-2010 06:56 PM

Quote:

Originally Posted by kall (Post 2040052)
Yup.

In fbog_like_showthread, find:
PHP Code:

show_faces=true 

Replace with:
PHP Code:

show_faces=false 


Thanks :D

elemoum 05-20-2010 03:05 PM

is there a way to show the like button only in the showthread site?

kall 05-20-2010 05:21 PM

Quote:

Originally Posted by elemoum (Post 2040586)
is there a way to show the like button only in the showthread site?

Yes indeed. In the conditional that surrounds it in the navbar template, take out everything and change it to:
PHP Code:

<vb:if condition="THIS_SCRIPT == 'showthread'"


kall 05-21-2010 06:51 AM

Quote:

Originally Posted by funmasti (Post 2041103)
thanks nice info..

Thanks, nice spam.

TimberFloorAu 05-21-2010 07:01 AM

Quote:

Originally Posted by kall (Post 2041112)
Thanks, nice spam.

FPMSL

I trawl our boards looking for comments like his !

kall 05-21-2010 07:09 AM

Quote:

Originally Posted by TimberFloorAu (Post 2041131)
FPMSL

I trawl our boards looking for comments like his !

They are all over the place here, on almost every thread in my 'New Posts' search, and the rather inappropriate ones over at .com.

Hopefully he'll have his signature removed/have all his posts deleted/be banned soon.

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 01:01 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.02757 seconds
  • Memory Usage 1,862KB
  • 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
  • (3)bbcode_code_printable
  • (10)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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