View Full Version : BB Code Enhancements - BBCode: Embed Facebook Videos vb4
hazem_aliraqi
09-28-2015, 09:00 PM
hello everyone
this BBCODE for Embed Videos from Facebook
-- installing --
1- Go to admincp -> Custom BB code -> add a new BBCODE
2- Title : Facebook videos
3- BB Code Tag Name : fb
4- replacement :
<div class="fb-video" data-href="https://www.facebook.com/facebook/videos/{param}/" data-width="500"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/facebook/videos/{param}/"><a href="https://www.facebook.com/facebook/videos/{param}/"></a></blockquote></div></div>
Example :- 123456
description : Embed Facebook Videos
image : images/fb-icon.png (or the link to fb-icon.png )
5- 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
save ....
make as install
Charis
09-30-2015, 01:40 PM
Excellent, thank you!
hazem_aliraqi
09-30-2015, 01:54 PM
Excellent, thank you!
you welcome
Gripi
09-30-2015, 05:14 PM
Thank you.. really usefull
Thangvip9x
10-01-2015, 11:23 PM
You are most welcome!, but I've been known
DannyITR
10-09-2015, 01:12 PM
This is great thanks.
I searched but is there any way to embed a facebook POST rather than just a video?
ProFifaLeagues
10-09-2015, 02:36 PM
To embed a post:
Go to the post you want to embed.
Click the icon in the top right of the post and select Embed Post.
Copy and paste the code that appears and add it to your own website or web page.
DannyITR
10-09-2015, 02:56 PM
To embed a post:
Go to the post you want to embed.
Click the icon in the top right of the post and select Embed Post.
Copy and paste the code that appears and add it to your own website or web page.
No, that wont' work because a vbulletin post doesn't parse html. I want to embed the fb post into a vbulletin post.
MarkFL
10-09-2015, 02:58 PM
No, that wont' work because a vbulletin post doesn't parse html. I want to embed the fb post into a vbulletin post.
You could put the HTML into a custom BBCode, and allow any identifiers to be the {param}. :)
Iris_Ford
10-16-2015, 01:50 PM
What do i do wrong? I get the same error for any video i try
https://vborg.vbsupport.ru/external/2015/10/7.jpg
hazem_aliraqi
10-18-2015, 06:33 AM
hello Iris :)
copy only the last number
627749030660832
Iris_Ford
10-24-2015, 05:09 AM
Thank you ;)
hazem_aliraqi
10-24-2015, 01:47 PM
Thank you ;)
you welcome
MattGarner
10-30-2015, 10:41 AM
Can't get this working but maybe due to a different URL that this video has? Example:
https://www.facebook.com/uniladmag/videos/1859265807429803/?pnref=story
Using 1859265807429803 for example doesn't load anything. Hmm?
hazem_aliraqi
11-01-2015, 05:10 PM
Can't get this working but maybe due to a different URL that this video has? Example:
https://www.facebook.com/uniladmag/videos/1859265807429803/?pnref=story
Using 1859265807429803 for example doesn't load anything. Hmm?
can u take a screenshot for your result
and make sure u do all steps :)
MattGarner
11-03-2015, 08:03 PM
can u take a screenshot for your result
and make sure u do all steps :)
I re-followed the steps, the screenshot won't show much as nothing actually gets added to the post. It's blank, no text, no video box or any sort of error message. It's like if you entered nothing in the post and you was allowed to submit.
bazookajoe
11-04-2015, 02:30 AM
I get the same results...just a blank white screen
Bastien
11-20-2015, 06:04 AM
Works fine, thank you :)
Iain M
01-07-2016, 10:13 PM
Worked great - thanks!
War Machine
01-10-2016, 07:04 PM
Doesn't work. Blank space, uninstalled.
Alan_SP
04-28-2016, 07:54 PM
For some reason, it works for some, and not for others. Problem is, I'm among those it doesn't work. :(
Is there some others way to embed facebook videos?
gobears20
09-10-2016, 06:05 AM
Any idea as why this doesn't work? I just get a blank screen and no video in the post.
Alan_SP
09-10-2016, 01:51 PM
Here's solution that works for me: https://vborg.vbsupport.ru/showpost.php?p=2556681&postcount=2
You need to change code (i.e. create two BBcodes) for posts and for video, which is pretty simple. Thing is, AJAX disrupts immediate showing of posts or videos, so you need to reload page, if AJAX is used in any way.
Budget101
12-13-2016, 11:45 AM
If you're receiving a white page you'll need to use this instead:
<vb:literal><script src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.2" async></script>
<div class="fb-video" data-href="https://www.facebook.com/{param}/" data-width="500"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/{param}/"><a href="https://www.facebook.com/{param}/"></a></blockquote></div></div></vb:literal>
then when you use the url you would add the following:
if the url to your video was:
https://www.facebook.com/uniladmag/videos/1859265807429803/?pnref=story
you would use this:
uniladmag/videos/1859265807429803
.
By the way, if you're using an older version of 4.x.x you'll need to add the following in your style>templates> additional.css
.fb-video {
max-width: 800px !important;
border: 2px solid grey;
}
specify the max width to your site specs.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.