vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Move Facebook Like Button To Postbit [Before Signature] (https://vborg.vbsupport.ru/showthread.php?t=267240)

LOGECT 07-21-2011 10:00 PM

Move Facebook Like Button To Postbit [Before Signature]
 
1 Attachment(s)
Info:
Move the Facebook like button from SHOWTHREAD ( above threads ) to postbit or postbit_legacy ( before signature ) template.


Screenshot:

https://vborg.vbsupport.ru/attachmen...1&d=1311357167

Note:
- Works with vb. 4.1.3 +
- vBulletin Facebook like option must be enabled
- Shows only in the first post


Installation:
1-Import XML file (as product) through AdminCP: Plugin System > Manage Products > [Add/Import Product]

2-Open your SHOWTHRAED template and remove the following code:
Code:

        <vb:if condition="$show['fb_likebutton']">
            {vb:raw fblikebutton}
        </vb:if>

3- In your postbit or postbit_legacy template find and replace the following code:

Code:

{vb:raw template_hook.postbit_signature_start}
With:
Code:

<vb:if condition="$post[postcount] == 1">
{vb:raw fblikebutton}
</vb:if>
{vb:raw template_hook.postbit_signature_start}

Done.

To set options:
Go to: vBulletin Options > LOGECT - Facebook Button In Postbit

Versions:
v1.0 22 July 2011 - Firs relase

fevredsuk 08-12-2011 08:46 AM

only running 4.0.5 and it doesn't work :(

cindy helmond 08-12-2011 11:48 AM

Quote:

Originally Posted by fevredsuk (Post 2232565)
only running 4.0.5 and it doesn't work :(

4.1.2 not working

LOGECT 08-13-2011 08:36 AM

It works on 4.1.4 +

fevredsuk 08-13-2011 09:47 PM

Quote:

Originally Posted by LOGECT (Post 2232922)
It works on 4.1.4 +


yeah I read that originally but gave it a try anyway.

any chance of releasing it for other versions or making it

4.xx

sivaganeshk 08-26-2011 01:57 PM

Doesn't show when I display adsense at the end of the first post via DP ads :(
but works

Lord. Dela 08-29-2011 10:25 PM

Quote:

Originally Posted by fevredsuk (Post 2232565)
only running 4.0.5 and it doesn't work :(


The same, i doesnt work for 4.05

RBrown12 01-04-2012 08:58 PM

not working for 4.1.8

GameOverViper 01-04-2012 10:46 PM

Not working for 4.1.9

LOGECT 01-06-2012 09:57 AM

I've tested it on vb 4.1.9 & it seems that it only works on postbit template NOT Postbit_legacy (Vertical Postbit Template), i will update it Once I realized what is the problem :D


All times are GMT. The time now is 06:46 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.01230 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)pagenav_pagelink
  • (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