1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you want premium products then purchase our VIP or SVIP plans
  3. Dont forget read our rules HERE Also anyone caught Leeching this content or Scamming will be banned on numerous networks.
    Dismiss Notice
  4. Dont forget we do not allow Multiple Accounts, so all of your accounts as well as your IP will be banned.
    Dismiss Notice
  5. Tired of Download Limits ? UPGRADE Today!
    Dismiss Notice

FREE Facebook Videos updated BBCODE

Discussion in 'vBulletin Template Mods & Extras' started by HAWK, Mar 24, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    1,143
    Trophy Points:
    113
    Gender:
    Male
    21e85kw-1.jpg

    This mod will update the old cold of vbulletin mod to the latest code released until 1st june 2015 by facebook administration.

    This mod will perform 2 major operations
    1) update the old video codes posted through video button on vbulleten4 WYSWYG editor
    2) we will create a new bbcode for facebook videos. e.g. [fb] Video id [/fb]

    1) First of all make it sure that your facebook Platform is enabled for your forum.
    Admin CP -> Settings -> Options -> Facebook options -> enable facebook platform
    you need to create an application for your website on facebook , and configure all the settings. its easy , just search how to do it.

    2) Go to style manager , edit templates -> BBCODE layout templates -> bbcode_video

    Code:
    Select FROM THIS LINE
    <vb:elseif condition="$provider == 'facebook'" />
    UNTIL THIS LINE
    </vb:if>
    and replace these lines with this code
    <div class="fb-video" data-href="https://www.facebook.com/video.php?v={vb:raw code}"
      data-width="500" data-allowfullscreen="true"></div>
    <br><br><br><br>
    <div class="fb-like" data-href="https://www.facebook.com/nidokidos1" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
    Now untill here we have updated the code of all the existing facebook videos on the forun
    and now we will make a new BBCode for facebook videos

    3) Go to admincp -> Custom BB code -> add a new BBCODE
    Title :- Facebook videos
    BB Code Tag Name :- fb

    replacement :-
    Code:
    <div class="fb-video" data-href="https://www.facebook.com/video.php?v={param}"
      data-width="500" data-allowfullscreen="true"></div>
    <br><br><br><br>
    <div class="fb-like" data-href="https://www.facebook.com/nidokidos1" data-layout="standard" data-action="like" data-show-faces="true" data-share="false"></div>
    Example :- [fb]1411628811495[/fb]
    description :- give video id between [fb] tags

    Use option :- NO
    Disable BB Code Within This BB Code :- Yes
    Disable Smilies Within This BB Code :- Yes
    Disable Word Wrapping Within This BB Code :- Yes
    Disable Automatic Link Parsing Within This BB Code :- NO

    Now save that BB code
    and you have done it.
    Note:- Please replace https://www.facebook.com/nidokidos1 with your website official page on facebook if you have any.
    1.JPG
     

Share This Page

Post thread