1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Please donate today & help us with our growing server costs or buy premium for access to our premium products
    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:
    575
    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