Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Move Facebook Like Button To Postbit [Before Signature] Details »»
Move Facebook Like Button To Postbit [Before Signature]
Version: 1.0, by LOGECT LOGECT is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.1.4 Rating:
Released: 07-21-2011 Last Update: Never Installs: 13
Uses Plugins Template Edits
 
No support by the author.

Info:
Move the Facebook like button from SHOWTHREAD ( above threads ) to postbit or postbit_legacy ( before signature ) template.


Screenshot:



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

Download Now

File Type: xml product-logect_fbpostbit.xml (2.4 KB, 106 views)

Screenshots

File Type: jpg 1.jpg (134.8 KB, 0 views)
File Type: jpg 2.jpg (111.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
hexeditor, sivaganeshk

Comments
  #12  
Old 04-07-2012, 02:44 PM
RustedBucket RustedBucket is offline
 
Join Date: Nov 2004
Location: Albemarle, NC
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This wasn't working on 4.1.11 PL1 the recurring problem I think is in how VB is moving things around in the registry. In the plugin manager for both buttons:
LOGECT - Facebook Button In Postbit_PLreg
LOGECT - Facebook Button In Postbit_Preg

If you change
Code:
if ($vbulletin->options['logect_fbpostbit_enabled']){
to this
Code:
if ($this->registry->options['logect_fbpostbit_enabled']){
should solve the problem across upgrades.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04171 seconds
  • Memory Usage 2,233KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (2)post_thanks_box
  • (2)post_thanks_box_bit
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (3)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete