Back to vBulletin 4.x Add-ons

Facebook Videos updated BBCODE
Mod Version: 1.00, by naveeid

vB Version: 4.x.x Rating: (5 votes - 5.00 average) Installs: 16
Released: 30 May 2015 Last Update: Never Downloads: 0
Not Supported Template Edits Translations  



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.

Thanks.

Demo Page
http://www.nidokidos.org/threads/232632
screen shots are attached

Download

No files for download.

Screenshots

Click image for larger version
Name:	1.JPG
Views:	94
Size:	40.4 KB
ID:	152545   Click image for larger version
Name:	2.JPG
Views:	42
Size:	33.4 KB
ID:	152546  

Similar Mods

BB Code Enhancements BBCode: Embed Facebook Videos in your forum. vBulletin 3.8 Add-ons

vblts.ru supports vBulletin®, 2022-2024