From 94f7fa737a45a163808138f4e6602cecc7cc962e Mon Sep 17 00:00:00 2001 From: Kazuki Przyborowski Date: Wed, 20 Apr 2011 04:03:00 +0000 Subject: [PATCH] Added support to embed videos from DailyMotion and Vimeo. ^_^ You can also embed images from TinyPic. :P git-svn-id: svn://svn.code.sf.net/p/intdb/svn/trunk@631 2b68903e-0b30-0410-9a39-a2e4f3c5be39 --- inc/misc/ibbcode.php | 5 ++++- inc/versioninfo.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/misc/ibbcode.php b/inc/misc/ibbcode.php index 205b956..11b646b 100644 --- a/inc/misc/ibbcode.php +++ b/inc/misc/ibbcode.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: ibbcode.php - Last Update: 12/07/2010 SVN 600 - Author: cooldude2k $ + $FileInfo: ibbcode.php - Last Update: 04/19/2011 SVN 631 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="ibbcode.php"||$File3Name=="/ibbcode.php") { @@ -37,6 +37,9 @@ return $text; function bbcode_parser($text) { $text = preg_replace("/\[YouTube\]([A-Za-z0-9\.\-_]+)\[\/YouTube\]/is", "\n\n\n\n", $text); +$text = preg_replace("/\[DailyMotion\]([A-Za-z0-9\.\-_]+)\[\/DailyMotion\]/is", "\n\n\n\n\n\n\n", $text); +$text = preg_replace("/\[Vimeo\]([A-Za-z0-9\.\-_]+)\[\/Vimeo\]/is", "\n\n\n\n\n\n", $text); +$text = preg_replace("/\[TinyPic\]([A-Za-z0-9\.\-_]+)\,([A-Za-z0-9\.\-_]+)\[\/TinyPic\]/is", "\"\\2\"", $text); $text = preg_replace("/\[B\](.*?)\[\/B\]/is", "\\1", $text); $text = preg_replace("/\[I\](.*?)\[\/I\]/is", "\\1", $text); $text = preg_replace("/\[S\](.*?)\[\/S\]/is", "\\1", $text); diff --git a/inc/versioninfo.php b/inc/versioninfo.php index 2bc7286..145efe2 100644 --- a/inc/versioninfo.php +++ b/inc/versioninfo.php @@ -11,7 +11,7 @@ Copyright 2004-2011 iDB Support - http://idb.berlios.de/ Copyright 2004-2011 Game Maker 2k - http://gamemaker2k.org/ - $FileInfo: versioninfo.php - Last Update: 04/19/2011 SVN 630 - Author: cooldude2k $ + $FileInfo: versioninfo.php - Last Update: 04/19/2011 SVN 631 - Author: cooldude2k $ */ $File3Name = basename($_SERVER['SCRIPT_NAME']); if ($File3Name=="versioninfo.php"||$File3Name=="/versioninfo.php") { @@ -27,7 +27,7 @@ function version_info($proname,$subver,$ver,$supver,$reltype,$svnver,$showsvn) { return $return_var; } // Version number and date stuff. :P $VER1[0] = 0; $VER1[1] = 4; $VER1[2] = 3; $VERFull[1] = $VER1[0].".".$VER1[1].".".$VER1[2]; -$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 630; +$VER2[0] = "Alpha"; $VER2[1] = "Al"; $VER2[2] = "SVN"; $SubVerN = 631; $SVNDay[0] = 04; $SVNDay[1] = 19; $SVNDay[2] = 2011; $SVNDay[3] = $SVNDay[0]."/".$SVNDay[1]."/".$SVNDay[2]; $AltName = "RDB"; $AltName2 = "ReneeDB"; $RName = "iDB"; $SFName = "IntDB"; $RFullName = "Internet Discussion Boards"; $AltFullName = "Renee Discussion Boards"; -- 2.11.4.GIT