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)
-   -   vBulletin CMS Widgets - 8WayRun.Com - XFBML Facebook Like Box (https://vborg.vbsupport.ru/showthread.php?t=249521)

Jaxel 08-28-2010 10:00 PM

8WayRun.Com - XFBML Facebook Like Box
 
1 Attachment(s)
I was looking a while for a good Facebook Like Box widget, but EVERY SINGLE ONE of them here on VB.org uses the IFRAME version, which is absolutely horrible and not customizable. It is ugly and I just didnt want to use it. So I figured out how to get XFBML working on VB4, and you can customize it. The Facebook platform must be enabled in your settings for this widget to work.

DEMO: http://www.8wayrun.com/content/

INSTALL:
  1. create a new file "facebook.css" and upload to /clientscript.
    Code:

    .fan_box .connect_widget_facebook_logo_menubar  {
            display: none;
    }

    .fan_box .connect_top {
            background: #EDEFF4;
    }

    .fan_box .connections {
            padding: 5px 0px 3px 10px;
            min-height: 0px;
            background: #FFFFFF;
    }

    .fan_box .connections_grid .grid_item {
            padding: 2px 11px 3px 5px;
    }

  2. open "vbulletin_facebook.js" and find:
    Code:

    xfbml:false
    replace with:
    Code:

    xfbml:true
  3. create a new widget, with STATIC HTML
    Code:

    <fb:fan profile_id="PAGE-ID" stream="0" connections="6" logobar="1" width="214" height="206" css="FORUM/clientscript/facebook.css?1"></fb:fan>
  4. replace PAGE-ID with the ID of your facebook page.
  5. replace FORUM with the URL to your forum.

NOTES:
  • This like box by defualt does NOT show the stream, and it only shows 6 connections. You can change these settings easily in the widget code. If you disable the logobar, the widget will add "on Facebook" to the title of your page.
  • Width and Height are set for no stream, with 6 connections in a 240px widget bar. If you want to change these settings, you will need to change the width and height to fit your forum and settings.
  • Facebook CACHES your CSS file! If you change your CSS file, you MUST change the ?1 in your widget to a new number in order to tell the widget which version of your CSS file to use.
  • The CSS file already included is what I use on my forum. You can change this CSS very radically to get your widget to look like anything. You can even make the facebook widget transparent to match your skin.

vo danh 08-29-2010 10:22 AM

thank you share

project-Buckfas 08-29-2010 11:56 AM

Exactly what I was after. Thanks!

sisterhood 08-29-2010 01:18 PM

extra nice thx

Acido 08-29-2010 01:43 PM

Quote:

  1. open "vbulletin_facebook.js" and find:
    Code:
    xfbml:false
    replace with:
    Code:
    xfbml:true

This trick solve many integrations problems on my site.
Thank you!

concepts 08-29-2010 09:06 PM

this should work on 4.0.5 correct? I am not having my connections show

SITE

cory_booth 08-30-2010 12:59 AM

Awesome... Like it was said before, this helps alot of integration issues when calling facebook.js...

Question, anyway we can figure out how to flip the false:true bit so future upgrades won't overwrite the edits in core files?

Tilly 08-30-2010 01:29 AM

Nice job.

Jaxel 08-30-2010 03:29 AM

Quote:

Originally Posted by cory_booth (Post 2091357)
Awesome... Like it was said before, this helps alot of integration issues when calling facebook.js...

Question, anyway we can figure out how to flip the false:true bit so future upgrades won't overwrite the edits in core files?

That false/true bit is hard coded into the VB4 core. Until IB changes it, you'll need to change it after every upgrade of VB. Honestly there is ZERO reason for this flip bit to be marked false; and the fact that it has been marked false makes me wonder if IB even knows what they are doing.

Xtrigit 08-30-2010 06:31 AM

Nice!

nvm.


All times are GMT. The time now is 08:38 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.02102 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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