22857 Posts in 9972 Topics by 2805 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|Go to End|
30 May 2010 at 7:06am
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.
Here is how the page is supposed to look. The Support guy made this page up for me:
Anyways, could someone take a look at this and let me know if they have any thoughts about it?
Thanks so much.
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.
2 June 2010 at 7:23am
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,
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.
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>
Also you don't need swfobject for embedding quicktime content.
I hope it helps
3 June 2010 at 2:57am
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,
|Go to Top|