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)

BirdOPrey5 12-19-2010 05:10 PM

"og" is the name of the standard given to these tags, short for 'open graph.' Other sites besides facebook could use them but I don't know of any that do.

Can you give a link to a thread on your forum? Facebook visits your page to pull this info so your thread needs to be visible to the public for the tags to work right.

Replicators 12-19-2010 06:14 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2136435)
"og" is the name of the standard given to these tags, short for 'open graph.' Other sites besides facebook could use them but I don't know of any that do.

Can you give a link to a thread on your forum? Facebook visits your page to pull this info so your thread needs to be visible to the public for the tags to work right.

Ok nvm then, my board is disabled atm so maybe once i open it, it will work.

BirdOPrey5 12-19-2010 08:41 PM

Probably. :up:

Cobra-J82 12-22-2010 12:49 AM

If you dont want this like button to be shown in specific forums add

Code:


<if condition="$forum[forumid]=='7,8,29,30,31,32,33,40'">
<else />

THE LIKE BUTTON CODE

</if>

The numbers are the forum id

muratcan25 01-07-2011 07:37 AM

YouSite.Com/showthread.php?p the page could not be reached at.
.php?p vBSEO user of
I wonder what's wrong

Replicators 01-16-2011 06:18 PM

1 Attachment(s)
Here is where i put it.

Go into Showthread and find:

Code:

<!-- toolbar -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>

After the <tr> put in:

Code:

<td id="fb-root"><script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : 'yourappID',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true  // parse XFBML
    });
  };
 
  (function() {
    var e = 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> <fb:like layout="standard" show_faces="false" width="300" action="like" colorscheme="dark" /></td>

Of course, change the colorscheme to what scheme you have on the forum.

NOTE: If someone can help me make it to where the background color is what it's supposed to be, that would be awesome as it don't look exactly right this way.

SamirDarji 01-20-2011 09:06 AM

Quote:

Originally Posted by Replicators (Post 2150147)
Here is where i put it.

This is exactly what I was looking to do. :)

What do you mean by the background color? Of the Like button?

Jay106n 01-20-2011 10:11 PM

I installed this using the XFBML Method, works like a charm on FF, but is a no go on IE.

Jay106n 01-20-2011 11:05 PM

I found it works on some threads in 3.8.0 , but not others. Any ideas?

BirdOPrey5 01-21-2011 12:40 AM

I know with the twitter button threads with special characters in the title will stop it from working... basically anything non-english.


All times are GMT. The time now is 09:35 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.01323 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
  • (3)bbcode_code_printable
  • (2)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