PDA

View Full Version : Miscellaneous Hacks - Move Facebook Like Button To Postbit [Before Signature]


LOGECT
07-21-2011, 10:00 PM
Info:
Move the Facebook like button from SHOWTHREAD ( above threads ) to postbit or postbit_legacy ( before signature ) template.


Screenshot:

https://vborg.vbsupport.ru/attachment.php?attachmentid=131318&stc=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:
<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:

{vb:raw template_hook.postbit_signature_start}With:
<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
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
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
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

RustedBucket
04-07-2012, 02:44 PM
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
if ($vbulletin->options['logect_fbpostbit_enabled']){
to this
if ($this->registry->options['logect_fbpostbit_enabled']){
should solve the problem across upgrades.