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)

ericgtr 04-22-2010 08:14 PM

Quote:

Originally Posted by Alien (Post 2025569)
Excellent, eric. Thank you SO much. I'll just add an additional conditional to exclude some forums and we should be all set!

For reference, here is the code for it to only "show" in selected forums:

Code:

<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>

hiker 04-22-2010 08:15 PM

Quote:

Originally Posted by bogley (Post 2025551)
Nice mod. Will install it soon.

Nevermind, couldn't wait. Had to install it now. :D

Working perfectly!

SuperGLS 04-22-2010 08:19 PM

Very cool! I've done in like it post 29 and edited it so that the height=30 instead of 75 and it looks really good.

Would you put that forum conditional right underneath the code from post 29?

SuperGLS 04-22-2010 08:22 PM

Here's a screenshot.

https://vborg.vbsupport.ru/external/2010/04/13.png

neil. 04-22-2010 09:15 PM

Any luck with vbseo, none work for me:

I get errors like:
Code:

htp://forum.kitecrowd.com/%7Bvb:link%20thread,%20%7Bvb:raw%20thread%7D%7D could not be reached.
with http obv.

ericgtr 04-22-2010 09:26 PM

Quote:

Originally Posted by neil. (Post 2025599)
Any luck with vbseo, none work for me:

I get errors like:
Code:

htp://forum.kitecrowd.com/%7Bvb:link%20thread,%20%7Bvb:raw%20thread%7D%7D could not be reached.
with http obv.

Have you tried the code posted up in the second post of this thread?

TimberFloorAu 04-22-2010 09:34 PM

Works a treat thanks Eric

TimberFloorAu 04-22-2010 09:46 PM

Shouldnt :

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

be

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

Da-Vinci 04-22-2010 09:56 PM

Quote:

Originally Posted by ericgtr (Post 2025570)
For reference, here is the code for it to only "show" in selected forums:

Code:

<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>

Thank you Eric, but as for the conditional, is there not a way to just exclude certain forums rather than only show to certain forum as I have many many forums and sub forums that I would like to display the Like button on and only say 4 forums and 7 subforums I would like to exclude lol. I am just finding my way around conditional at the moment and will try to refer to the article that details the conditional to work this one out on my own, but any help is greatly appreciated.

Quote:

Originally Posted by TimberFloorAu (Post 2025616)
Shouldnt :

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

be

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

I don't want to look stupid here but are those 2 conditionals not identical?

TimberFloorAu 04-22-2010 10:12 PM

No he forgot closing bracket ">"


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.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
  • (4)bbcode_code_printable
  • (5)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