1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. To combat forum spam, new accounts will need to make at least one (valid) post.
    Otherwise, we will periodically purge all users without posts or that haven't confirmed their account.

Adding only wanted html code to event details

Discussion in 'General Support' started by Ulysses, Jul 19, 2006.

Thread Status:
Not open for further replies.
  1. Hi,

    How can one add html code into Event Details, without the script adding code to it? We want to embed video in them.

    First we disabled TinyMCE, then set Convert Links in HTML to No, to stop the script adding several instances of <a target='_blank' within the code. We added the following code to an event details field:

    Code:
    <div>
      <object id="MediaPlayer" width="288" height="216" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" border="0" standby="Loading Windows Media Player components..." type="application/x-oleobject">
        <param name="FileName" value="http://domain.com/glenworth1.wmv" />
        <param name="ShowControls" value="1" />
        <param name="ShowPositionControls" value="1" />
        <param name="ShowAudioControls" value="1" />
        <param name="ShowStatusBar" value="1" />
        <param name="AutoStart" value="1" />
        <param name="AnimationAtStart" value="1" />
        <param name="AllowScan" value="0" />
        <param name="Volume" value="100" />
      <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://domain.com/glenworth1.wmv" name="MediaPlayer" width=288 height=216 autostart=1 showcontrols=1 volume=100>
          </object>
    </div>
    The addition was not visible in the Event Administration area at all.

    The page source showed:

    Code:
    <br />
    
    <br />
      <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    
        <br />
        <br />
      <br />
          <br />
    It was however visible and did work on the actual page, but with the addition of <br /> by the script to every instance of > as follows:

    Code:
    <div><br />
      <object id="MediaPlayer" width="288" height="216" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" border="0" standby="Loading Windows Media Player components..." type="application/x-oleobject"><br />
        <param name="FileName" value="http://domain.com/glenworth1.wmv" /><br />
        <param name="ShowControls" value="1" /><br />
        <param name="ShowPositionControls" value="1" /><br />
        <param name="ShowAudioControls" value="1" /><br />
        <param name="ShowStatusBar" value="1" /><br />
        <param name="AutoStart" value="1" /><br />
        <param name="AnimationAtStart" value="1" /><br />
        <param name="AllowScan" value="0" /><br />
        <param name="Volume" value="100" /><br />
      <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://domain.com/glenworth1.wmv" name="MediaPlayer" width=288 height=216 autostart=1 showcontrols=1 volume=100><br />
    
          </object><br />
    </div>
    Is there a way around this?
  2. Brian

    Brian EPC Developer Staff Member

    Use the Setup Manager to turn off XSS protection.
  3. It's already off. It was never on.
  4. Brian

    Brian EPC Developer Staff Member

    Can you open a support ticket and include the URL and login to your Setup Manager and I'll take a look.
Thread Status:
Not open for further replies.

Share This Page