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)
-   -   BB Code Enhancements - BBCode: Embed Facebook Videos vb4 (https://vborg.vbsupport.ru/showthread.php?t=320376)

hazem_aliraqi 09-28-2015 09:00 PM

BBCode: Embed Facebook Videos vb4
 
1 Attachment(s)
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 :


HTML Code:

<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 :- [fb]123456[/fb]
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

Quote:

Originally Posted by Charis (Post 2556018)
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:
  1. Go to the post you want to embed.
  2. Click the icon in the top right of the post and select Embed Post.
  3. Copy and paste the code that appears and add it to your own website or web page.

DannyITR 10-09-2015 02:56 PM

Quote:

Originally Posted by ProFifaLeagues (Post 2556679)
To embed a post:
  1. Go to the post you want to embed.
  2. Click the icon in the top right of the post and select Embed Post.
  3. 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

Quote:

Originally Posted by DannyITR (Post 2556680)
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

Quote:

Originally Posted by Iris_Ford (Post 2557525)
Thank you ;)


you welcome

WxP 10-30-2015 12:16 AM

Thank You :)

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/v...3/?pnref=story

Using [fb]1859265807429803[/fb] for example doesn't load anything. Hmm?

hazem_aliraqi 11-01-2015 05:10 PM

Quote:

Originally Posted by MattGarner (Post 2557886)
Can't get this working but maybe due to a different URL that this video has? Example:

https://www.facebook.com/uniladmag/v...3/?pnref=story

Using [fb]1859265807429803[/fb] 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

Quote:

Originally Posted by hazem_aliraqi (Post 2558120)
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....81&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:

PHP Code:


<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:

PHP Code:

if the url to your video was:

https://www.facebook.com/uniladmag/videos/1859265807429803/?pnref=story

you would use this:
[
fb]uniladmag/videos/1859265807429803[/fb]




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

PHP Code:

.fb-video {
max-width800px !important;
border2px solid grey;


specify the max width to your site specs.


All times are GMT. The time now is 04:46 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.01168 seconds
  • Memory Usage 1,773KB
  • 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
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete