Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I added two new bbcode tags. Frames and video.
Frames was created with the help of OmnipotentEntity.
Here's some samples:
01:00.02
01:00.00
00:59.98
The amount of frames appears in human readable format. Hover over it, and it'll display the original amount.
Just place a number between [ frames ] and [ /frames ].
You can also control the frames per second used for conversion. Default is 60. Specify another by adding @60.1 to the end of the number, or whatever amount you like.
Like so:
06:40.00 which was made with: [ frames ]20000@50[ /frames ].
The other new tag, video, allows embedding video from YouTube, Google Video, DailyMotion, and Viddler. I'll try to add support for Archive.org/Flowplayer/MP4 some other day.
For now, just place the full URL from the site into video tags like so: [ video ]http://www.youtube.com/watch?v=gKvaWShi-oI[ /video ]
Here it is in action:
Dailymotion:
Link to video
Viddler:
Link to video
YouTube:
Link to video
Google Video:
Link to video
You can also specify custom width and heights. Like so: [ video width=800 height=600 ]http://www.youtube.com/watch?v=gKvaWShi-oI[ /video ].
Sample:
Link to video
Enjoy!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
I'm very much a Happygon!
No, even better... Excitedgon!
Guys, just, seriously now, tell Nach that you love him already. If you don't, I'll be forced to begin my Go gay for Nach 2011 campaign at some point in the future. The woman are too awesome to have to settle for Nach.
Just out of curiosity, are there any platforms with a frames per second rate that repeats endlessly after the decimal point in base 10? (i.e. if there was one that had 30.333... fps)
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Do we currently support any bbcode which consists of only an open and not a close tag?
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
I suppose not. I just can't see the reason why XML ideology must be imitated, as it only adds useless clutter. (OTOH, even XML supports single tags in the form of <tag />.)
But I suppose that if it would require an extensive refactoring of the phpbb engine to support single tags, it's not worth it.
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Well, you'll be happy to know that the new frames module that was added to the Wiki at the same time as this does not require a close tag. Hopefully authors will make use of it in new submission notes.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Brushy wrote:
Now, how about some better moderating tools, such as possibility to merge threads? :)
It's in the pipeline, be patient.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 11/11/2006
Posts: 1235
Location: United Kingdom
Is there a limit to the size of the video in tags specified?
[video width=800 height=144]http://www.youtube.com/watch?v=gKvaWShi-oI[/video]
No.... fixed, I can still test freaky abnormal sizes wheee my reign of terror with the video tag has been ceased.
Behold, a whole new reign of terror with frames! Test: 02:30.0202:30.0210:10:01:40.0000:00.4000:00.00Link to videoLink to video
Hidden messages have been squashed (though remain in the post source!)
<adelikat> I am annoyed at my irc statements ending up in forums & sigs
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Okay, I made some cosmetic improvements, and now [ s ] Strikethrough Text[ /s ] is also supported.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Congratulations on the new bbcodes!
I remember, I once administrated a forum a few years ago, and it wasn't easy to add new bbcodes, with all the Regular Expressions, the templates, and so on.
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I made a huge commit today:
Very experimental! Replacing custom bbcode regex based parser with a handwritten recursive descent parser, as the former seemed to die with complex bbcode. Added support for superscript and subscript via sup and sub. Added syntax highlighting for several different languages (C, C++, D, Java, Lua, JavaScript, PHP, Python, Perl, BASIC, AVISynth, Makefiles, BASH, DOS, SQL, Diff, HTML, CSS, INI Files, Windows Registry) to code. Added email, like url, but for E-Mail. google for links to searching, also supporting Google Image Search and Google Code Search via parameter. Lastly, added support for tables (table, tr, td). New engine is now case insensitive, and extremely extensible.
The new video width and height syntax matches that of images, use the following:
[video=160x144]URL[/video]
The code tag takes the following parameters for syntax highlighting: c, c++, d, java, asm, make, lua, js, php, py, sql, diff, xml, dos, bash, perl, css, html, basic, ini, reg, avi. And some aliases of those.
Google takes the optional parameter images or code.
Enjoy!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Language: lua
local c={}
c.Y=1
while true do
joypad.set(1, c)
end
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.