Brightcove video code snippet keeps disappearing

5 posts by 2 authors in: Forums > CMS Builder
Last Post: September 5, 2012   (RSS)

Re: [NigelGordijk] Brightcove video code snippet keeps disappearing

You need to make it a text field rather than WYSIWYG.
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

Re: [rconring] Brightcove video code snippet keeps disappearing

That just displays the video embedding code on the page, not the video itself. I used a wysiwyg field, clicked on the HTML icon, then pasted the video code. That should convert the code into the embedded video, but doesn't. The code works if I place it onto the page manually with an HTML editor, so I'm assuming the problem isn't with the code itself.
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Brightcove video code snippet keeps disappearing

I just duplicated your problem on a test record. I used textbox as the field type for the code.
On the display page, if you use the code as such, it will display the HTML code:
<?php echo htmlencode($test_videoRecord['content']) ?>

On the other hand, if you use the following, it will display the video properly:
<?php echo $test_videoRecord['content'] ?>

I have always used textbox fields for forms, audio, video embed code and it always works fine.
Ron Conring
Conring Automation Services
----------------------------------------
Software for Business and Industry Since 1987

Re: [rconring] Brightcove video code snippet keeps disappearing

Aha - that worked! Thanks, Ron. I've had to delete the video for now as it's still being worked on, but the embedding code using your method works perfectly.

Cheers,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net