Site in read-only mode
This site is now read-only following the release of MyBB 1.8 and the new mods site.
If you are looking for MyBB 1.8 mods please click here to visit the new mods site.
You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.
[MyCode] Rutube
Allows you to embed rutube.ru videos
Regular Expression:
\[rutube=([0-9]+)x([0-9]+)\](.*?)\[\/rutube\]
Replacement:
<object width="$1"
height="$2">
<param name="movie"
value="http://video.rutube.ru/$3"></param>
<param name="wmode" value="window"></param>
<param name="allowFullScreen"
value="true"></param>
<embed src="http://video.rutube.ru/$3"
type="application/x-shockwave-flash" wmode="window" width="$1"
height="$2" allowFullScreen="true" ></embed>
</object>
How it works:
- RuTube links always look like
http://rutube.ru/tracks/1960121.html?v=2f2743ca8db69b2fd6a44d7a9fb4d98c
The value of v is the unique hash we need
(2f2743ca8db69b2fd6a44d7a9fb4d98c in this case).
- In this case we work with the standard resolution (470x353), the code
would be
[rutube=470x353]2f2743ca8db69b2fd6a44d7a9fb4d98c[/rutube]
Alternate solution:
Regular Expression:
\[rutube=([0-9]+)x([0-9]+)\]http:\/\/rutube\.ru\/tracks\/([0-9]+)\.html\?v=(.*?)\[\/rutube\]
Replacement:
<object width="$1"
height="$2">
<param name="movie"
value="http://video.rutube.ru/$4"></param>
<param name="wmode" value="window"></param>
<param name="allowFullScreen"
value="true"></param>
<embed src="http://video.rutube.ru/$4"
type="application/x-shockwave-flash" wmode="window" width="$1"
height="$2" allowFullScreen="true" ></embed>
</object>
In this case you could use the code
[rutube=470x353]http://rutube.ru/tracks/1960121.html?v=2f2743ca8db69b2fd6a44d7a9fb4d98c[/rutube]