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)

TimberFloorAu 04-23-2010 08:11 AM

Quote:

Originally Posted by AURFSCAN (Post 2025802)
confusing..the display and hide are both the same?


how do you combine these conditions?

show in forum
Code:

<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
with
Code:

<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">

thx

Quite easily.

Code:

<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">

<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->

</vb:if></vb:if>


Bellinis 04-23-2010 08:50 AM

One thing I don't understand yet: will this button also show up for users not using facebook/facebook connect?
For people not using FB, this like-button has no use, has it?

Ranger375 04-23-2010 11:37 AM

Is there a way to use option 2, but have it so that it doesnt show the names of the people who like the post?

worried 04-23-2010 11:42 AM

Quote:

Originally Posted by TimberFloorAu (Post 2025818)
Quite easily.

Code:

<vb:if condition="in_array($forum['forumid'],array(2,3,8,9,13))">
<vb:if condition="(THIS_SCRIPT == showthread) AND ($post[postcount] == '1')">

<!-- Facebook Like -->
<iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}}&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:75px"></iframe>
<!-- / Facebook Like -->

</vb:if></vb:if>


TimberFloorAu, could you do me a favor and test your script on your forum. It's not working for me.

ericgtr 04-23-2010 01:18 PM

Quote:

Originally Posted by Bellinis (Post 2025826)
One thing I don't understand yet: will this button also show up for users not using facebook/facebook connect?
For people not using FB, this like-button has no use, has it?

Correct, but with 400 million people using FB most who visit forums will probably already have it.

Lizard King 04-23-2010 02:16 PM

vBSEO owners can use the following fix http://www.vbseo.com/f2/facebook-lik...95/#post265997 to get this mode compatible with vBSEO

War.Frog 04-23-2010 02:25 PM

I'm not really concerned with the private forums - when I create a Like link in one of those, it just says I like my domain (XXX likes www.domain.com). Not an overly bad thing IMO!

ericgtr 04-23-2010 02:30 PM

Quote:

Originally Posted by Lizard King (Post 2025986)
vBSEO owners can use the following fix http://www.vbseo.com/f2/facebook-lik...95/#post265997 to get this mode compatible with vBSEO

Thanks! Updated the first post with this.

dirtycrow 04-23-2010 02:31 PM

OK, so i don't have VBseo installed, i've tried with both "basic Friendly URLs" and "advanced Friendly URLs" in my Server Settings and Optimization Options panel in the admin cp and on my facebook wall it displayed "likes (the forum name)" as opposed to "like (thread title) on (forum name).

is this how its supposed to work? it there something i'm missing to get the title of the thread to display? please advise.

dirtycrow 04-23-2010 02:33 PM

i run a private forum, is that why my thread title are not being shown? my forum is set up so you have to have an account before you see any content.


All times are GMT. The time now is 06:28 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.01267 seconds
  • Memory Usage 1,745KB
  • 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
  • (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