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
Search Repo:
adding hide bbcode
trevorturk (author)
Sun May 11 18:51:14 -0700 2008
commit  2d1dff7f57334b7d85558b7aa42ea88dd2c7751f
tree    c8641bebe6cc85ca49dcee70ee6bdb03d192c99b
parent  541f1647a7957bfa376cb40525e98b55654c7b1a
...
26
27
28
 
29
30
31
...
44
45
46
47
48
49
 
 
 
50
51
52
...
26
27
28
29
30
31
32
...
45
46
47
 
 
 
48
49
50
51
52
53
0
@@ -26,6 +26,7 @@ module BBCodeizer
0
       :flash => [ /\[flash\](.+?)\[\/flash\]/i, '<object width="100%" height="100%"><param name="movie" value="\1"></param><embed src="\1" type="application/x-shockwave-flash" width="100%" height="100%"></embed></object>' ],
0
       :spoiler => [ /\[spoiler\](.+?)\[\/spoiler\]/im, '<a href="#" class="spoiler-link" onclick="$(\'_RANDOM_ID_\').toggle(); return false;">SPOILER</a><div id="_RANDOM_ID_" class="spoiler" style="display:none;">\1</div>' ],
0
       :nsfw => [ /\[nsfw\](.+?)\[\/nsfw\]/im, '<a href="#" class="nsfw-link" onclick="$(\'_RANDOM_ID_\').toggle(); return false;">NSFW</a><div id="_RANDOM_ID_" class="nsfw" style="display:none;">\1</div>' ],
0
+ :hide => [ /\[hide=(.+?)\](.+?)\[\/hide\]/im, '<a href="#" class="hide-link" onclick="$(\'_RANDOM_ID_\').toggle(); return false;">\1</a><div id="_RANDOM_ID_" class="hide" style="display:none;">\2</div>' ],
0
       :mp3 => [ /\[mp3\](.+?)\[\/mp3\]/i, '<script language="JavaScript" src="/javascripts/audio-player.js"></script><object type="application/x-shockwave-flash" data="/flash/player.swf" id="_RANDOM_ID_" height="24" width="290"><param name="movie" value="/flash/player.swf"><param name="FlashVars" value="playerID=_RANDOM_ID_&amp;soundFile=\1"><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"></object>' ],
0
       :superdeluxe => [ /\[superdeluxe\](.+?)superdeluxe.com\/sd\/contentDetail.do\?id=(.+?)\[\/superdeluxe\]/i, '<object width="400" height="350"><param name="allowFullScreen" value="true" /><param name="movie" value="http://www.superdeluxe.com/static/swf/share_vidplayer.swf" /><param name="FlashVars" value="id=\2" /><embed src="http://www.superdeluxe.com/static/swf/share_vidplayer.swf" FlashVars="id=\2" type="application/x-shockwave-flash" width="400" height="350" allowFullScreen="true" ></embed></object>' ],
0
       :comedycentral => [ /\[comedycentral\](.+?)comedycentral.com\/motherload\/index.jhtml\?ml_video=(.+?)\[\/comedycentral\]/i, '<embed FlashVars="config=http://www.comedycentral.com/motherload/xml/data_synd.jhtml?vid=\2%26myspace=false" src="http://www.comedycentral.com/motherload/syndicated_player/index.jhtml" quality="high" bgcolor="#006699" width="340" height="325" name="comedy_player" align="middle" allowScriptAccess="always" allownetworking="external" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>' ],
0
@@ -44,9 +45,9 @@ module BBCodeizer
0
     # Tags in this list are invoked. To deactivate a particular tag, call BBCodeizer.deactivate.
0
     # These names correspond to either names above or methods in this module.
0
     TagList = [ :bold, :italic, :underline, :email_with_name, :email_sans_name,
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
+ :url_with_title, :url_sans_title, :image, :size, :color, :code,
0
+ :quote, :youtube, :googlevid, :flash, :spoiler, :nsfw, :hide, :mp3,
0
+ :superdeluxe, :comedycentral, :revver, :myspacetv, :collegehumor,
0
                 :metacafe, :yahoovid, :flickr, :gametrailers, :slideshare, :funnyordie,
0
                 :atomfilms ]
0
 

Comments

    No one has commented yet.