Welcome Guest! You can not login or register.
Options
View
Go to last post Go to first unread
Offline baristadude  
#1 Posted : Tuesday, August 03, 2010 10:15:18 AM(UTC)
baristadude

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

Sponsor
Offline baristadude  
#2 Posted : Tuesday, August 03, 2010 2:01:41 PM(UTC)
baristadude

Rank: YAF Forumling

Joined: 8/3/2010(UTC)
Posts: 2
Location: nj

got it with some trial and error.

http://www.baristadude.c...sts&m=49&#post49
Offline Kamyar  
#3 Posted : Wednesday, August 04, 2010 7:18:30 AM(UTC)
Kamyar


Rank: YAF Developer

Medals: Mod Developer Medal of Honor: Wrote a kick-ass Mod and contributed back to the community.Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.

Joined: 7/22/2009(UTC)
Posts: 321
Man
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
Offline herman_herman  
#4 Posted : Wednesday, August 04, 2010 8:58:12 AM(UTC)
herman_herman


Rank: YAF MVP

Medals: Medal of Honor for the SQL Scout: Medal for kicking ass at SQL and helping with database development.Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.Medal of Honor for The Eyes of the Community: Given for being a community hawk, always watching and helping fellow users.

Joined: 5/18/2007(UTC)
Posts: 595
Man
Iran (Islamic Republic Of)
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 1BigGrin
Half of my life was elapsed in front of monitors, waiting for progress bars to reach their 100%.
Offline Jaben  
#5 Posted : Wednesday, August 04, 2010 9:17:57 AM(UTC)
Jaben

Rank: YAF Head Dude

Medals: Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.YAF.NET Supporter: Loves YAF.NET!YAF.NET Supporter: Supports our efforts. Thank you.Medal of Honor for the Support King: Given to a community member who tirelessly answers tons of support questions.

Joined: 10/9/2004(UTC)
Posts: 3,899
Man
Location: Raleigh, NC

Thanks: 123 times
Was thanked: 307 time(s) in 175 post(s)
baristadude wrote:
got it with some trial and error.

http://www.baristadude.c...sts&m=49&#post49

Like your custom topic images... ThumpUp
"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.”.

UserPostedImage
Offline Kamyar  
#6 Posted : Wednesday, August 04, 2010 9:45:16 AM(UTC)
Kamyar


Rank: YAF Developer

Medals: Mod Developer Medal of Honor: Wrote a kick-ass Mod and contributed back to the community.Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.

Joined: 7/22/2009(UTC)
Posts: 321
Man
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):
Facebook Video Embedding Sample.rar (1kb) downloaded 6 time(s).
Kamyar attached the following image(s):
Facebook Video ID.png
If at first you don’t succeed, call it version 1.0
Offline Kamyar  
#7 Posted : Wednesday, August 04, 2010 11:56:06 AM(UTC)
Kamyar


Rank: YAF Developer

Medals: Mod Developer Medal of Honor: Wrote a kick-ass Mod and contributed back to the community.Medal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.

Joined: 7/22/2009(UTC)
Posts: 321
Man
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 XML
Browse 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):
Facebook Video BBCode.rar (17kb) downloaded 22 time(s).
Kamyar attached the following image(s):
Sample1.png
Sample2.png
If at first you don’t succeed, call it version 1.0
thanks 1 user thanked Kamyar for this useful post.
pazuzutherion on 8/27/2010(UTC)
Rss Feed  Atom Feed
Users browsing this topic
guest
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.

Notification

Icon
Error