vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Add New Facebook "Like" button to your threads (https://vborg.vbsupport.ru/showthread.php?t=241011)

Uberguilds 04-22-2010 10:31 PM

Postbit_Legacy:

With VBSEO
Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)$_SERVER[VBSEO_URI]?p=$post[postid]&amp;layout=button_count&amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"
 scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px"></iframe>




Without VBSEO
Code:

<iframe src="http://www.facebook.com/plugins/like.php?href=http://(domain)/showthread.php$session[sessionurl]?p=$post[postid]&amp;layout=button_count&amp;show_faces=true&amp;width=&amp;action=like&amp;colorscheme=light"
 scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:100px; height:20px"></iframe>


puertoblack2003 04-22-2010 10:35 PM

this is nice and clean.It'll be nice to have something but for twitter:)

RedTrinity 04-22-2010 11:35 PM

I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?

ericgtr 04-22-2010 11:51 PM

Quote:

Originally Posted by RedTrinity (Post 2025654)
I suppose there is no way to have this mod show the member's forum username, instead of their real name from FB?

Unfortunately not.

TimberFloorAu 04-23-2010 12:45 AM

Code as follows mate:

<vb:if ........>

<--facebook code-->

</vb:if>

Uberguilds 04-23-2010 12:48 AM

Code:

<if condition="$forum[forumid] == 15 || $forum[forumid] == 12 || $forum[forumid] == 13 || $forum[forumid] == 14">
<iframe></iframe>

</if>


PixelFx 04-23-2010 01:06 AM

I had the error for setup .. found putting www.domain.com/forum/ .. in websitehere link above fixed the error for me. Tried both ad version and postbit version.

anyway awesome mod thanks for the work getting this out so fast.

wacnstac 04-23-2010 01:54 AM

So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?

ericgtr 04-23-2010 01:56 AM

Quote:

Originally Posted by wacnstac (Post 2025711)
So I got this working with 3.8.X and and able to click the like button and the numeric value goes up, but nothing every gets posted to my fb wall. What gives?

Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.

ericgtr 04-23-2010 01:57 AM

Quote:

Originally Posted by ericgtr (Post 2025712)
Sorry, as stated I cannot test on 3.8 because I no longer have that version, chances are the URL is not correct though, to double check view the source of your page to see the output URL.

For those who have asked about adding this to user profiles please see this mod https://vborg.vbsupport.ru/showthread.php?t=239424 which adds both the "Like" button and a comments box.


All times are GMT. The time now is 04:28 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.02070 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)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