View Thread
Private Stock » Administrative and Housekeeping » Site Notes
 Print Thread
Edited media_bbcode_include.php
Royce
In order to make the embedded media larger, I edited the media_bbcode_include.php file in the /includes folder:

From
Download source  Code

if (!defined("IN_FUSION")) { die("Access Denied"); }

$text = preg_replace('#\[media\](.*?)\.(mp3|f4a|m4a|aac)\[/media\]#si', '<embed flashvars="file=\1.\2" id="player1" name="player1" allowfullscreen="false" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="480" height="24"/>', $text);
$text = preg_replace('#\[media\](.*?)\[/media\]#si', '<embed flashvars="file=\1&image='.INCLUDES.'bbcodes/media/play.jpg" id="player1" name="player1" allowfullscreen="true" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="480" height="270"/>', $text);
$text = preg_replace('#\[media=(.*?)\.(jpg|jpeg|png|gif)\](.*?)\[/media\]#si', '<embed flashvars="file=\3&image=\1.\2" id="player1" name="player1" allowfullscreen="true" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="480" height="270"/>', $text);


to

Download source  Code

if (!defined("IN_FUSION")) { die("Access Denied"); }

$text = preg_replace('#\[media\](.*?)\.(mp3|f4a|m4a|aac)\[/media\]#si', '<embed flashvars="file=\1.\2" id="player1" name="player1" allowfullscreen="false" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="640" height="24"/>', $text);
$text = preg_replace('#\[media\](.*?)\[/media\]#si', '<embed flashvars="file=\1&image='.INCLUDES.'bbcodes/media/play.jpg" id="player1" name="player1" allowfullscreen="true" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="640" height="430"/>', $text);
$text = preg_replace('#\[media=(.*?)\.(jpg|jpeg|png|gif)\](.*?)\[/media\]#si', '<embed flashvars="file=\3&image=\1.\2" id="player1" name="player1" allowfullscreen="true" allowscripaccess="always" src="'.INCLUDES.'bbcodes/media/player.swf" width="480" height="270"/>', $text);


The original file is still in the folder as media_bbcode_include.php-orrig.
 
Jump to Forum:
Top Top  2,137,545 unique visits  Top Top