hello everyone, im getting some weird symbols and i cant get rid of them =/
i get these symbols displayed -> 
although there is nothing like that in the code.
Here’s the source code:
Page code:
<font size="5"> <span style="font-weight: bold;">The Clips!</span> </font> <br /><br /> [!SimpleVideoShow? &video=`test.wmv` &enableJavaScript=`true`!]
Snippet code:
$snipPath = $modx->config['base_path'] . "assets/snippets/simplevideoshow/";
if (file_exists($snipPath."simplevideoshow.inc.php")){
include_once($snipPath."simplevideoshow.inc.php");
}
else $output="<strong>Bad install</strong> : file '$snipPath.simplevideoshow.class.php' does not exist. Can you check your install, please";
return $output;
Include code:
global $modx;
// ---------------------------------------------------
// Get Language
// ---------------------------------------------------
$language = (isset($language))? $language : "english";
// ---------------------------------------------------
// Include files
// ---------------------------------------------------
$files['language'] = $snipPath."lang/$language.inc.php";
$files['functions'] = $snipPath."simplevideoshow.class.php";
foreach ($files as $filename => $filevalue) {
if (file_exists($filevalue) && $filename != "language") {
include_once($filevalue);
} else if(file_exists($filevalue) && $filename == "language") {
include($filevalue);
$GLOBALS['_lang'] = $_lang;
} else if($filename == "language") {
$output="Language file does not exist Please check: ".$filevalue;
return $output;
} else {
$output=$_lang['error'].__LINE__.") ".$filevalue." ".$_lang['file_does_not_exist'];
return $output;
}
}
// ---------------------------------------------------
// Parameters
// ---------------------------------------------------
$video = isset($video) ? $video: $_lang['error'].__LINE__.") ".$_lang['no_video'];
$videoPath = isset($videoPath) ? $videoPath : "assets/media/";
if (!file_exists( $modx->config['base_path'] . $videoPath.$video)){
$output=$_lang['error'].__LINE__.") ". $modx->config['base_path'] . $videoPath.$video." ".$_lang['file_does_not_exist']."<br />";
return $output;
}
$_video['video']=$modx->config['site_url'].$videoPath.$video;
$_video['width'] = isset($width) ? $width: "400";
$_video['height'] = isset($height) ? $height: "340";
$_video['standby'] = isset($standby) ? $standby: $_lang['standby'];
$_parameter['showcontrols'] = isset($showcontrols) ? $showcontrols: "true";
$_parameter['autostart'] = isset($autostart) ? $autostart: "true";
$_parameter['controller'] = isset($controller) ? $controller: "true";
$_parameter['showstatusbar'] = isset($showstatusbar) ? $showstatusbar: "default";
$_parameter['volume'] = isset($volume) ? $volume: "75%";
$_parameter['animationatstart'] = isset($animationatstart) ? $animationatstart: "default";
$_parameter['transparentatstart'] = isset($transparentatstart) ? $transparentatstart: "true"; //modifié
$_parameter['qtsrcdontusebrowser'] = isset($qtsrcdontusebrowser) ? $qtsrcdontusebrowser: "default";
$_parameter['enablejavascript'] = isset($enablejavascript) ? $enablejavascript: "default";
$_parameter['clicktoplay'] = isset($enablejavascript) ? $enablejavascript: "default";
$_parameter['stretchToFit'] = isset($stretchToFit) ? $stretchToFit: "default";
$_parameter['AutoSize'] = isset($stretchToFit) ? $stretchToFit: "true";
// ---------------------------------------------------
// Begin the traitement
// --------------------------------------------------
$simplevideoshow = null;
if (class_exists('simplevideoshow')) {
$simplevideoshow = new simplevideoshow($_video, $_parameter);
} else {
$output=$_lang['error'].__LINE__.") ".$filevalue." ".$_lang['invalid_class'];
return $output;
}
// Output
$output .= $simplevideoshow->render();
$medhd="<table width='100%' cellspacing='0' cellpadding='0' border='1'>
<tr><td align='center'>";
$medft="</td></tr>
<tr><td width='100%'>
blablabla<br />
this is a test video<br />
</td></tr></table><br /><br />";
$output = $medhd.$output.$medft;
// ---------------------------------------------------
// Output results
// ---------------------------------------------------
return $output;
Actual code:
(...) <div id="block_1" class="subcontent"> <!-- main center column -->
<font size="5"> <span style="font-weight: bold;">The Clips!</span> </font> <br /><br /> <table width='100%' cellspacing='0' cellpadding='0' border='1'>
<tr><td align='center'>
<!-- Internet Explorer Users -->
<object id="player_IE"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
type="application/x-oleobject"
width="400" height="340"
standby="In process..."
>
<param name="url" value="http://chaoticclips.com/assets/media/test.wmv" />
<param name="src" value="http://chaoticclips.com/assets/media/test.wmv" />
<param name="showcontrols" value="true" /><param name="autostart" value="true" /><param name="controller" value="true" /><param name="volume" value="75%" /><param name="transparentatstart" value="true" /><param name="AutoSize" value="true" />
<!-- Non-Internet Explorer Users -->
<!--[if !IE]>-->
<object id="player_NIE"
type="video/x-ms-wmv"data="http://chaoticclips.com/assets/media/test.wmv"
width="400" height="340">
<param name="src" value="http://chaoticclips.com/assets/media/test.wmv" /><param name="showcontrols" value="true" /><param name="autostart" value="true" /><param name="controller" value="true" /><param name="volume" value="75%" /><param name="transparentatstart" value="true" /><param name="AutoSize" value="true" />
</object>
<!--<![endif]-->
</object>
</td></tr>
<tr><td width='100%'>
blablabla<br />
this is a test video<br />
</td></tr></table><br /><br />
</div> <!-- end block 1 --> (...)
if any one could please help me =(
thank you!!