2007-08-16, 03:10 AM
I explained how to under this topic ; http://www.warrocktr.com/forum/showthread.php?tid=1280
Name code as akilli.php or whatever u want but extansion must be .php and put that file under inc/plugins doc.
You can make this code better than me =)
Name code as akilli.php or whatever u want but extansion must be .php and put that file under inc/plugins doc.
<?php
// **************************************
// Bu dosya Kaan Topal tarafından 16.08.2007 tarihinde
// kodlanmıştır.Lütfen emeğe saygı gösterelim.
// Kodlama üzerinde istenildiği gibi oynama yapılabilir.
// Yardım için [email protected] adresini
// kullanınız.
// **************************************
$plugins->add_hook("parse_message", "akilli");
function akilli_info()
{
return array(
"name" => "Akilli BBCode",
"description" => "Adds the tag ([akilli][/akilli]) to your forums to insert Akilli.TV videos into posts.",
"website" => "http://www.warrocktr.com",
"author" => "KaanTopal",
"authorsite" => "http://www.warrocktr.com",
"version" => "1.0",
);
}
function akilli_activate()
{
}
function akilli_deactivate()
{
}
function akilli($message)
{
$message = preg_replace("#\[akilli\]([A-Za-z0-9\-\_]+)/(.*?)\[/akilli\]#i",
"<object width=\"450\" height=\"370\">
<param name=\"movie\" value=\"http://212.154.34.36/player2.swf?VDX=http://212.154.34.36/xmlProvider/getVideos.aspx?&VideoURL=http://videopool.akilli.tv/videos/$1/$2&Embed=1\"></param>
<embed src=\"http://212.154.34.36/player2.swf?VDX=http://212.154.34.36/xmlProvider/getVideos.aspx?&VideoURL=http://videopool.akilli.tv/videos/$1/$2&Embed=1\" type=\"application/x-shockwave-flash\" width=\"450\" height=\"370\"></embed></object>", $message);
}
?>
You can make this code better than me =)