Yet Another Forum.NET
»
YAF Forum Discussions
»
YAF General
»
Facebook Video Embedding, similar to youtube?
Rank: YAF Forumling
Joined: 8/3/2010(UTC) Posts: 2 Location: nj
|
Does anyone know how to go about adding in the embed tags for a Facebook video? I see that you can use [youtube] and the like, but not sure if I can add facebook to that list. Has anyone tried to pull this off? EDIT: I got it- here's the code. Description: [facebook]Video ID Number[/facebook] Search REGEX: \[facebook\](?<id>(.+?))\[/facebook\] Replace REGEX: <!-- BEGIN facebook vid--><embed src="http://www.facebook.com/v/${id}" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="360"></embed><!-- END facebook vid--> Replace Variables: id When you use the code, paste the video id in the [facebook] tags, not the entire URL. Edited by user Thursday, August 05, 2010 12:13:37 PM(UTC)
| Reason: Not specified
|
|
|
|
|
|
|
|
|
|
Rank: YAF Forumling
Joined: 8/3/2010(UTC) Posts: 2 Location: nj
|
|
|
|
|
|
|
 Rank: YAF DeveloperMedals:   Joined: 7/22/2009(UTC) Posts: 321  Location: Tehran Thanks: 77 times Was thanked: 59 time(s) in 47 post(s)
|
Would appreciate it if you share the code baristadude |
If at first you don’t succeed, call it version 1.0 |
|
|
|
|
|
 Rank: YAF MVPJoined: 5/18/2007(UTC) Posts: 595   Location: Tehran Thanks: 67 times Was thanked: 43 time(s) in 37 post(s)
|
Kamyar wrote:Would appreciate it if you share the code baristadude Plus 1 |
Half of my life was elapsed in front of monitors, waiting for progress bars to reach their 100%. |
|
|
|
|
|
Rank: YAF Head Dude
Joined: 10/9/2004(UTC) Posts: 3,899  Location: Raleigh, NC Thanks: 123 times Was thanked: 307 time(s) in 175 post(s)
|
Like your custom topic images... |
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect.”.  |
|
|
|
|
|
 Rank: YAF DeveloperMedals:   Joined: 7/22/2009(UTC) Posts: 321  Location: Tehran Thanks: 77 times Was thanked: 59 time(s) in 47 post(s)
|
Got it. This should do it: Code:<object width="400" height="224" > <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="movie" value="http://www.facebook.com/v/xxx" /> <embed src="http://www.facebook.com/v/xxx" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="224"> </embed> </object> xxx is the video id. See attached. Edited by user Wednesday, August 04, 2010 9:53:55 AM(UTC)
| Reason: Not specified File Attachment(s): Kamyar attached the following image(s): |
If at first you don’t succeed, call it version 1.0 |
|
|
|
|
|
 Rank: YAF DeveloperMedals:   Joined: 7/22/2009(UTC) Posts: 321  Location: Tehran Thanks: 77 times Was thanked: 59 time(s) in 47 post(s)
|
Here's the BBCode Module. Download and unrar. Go to: Admin->Settings->BBCode Extensions->Import From XMLBrowse and import the provided xml file. Also, replace languages/english.xml with the one I have provided. You have to add <Resource tag="FACEBOOKMOD_DESCRIPTION">Put Facebook Video ID in Here</Resource> In <page name="BBCODEMODULE"> in case that you use a language other than english. see screenshots for more demonstration on how to use. File Attachment(s): Kamyar attached the following image(s): |
If at first you don’t succeed, call it version 1.0 |
 1 user thanked Kamyar for this useful post.
|
|
|
|
| Users browsing this topic |
|
guest
|
Yet Another Forum.NET
»
YAF Forum Discussions
»
YAF General
»
Facebook Video Embedding, similar to youtube?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.