Sponsored Content
Full Discussion: How to use YouTube tags
The Lounge What is on Your Mind? How to use YouTube tags Post 302157906 by Perderabo on Sunday 13th of January 2008 02:52:23 PM
Old 01-13-2008
How to use YouTube tags

We have tags to allow embedding a YouTube video in a thread. Here is how they work.... First I need to find the url of a YouTube video that I want to use. Here is one: http://www.youtube.com/watch?v=Do5vj3D-OD4

That "Do5vj3D-OD4" is the key. So I can do this:
[size=+1][b]Rakim by Dead Can Dance[/b][/size]
[youtube]Do5vj3D-OD4[/youtube]
to get this:

Rakim by Dead Can Dance


Sometimes I find a YouTube url that looks like this: http://uk.youtube.com/watch?v=QQ8Fzd3eH0c
I can always change the "uk" (or whatever) in the url to "www" and get the same video. So I can just use the "QQ8Fzd3eH0c" with the youtube tags and it should work. If this doesn't work at first, you might try waiting a little while if the video was recently uploaded. But just in case you really need to use an alternate youtube server, there is syntax for that too. To get this video from the uk server, I can use:
[size=+1][b]Ever Dream by Nightwish[/b][/size]
[youtube=uk]QQ8Fzd3eH0c[/youtube]
to get this:

Ever Dream by Nightwish
[youtube=uk]QQ8Fzd3eH0c[/youtube]

But use this alternate syntax only if you can't get the first syntax to work.

Please note that most videos will involve subject matter that is only appropriate in the forums in the Unix Lounge where rule 3 is not in force.
 

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Nice YouTube Videos

What are they doing? :D kyJHeIqYoLQ ---------- Post updated 11-14-09 at 10:24 AM ---------- Previous update was 11-13-09 at 04:53 PM ---------- Heard of them? Who's them? :b: Totally Hidden Extreme Magic (1/6) mSLMOUOtaQQ Totally Hidden Extreme Magic (2/6) 2bwp2GUrNNc Totally... (3 Replies)
Discussion started by: sparcguy
3 Replies

2. War Stories

Any change on youtube for good?

I could not find the proper forum for this, though reading the headlines, but there is one struggle for normal downloads. I need a hint for the former normal download. About two weeks it may be that the well known youtube platform makes it quite dificult to download some files. So I tried wget,... (2 Replies)
Discussion started by: 1in10
2 Replies

3. UNIX for Beginners Questions & Answers

Problems to install youtube-dl

Hello, I have been experimenting several difficulties to install youtube-dl. On its website, it suggests four different ways of installing it, using curl, wget, pip or brew. I tried the first one following the command that they gave: which resulted in: The second suggestions that tells... (3 Replies)
Discussion started by: colt
3 Replies

4. What is on Your Mind?

YouTube: How to Use Code Tags and Format Posts @UNIX.com

By special request, and long overdue, I have updated our "code tags" video and so now we have: How to Use Code Tags and Format Posts @UNIX.com in 4K https://youtu.be/4BuPvWJV__k (3 Replies)
Discussion started by: Neo
3 Replies
MojoMojo::Formatter(3pm)				User Contributed Perl Documentation				  MojoMojo::Formatter(3pm)

NAME
MojoMojo::Formatter - Base class for all formatters SYNOPSIS
package MojoMojo::Formatter::Simple; use parent qw/MojoMojo::Formatter/; sub format_content_order { 14 } # so that it runs after inclusion of obscene web sites # (MojoMojo::Formatter::Include runs at 6) sub format_content { my ($class, $content, $c) = @_; $$content =~ s/fuck/f**k/g; return $content; } DESCRIPTION
This is the class to inherit from if you want to write your own formatter. WRITING YOUR OWN FORMATTER
See the synopsis for a really simple formatter example. MojoMojo uses Module::Pluggable::Ordered to process all the formatter plugins. Just specify when you want to trigger your formatter by providing a format_content_order method which returns a number to specify when you want to run. The plugin order for the default plugins is currently as follows: 1 - MojoMojo::Formatter::Redirect - handles {{redirect /path}} 5 - MojoMojo::Formatter::Include - handles {{include <url>}} before all other plugins, so that transcluded sections from the same wiki get parsed for markup 10 - MojoMojo::Formatter::CPANHyperlink - handles {{cpan My::Module}} 10 - MojoMojo::Formatter::YouTube - handles {{youtube <url>}} 10 - MojoMojo::Formatter::Wiki - handles [[wikilinks]] 10 - MojoMojo::Formatter::Pod - handles {{pod}} ... {{end}} blocks 14 - MojoMojo::Formater::IRCLog - handles {{irc}} ... {{end}} blocks 14 - MojoMojo::Formatter::SyntaxHighlight - Performs syntax highlighting on code blocks 15 - Main formatter (MojoMojo::Formatter::Markdown or MojoMojo::Formatter::Textile) 16 - MojoMojo::Formatter::Defang - removes harmful HTML and XSS 91 - MojoMojo::Formatter::Comment - handles {{comments}}, inserts a comment box 95 - MojoMojo::Formatter::TOC - replaces {{toc}} with a table of contents Note that if your formatter expects HTML text, it should run after the main formatter. METHODS
format_content If you want your formatter to do something, you also need to override "format_content". It gets passed its classname, a scalar ref to the content, and the context object. It should return the scalar ref. main_format_content Override this method if your formatter is a primary one (equivalent to Markdown or Textile). It gets passed the same arguments as "format_content". Also make sure to update "Site settings" (/.admin). Note that the main formatter runs at 15. module_loaded Return true if a formatter module is loaded. gen_re gen_re(qr/irc/) Returns a regular expression for the given tag between matching double braces. SEE ALSO
MojoMojo, MojoMojo::Formatter::Textile, MojoMojo::Formatter::Markdown AUTHORS
Marcus Ramberg <mramberg@cpan.org> LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-05-23 MojoMojo::Formatter(3pm)
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy