Need help? Check out our Support site, then

[sourcecode] tag

  1. Hello,

    I have the a blog post that has [sourcecode language="php"][/sourcecode] with the following code:

    function mediaplugin_filter_ism_callback($link, $autostart=false) {
      global $CFG;
      $url = $link[1];
      if (empty($link[3]) or empty($link[4])) {
        $mpsize = '';
        $size = 'width="600" height="400"';
        $autosize = 'true';
      } else {
        $size = 'width="'.$link[3].'" height="'.$link[4].'"';
        $mpsize = $size;
        $autosize = 'false';
      $mimetype = mimeinfo('type', $url);
      $autostart = $autostart ? 'true' : 'false';
      return $link[0].
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" '.$size.'>
    <param name="source" value="'.$CFG->wwwroot.'/filter/mediaplugin/SmoothStreamingPlayer.xap"/>
    <!--param name="onError" value="onSilverlightError" /-->
    <param name="background" value="white" />
    <param name="minRuntimeVersion" value="4.0.50401.0" />
    <param name="autoUpgrade" value="true" />
    <param name="InitParams" value="selectedcaptionstream=textstream_eng,mediaurl='.$url.'" />
    <a href="" style="text-decoration:none">
    <img src="" alt="Get Microsoft Silverlight" style="border-style:none"/>

    Unfortunately, after I publish the post the php string '<span>...</span>' gets all messed up (the content itself not just the viewing). I am using Chrome 19 but I am getting the same results with IE and Safari. Any suggestions or workarounds? I have tried escaping the <span>...</span> to no avail.

    Kind Regards,

    The blog I need help with is

  2. I have same issue. Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.