2006-04-17, 04:59 AM
Ok , I get one PLUG Plugin Media Tag of killed
Plugin Media Tag
This plugin use play music, film....you want on mybb.
For all version.
How to use it?
Download media_tag.php . Upload to inc/plugins. Login ACP > Plugins manager > Active (Media Tag)
Demo: attachment
Enjoy Smile
media_tag.php
=========================
Plugin Media Tag
This plugin use play music, film....you want on mybb.
For all version.
How to use it?
Download media_tag.php . Upload to inc/plugins. Login ACP > Plugins manager > Active (Media Tag)
Demo: attachment
Enjoy Smile
media_tag.php
PHP Code:
<?php
/*
Music, film for My BB
(c) 2005 by Vietnam RC - killed
Website: http://www.thanhquang.info
Upload to inc/plugins. Login ACP > Plugins manager > Active (Media Tag)
*/
$plugins->add_hook("parse_message", "media_tag");
function media_tag_info()
{
return array(
"name" => "Media Tag",
"description" => "Add tag ([media][/media]) into your board.",
"website" => "http://www.thanhquang.info",
"author" => "Vietnam RC - killed",
"authorsite" => "http://www.thanhquang.info",
"version" => "1.1",
);
}
function media_tag_activate()
{
}
function media_tag_deactivate()
{
}
function media_tag($message)
{
// [media]Li�n kết[/media]
$message = preg_replace("#\[media\]([a-z]+?://){1}(.+?)\[/media\]#i",
"<object classid=\"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6\" width=\"350\" height=\"350\">
<param name=\"URL\" value=\"$1$2\">
<param name=\"rate\" value=\"1\">
<param name=\"balance\" value=\"0\">
<param name=\"currentPosition\" value=\"0\">
<param name=\"defaultFrame\" value>
<param name=\"playCount\" value=\"1\">
<param name=\"autoStart\" value=\"-1\">
<param name=\"currentMarker\" value=\"0\">
<param name=\"invokeURL\s\" value=\"-1\">
<param name=\"volume\" value=\"100\">
<param name=\"mute\" value=\"0\">
<param name=\"uiMode\" value=\"full\">
<param name=\"stretchToFit\" value=\"0\">
<param name=\"windowlessVideo\" value=\"0\">
<param name=\"enabled\" value=\"-1\">
<param name=\"enableContextMenu\" value=\"-1\">
<param name=\"fullScreen\" value=\"0\">
<embed src=\"$1$2\" quality=\"high\"></embed>
Please use IE 4.0 or latest.
</object>", $message);
// $message ausgeben
return $message;
}
?>