+----------------------------------------------------+
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright (c) 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

/*---------------------------------------------------+
| PHP-Fusion Forum - YouTube Posts
+----------------------------------------------------+
| Copyright (c) 2007 V1P3R
| For PHP-Fusion 6.01.xxx
| Released 17th March 2007
| Tested with PHP-Fusion v6.0.18
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

+----------------------------------------------------+
|                      Install                       |
+----------------------------------------------------+
1/Upload Files in modded-files to your php fusion installation folder. 
3/Enjoy :)

Note:
ALWAYS _BACKUP_ YOUR FILES!

+----------------------------------------------------+
|                  Files Edited                      |
+----------------------------------------------------+
|            Maincore.php Modification               |
+----------------------------------------------------+
Add
$text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object width="425" height="350"><embed src="\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>', $text);

just below the line,
	$text = preg_replace('#\[u\](.*?)\[/u\]#si', '<u>\1</u>', $text);

+----------------------------------------------------+
|                  postnewthread.php                 |
+----------------------------------------------------+
Add
<input type='button' value='YouTube' class='button' style='width:60px;' onClick=\"addText('message', '[youtube]', '[/youtube]');\">

just below,
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('message', '[quote]', '[/quote]');\">

+----------------------------------------------------+
|                     postedit.php                   |
+----------------------------------------------------+
Add
<input type='button' value='YouTube' class='button' style='width:60px;' onClick=\"addText('message', '[youtube]', '[/youtube]');\">

just below,
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('message', '[quote]', '[/quote]');\">
+----------------------------------------------------+
|  Bought To You By V1P3R - More Mods Coming Soon :) |
+----------------------------------------------------+
+----------------------------------------------------+

