Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Facebook Videos updated BBCODE Details »
Facebook Videos updated BBCODE
Mod Version: 1.00, by naveeid (Coder) naveeid is offline
Developer Last Online: Apr 2019 I like it Show Printable Version Email this Page

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1.JPG
Views:	83
Size:	40.4 KB
ID:	152545   Click image for larger version

Name:	2.JPG
Views:	32
Size:	33.4 KB
ID:	152546  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements BBCode: Embed Facebook Videos in your forum. ITDarasgah vBulletin 3.8 Add-ons 9 23 Oct 2014 10:38

Comments
  #2  
Old 30 May 2015, 13:23
thenicehorizon thenicehorizon is offline
 
Join Date: Dec 2012
great job
thank you very much
Reply With Quote
  #3  
Old 30 May 2015, 13:31
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
welcome sir
__________________
------------------

Nidokidos Official forum
Reply With Quote
  #4  
Old 30 May 2015, 17:20
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Suggestion: Duplicate this to fix You-Tube BB code so it recognizes https://
Reply With Quote
  #5  
Old 01 Jun 2015, 02:29
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
ok sir i will try but right now youtube is not working in my country.
__________________
------------------

Nidokidos Official forum
Reply With Quote
  #6  
Old 09 Jun 2015, 09:42
sticky sticky is offline
 
Join Date: Sep 2003
Get this error:

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
<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>
Reply With Quote
  #7  
Old 09 Jun 2015, 16:43
concepts's Avatar
concepts concepts is offline
 
Join Date: May 2005
Real name: Jamale
Ignore it.... I did, code still works perfectly. Just choose continue
__________________

Achieving Superior Aesthetic Conditioning
Reply With Quote
  #8  
Old 01 Jul 2015, 20:46
edgeless edgeless is offline
 
Join Date: Mar 2013
Yes, ignore the warning and click 'continue'. The code works beautifully! Thank you kindly, naveeid
Reply With Quote
  #9  
Old 04 Aug 2015, 21:06
akz645 akz645 is offline
 
Join Date: Jul 2015
It worked

Here are some 'improvements'/ 'further help' for those who need it:
The bbcode_video template is located here:
Admin CP -> Styles & Templates -> Style Manger -> Edit templates -> BB Code Layout Templates (double click) -> bbcode_video (edit)

Originally Posted by naveeid View Post
1) you need to create an application for your website on facebook , and configure all the settings. its easy , just search how to do it.
Link: https://www.vbulletin.com/docs/html/facebook_enable
Note: Skip the 'quick settings' once you select that you're using for a website (the WWW. circle)
Then you'll see:


Originally Posted by naveeid View Post

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
You get an error if you remove the first and last line. Hence I didn't remove them.

In other words, I replaced this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Oh & I didn't like the whole 'like' button below the facebook video + it was much lower down than the video.
Hence I removed things from the replacement code (when adding a new BB code):

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Finally, I'd recommend switching your bbcode_video template (except for the FB edit you did above) to this:
http://www.vbulletin.org/forum/showthread.php?t=283594

Last edited by akz645; 04 Aug 2015 at 21:17.
Reply With Quote
  #10  
Old 24 Aug 2015, 08:09
ximcix ximcix is offline
 
Join Date: Mar 2005
Post

Hello guys.
I have a problem here. I tried the above mod and it did not work for me.

Facebook now shows video url with the person's (or page's) vanity url in the string:
https://www.facebook.com/JustForFunTvVideos/videos/883585621689227

I tried embedding the URL above as

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and it just displayed the URL as a link.

Then I tried an excerpt from you code and used https://www.facebook.com/video.php?v=883585621689227
same result. But if I click the link, the video plays on facebook

after taking a break for a couple hours, I remembered that the old Facebook video URL format was actually https://www.facebook.com/video/video.php?v=
so I tried https://www.facebook.com/video/video.php?v=883585621689227 and it worked.

Now my issue is, if the average user wants to share a video on my forum, copies a url such as: https://www.facebook.com/JustForFunTvVideos/videos/883585621689227
they will just see the URL as a link on the page.


SUMMARY
All of the following links point to the same video and they all load on facebook.com, but only the one with "/video/video.php?v=" worked for me using the mod above:
https://www.facebook.com/JustForFunT...83585621689227
https://www.facebook.com/video.php?v=883585621689227
https://www.facebook.com/video/video...83585621689227
Reply With Quote
  #11  
Old 25 Aug 2015, 00:05
akz645 akz645 is offline
 
Join Date: Jul 2015
Originally Posted by ximcix View Post
Hello guys.
I have a problem here. I tried the above mod and it did not work for me.
You're doing it incorrectly. Please follow all the steps. This allows facebook to work in a BB code, it does not fix vbulletins built in video BB code for facebook.
If you're unsure about the original post, please look at my post here for further clarification -> Click this.

On the BB code, you only need to insert the ID, you do not insert anything else.

For example:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

->
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

[fb]883585621689227[/fb]
The full video link is:
https://www.facebook.com/JustForFunT...83585621689227

Last edited by akz645; 25 Aug 2015 at 01:02.
Reply With Quote
  #12  
Old 31 Aug 2015, 19:38
mapleleaffans's Avatar
mapleleaffans mapleleaffans is offline
 
Join Date: Apr 2011
Real name: Paul
Just installed this and it works fantastic. Thank you naveeid for sharing this mod with us!
Reply With Quote
  #13  
Old 09 Sep 2015, 13:49
Keyser Soze's Avatar
Keyser Soze Keyser Soze is offline
 
Join Date: Apr 2005
Originally Posted by ximcix View Post
Hello guys.
I have a problem here. I tried the above mod and it did not work for me.

Facebook now shows video url with the person's (or page's) vanity url in the string:
https://www.facebook.com/JustForFunTvVideos/videos/883585621689227
I'm also interested in how vbulletin's internal video parser can be fixed so it will detect Facebook's new video-url-structure. If anyone could tell me where in the code for this is located in the vbulletin software, I can try to fix it. But I don't know where it is located.
Reply With Quote
  #14  
Old 09 Sep 2015, 20:13
akz645 akz645 is offline
 
Join Date: Jul 2015
Originally Posted by Keyser Soze View Post
I'm also interested in how vbulletin's internal video parser can be fixed so it will detect Facebook's new video-url-structure. If anyone could tell me where in the code for this is located in the vbulletin software, I can try to fix it. But I don't know where it is located.
http://www.vbulletin.org/forum/showt...=283594&page=3
That's where I discuss it with BOP5 (moderator on this website).

It is located here:
AdminCP -> Styles & Templates -> Search in Template: bbcode_video -> bbcode_video (edit)

The bottom vb if condition is for facebook.

You can also edit a file from your FTP.
/includes/xml/bbcode_video_vbulletin.xml file
-> http://tracker.vbulletin.com/browse/VBIV-15670

However the fix BOP5 provided no longer works.

Good luck
Reply With Quote
  #15  
Old 10 Sep 2015, 11:16
Keyser Soze's Avatar
Keyser Soze Keyser Soze is offline
 
Join Date: Apr 2005
Thanks, I was able to fix it by extending the regular expression in the file bbcode_video_vbulletin.xml with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After doing that, you will have to set your admincp to debug mode an click on "Rebuild -> Rebuild Video BB Codes" to import the changes from the xml file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:12.

Layout Options | Width: Wide Color: