BBCode for Facebook Videos (Please help me)

Get help developing custom BBCodes or request one.
gohannx
Registered User
Posts: 21
Joined: Sun Mar 03, 2013 11:49 pm

Re: BBCode for Facebook Videos (Please help me)

Post by gohannx » Fri Nov 01, 2013 10:18 pm

t_backoff wrote:Sorry, I made a small mistake. Tested and working.

BBCode:

Code: Select all

[facebookvideo]{NUMBER1}, {NUMBER2}, {NUMBER3}[/facebookvideo]
HTML replacement:

Code: Select all

<iframe src="https://www.facebook.com/video/embed?video_id={NUMBER1}" width="{NUMBER2}" height="{NUMBER3}" frameborder="0"></iframe>
Thank you so much t_backoff. Now it's working!

You're such a great help. I am troubleshooting this thing in the past 3 weeks! Only yesterday that I resulted to ask some help. Thanks again and more power!

Best regards,
Hann

User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 » Sat Feb 01, 2014 10:42 am

I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>

JMLeblanc23
Registered User
Posts: 2
Joined: Tue Feb 04, 2014 7:37 am

Re: BBCode for Facebook Videos (Please help me)

Post by JMLeblanc23 » Tue Feb 04, 2014 7:44 am

I'm extremely confused. I'm using a proboards forum that uses BBCode and I cannot for the life of me seem to get it to work.

Can you explain how you made it work? I don't understand the difference between the BBCode and HTML replacement.

User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 » Tue Feb 04, 2014 10:11 am

JMLeblanc23 wrote:I'm extremely confused. I'm using a proboards forum that uses BBCode and I cannot for the life of me seem to get it to work.

Can you explain how you made it work? I don't understand the difference between the BBCode and HTML replacement.
https://www.phpbb.com/kb/article/adding ... in-phpbb3/

above tutorial may help you :)

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie » Tue Feb 04, 2014 3:10 pm

I am surprised that you can create bbcodes at all on a proboards setup.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

JMLeblanc23
Registered User
Posts: 2
Joined: Tue Feb 04, 2014 7:37 am

Re: BBCode for Facebook Videos (Please help me)

Post by JMLeblanc23 » Thu Feb 06, 2014 5:52 am

kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
I'm normally pretty computer-literate, but coding has always been tough. What is the relationship between the usage and HTML replacement?

If I were to just paste the HTML replacement, what do I need the BBcode for?

I'm just confused on where the BBcode section goes, because all I see is an open code when I use that.

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Lumpy Burgertushie » Thu Feb 06, 2014 6:24 am

you can't just paste the html in a post. html is not allowed in posts because it would allow just anyone to put code into your board that could do all sorts of terrible things to your web site.

therefore, the phpbb lets you create custom bbcodes that allow only the html you create the button for to be used.

I have no idea what this particular facebook bbcode is supposed to do. I do not use facebook nor do I want to know about it.

however, where it says {URL} is where you would put the actual url you get from facebook or the actual url of the phpbb post you are trying to send to facebook or whatever it is trying to do.

to use it, you click on the facebook bbcode button in your post, it will then display the bbcode like this:

Code: Select all

[facebook][/facebook]
you would then have to put whatever that url is in between those brackets, like this:

Code: Select all

[facebook]http://whatever.com[/facebook]
then, when you submit the post, it will show up whatever that bbcode is supposed to show .


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

buksida
Registered User
Posts: 261
Joined: Thu Feb 04, 2010 9:11 am

Re: BBCode for Facebook Videos (Please help me)

Post by buksida » Tue Dec 20, 2016 2:54 am

kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
That does work, thanks. Any way to just take the video though and not the whole post?

User avatar
newsbee
Registered User
Posts: 277
Joined: Sat Mar 29, 2003 1:07 pm
Location: Moscow
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by newsbee » Thu Feb 23, 2017 6:37 am

It works in 3.2, thanks.

Works great for photos and videos - just need to use the correct URL to show only the photo or the vid.

Jestcoyote
Registered User
Posts: 34
Joined: Sun Jul 07, 2013 5:58 am
Location: Omaha, NE
Name: Mark
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by Jestcoyote » Tue Jul 04, 2017 7:52 pm

Just found this thread... Thanks! I just used that this morning.
Happy 4th of July!
I guess that [bbvideo] isn't enabled on here...

User avatar
kas5986
Registered User
Posts: 227
Joined: Sat Dec 26, 2009 11:16 am
Location: Karachi, Pakistan
Name: syed shafiq
Contact:

Re: BBCode for Facebook Videos (Please help me)

Post by kas5986 » Wed Sep 20, 2017 5:47 pm

JMLeblanc23 wrote:
Thu Feb 06, 2014 5:52 am
kas5986 wrote:I use this work great for me

BBCode usage

Code: Select all

[facebookpost]{URL}[/facebookpost]
HTML replacement

Code: Select all

<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-post" data-href="{URL}" data-width="466">
<div class="fb-xfbml-parse-ignore"><a href="{URL}">Post</a> </div></div>
I'm normally pretty computer-literate, but coding has always been tough. What is the relationship between the usage and HTML replacement?

If I were to just paste the HTML replacement, what do I need the BBcode for?

I'm just confused on where the BBcode section goes, because all I see is an open code when I use that.

well i didn't tested but must work given below for videos only

bbCode usage :

Code: Select all

[facebookvideo]{URL}[/facebookvideo]
HTML replacement:

Code: Select all

  <!-- Load Facebook SDK for JavaScript -->
  <div id="fb-root"></div>
  <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) return;
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
    fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));</script>

  <div class="fb-video" data-href="{URL}" data-width="500" data-show-text="false">
  </div>

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 6 guests

cron