vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Add Facebook "Like" button to your threads [vB 3.8.x] (https://vborg.vbsupport.ru/showthread.php?t=241053)

wacnstac 04-23-2010 06:41 PM

I've marked as installed. But with as many things as I've checked as liked, I don't see anything on my wall. Any idea what gives?

hubie 04-23-2010 06:44 PM

Quote:

Originally Posted by Yellow Slider (Post 2026037)
why aren't you using the the meta data in the showthread page?

* <meta property="og:title" content="The Rock"/>
* <meta property="og:site_name" content="IMDb"/>
* <meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>

Quote:

Originally Posted by Yellow Slider (Post 2026047)
you should have a version with thread id only, for those who want it just for thr first post

showthread.php?t=xxxxxx

I'll see this. Where do you add meta data? Can you help me? Excuse me for my lack of knowledge :)

Quote:

Originally Posted by AcidX (Post 2026052)
The first post option doesn't work. "Like" buttons show on every first page, not first post.

Edit: it shows on private messages too.

Edit: Fix for private messages and first post on every first page issues:

Replace:
Code:

<if condition="!$GLOBALS['FIRSTPOSTID']">
by:
Code:

<if condition="$post[postcount] == 1">

wacnstac 04-23-2010 06:46 PM

Close but no cigar. I found all my recent likes on my FB profile page. But if I click on any of them in FB I get a blank page. It trys to take me to a garbage URL:

PHP Code:

http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.michigan-sportsman.com%2Fforum%2Fshowthread.php%3Ft%3D333593&h=3f000 

So obviously for this to be of any use at all these links on the user's FB profile page must be live and they must work!

hubie 04-23-2010 07:03 PM

wacnstac, i've checked your site and it's working correctly.

The only thing you have to add now is the conditional:
Code:

<if condition="$post[postcount] % $vboptions[maxposts] == 1">Your Code</if>
Otherwise, the Like button will be shown on every post of a thread.

wacnstac 04-23-2010 07:11 PM

So why don't the URLS on my fb profile page click through to a valid page. That's the most important part!

wacnstac 04-23-2010 07:25 PM

Also need the ability to exclude private forums.

hubie 04-23-2010 09:21 PM

Quote:

Originally Posted by wacnstac (Post 2026126)
Also need the ability to exclude private forums.

Put this code:
Code:

<if condition="$post[postcount] == 1 AND in_array($GLOBALS[forumid], array(X,Y,Z))">Your Code</if>
Where in X,Y,Z you have to put the forum IDs you want the button appear, and in the forum ID not especified the button won?t appear.

wacnstac 04-23-2010 10:59 PM

Thanks, and PM's should be excluded.

Gamelobby 04-24-2010 01:10 AM

This is very cool, but it doesn't seem to work with "Chief 1st post"..?
Any ideas.?

Also how does it work..!?
Any way that i can "like" things from my FB group or company page, instead of my personal profile.?

Floris 04-24-2010 01:20 AM

THe demo page returns: error.


All times are GMT. The time now is 05:02 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.01178 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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