public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
adding gametrailers and atomfiles bbcode for video embeds

git-svn-id: http://eldorado.googlecode.com/svn/trunk@507 
9c008b19-a030-0410-9975-d76d301b4276
trevorturk (author)
Mon Nov 05 20:08:52 -0800 2007
commit  21fb189834148579aca2775dee41adadbaf9fc2a
tree    fd0d7c5118ce6f42dd28b69d46838dd9bf74e689
parent  42bc3de5791930e278a63d6fbc40804fdd6d6df9
...
31
32
33
34
 
 
 
35
36
37
...
40
41
42
43
 
44
45
46
...
31
32
33
 
34
35
36
37
38
39
...
42
43
44
 
45
46
47
48
0
@@ -31,7 +31,9 @@ module BBCodeizer
0
       :myspacetv => [ /\[myspacetv\](.+?)myspace(.+?)videoid=(.+?)\[\/myspacetv\]/i, '<embed src="http://lads.myspace.com/videos/vplayer.swf" flashvars="m=\3&v=2&type=video" type="application/x-shockwave-flash" width="430" height="346"></embed>' ],
0
       :collegehumor => [ /\[collegehumor\](.+?)collegehumor.com\/video:(.+?)\[\/collegehumor\]/i, '<embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=\2" quality="best" width="400" height="300" type="application/x-shockwave-flash"></embed>' ],
0
       :metacafe => [ /\[metacafe\](.+?)metacafe.com\/watch\/(.+?)\/(.+?)\/\[\/metacafe\]/i, '<embed src="http://www.metacafe.com/fplayer/\2/\3.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>' ],
0
- :yahoovid => [ /\[yahoovid\](.+?)id=(.+?)&(.+?)vid=(.+?)'(.+?)\[\/yahoovid\]/i, '<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="id=\2&vid=\4" type="application/x-shockwave-flash" width="425" height="350"></embed>' ]
0
+ :yahoovid => [ /\[yahoovid\](.+?)id=(.+?)&(.+?)vid=(.+?)'(.+?)\[\/yahoovid\]/i, '<embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf" flashvars="id=\2&vid=\4" type="application/x-shockwave-flash" width="425" height="350"></embed>' ],
0
+ :gametrailers => [ /\[gametrailers\](.+?)gametrailers.com\/player\/(.+?).(.+?)\[\/gametrailers\]/i, '<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="480" height="392"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid=/2"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid=27505" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="392"></embed> </object>' ],
0
+ :atomfilms => [ /\[atomfilms\](.+?)atomfilms.com\/film\/(.+?)\[\/atomfilms\]/i, '<embed src="http://www.atomfilms.com:80/a/autoplayer/shareEmbed.swf?keyword=\2" width="426" height="350"></embed>' ]
0
     }
0
 
0
     # Tags in this list are invoked. To deactivate a particular tag, call BBCodeizer.deactivate.
0
@@ -40,7 +42,7 @@ module BBCodeizer
0
                 :url_with_title, :url_sans_title, :image, :size, :color,
0
                 :code, :quote, :youtube, :googlevid, :flash, :spoiler, :nsfw, :mp3,
0
                 :superdeluxe, :comedycentral, :revver, :myspacetv, :collegehumor,
0
- :metacafe, :yahoovid ]
0
+ :metacafe, :yahoovid, :gametrailers, :atomfilms ]
0
 
0
     # Parses all bbcode in +text+ and returns a new HTML-formatted string.
0
     def bbcodeize(text)

Comments

    No one has commented yet.