Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Problem embedding Video & Problem with Website Contact Form


Go to End


5 Posts   3581 Views

Avatar
Agni

Community Member, 5 Posts

30 May 2010 at 7:06am

Hello,

I'm using a new video e-mail program that you can also embed videos in your website. It also has a website sign-up contact form as well as a lot of other options.

The way that these embedded objects are coded doesn't seem to work well with the CMS. Could someone with some expertise take a look at the coding for the following website as I'm sure it is just some simple things that I need to change to allow this type of code.

Here is my sample webpage that I've made up with the two things I want to have. As you can see the Webform is screwed up. It shouldn't have the red around the asterisks and it isn't showing the security code that is required. As you should also see the video does not show up but the Realplayer button shows up saying you can download it.

NOTE: The videos is just a test video. :)

http://www.thehappymonks.com/auto/

Here is how the page is supposed to look. The Support guy made this page up for me:

http://apps.attainresponse.com/home/happymonks@comf5.com/Test/

Anyways, could someone take a look at this and let me know if they have any thoughts about it?

Thanks so much.

Kevin Seyler

Avatar
ayyurek

Community Member, 41 Posts

2 June 2010 at 3:51am

Hi if you are coding something in the template, there should not be any problems. But if you are embedding it in the HTML editor, some of your codes can be cleaned automatically by TinyMCE.

You can try adding this line to the _config.php file which is located under mysite folder;

HtmlEditorConfig::get('cms')->setOption('verify_html', 'false'); // turn off html validation 

I hope it will help.

Avatar
Agni

Community Member, 5 Posts

2 June 2010 at 7:23am

Hello,

I get the following error when I visit my website if I add that to the file you specified:

Fatal error: Class 'HtmlEditorConfig' not found in /home/theh7033/public_html/mysite/_config.php on line 21

Why do I have that error?

Thanks so much,

Kevin

Avatar
ayyurek

Community Member, 41 Posts

3 June 2010 at 12:50am

Actually I don't know, which version of SS you have, and if you installed everything correctly or not. So I can not say anything.
But now I looked at your html code, and I can say that this is not a Silverstripe problem. The problem is, you are trying to embed a Quicktime mp4 file as flash. That's why it doesn't work.
Try this code below. If you will have problem, try to google about embedding mp4 files.

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="280" HEIGHT="210" >
<PARAM NAME="src" VALUE="http://apps.attainresponse.com/video/happymonks@comf5-com/1275157792391.mp4" >
<PARAM NAME="autoplay" VALUE="true" >
<EMBED SRC="http://apps.attainresponse.com/video/happymonks@comf5-com/1275157792391.mp4" TYPE="image/x-macpaint"
PLUGINSPAGE="http://www.apple.com/quicktime/download" WIDTH="280" HEIGHT="210" AUTOPLAY="true"></EMBED>
</OBJECT>

Also you don't need swfobject for embedding quicktime content.
I hope it helps

Avatar
Agni

Community Member, 5 Posts

3 June 2010 at 2:57am

Hello,

The code that I've installed was exactly as I received it from Attainresponse(now comF5). They had the html code to install in my website. As you can see in my original comment there is a second link that has the same code embedded and the video plays fine. It really seems like the CSS is either stripping some of the code out of the original code or messing with the code. I've attached the original code that was received from AttainResponse. And you can probably see that some of the code has been stripped now.

I installed it using your code and the video plays but there are no control's etc.

Thanks so much,

Kevin

Attached Files