Jump to content

Recommended Posts

Posted

I have a strange issue with a database field that contains a YouTube video ID. I am displaying the field like this:

{$record->customFieldDisplayByKey('video','display')|raw}

The resulting HTML code starts off like this:

<div class="ipsEmbeddedVideo" contenteditable="false" style="width:640px;max-width:640px;height:390px;"><div>

Notice the width is hard-coded into the element at 640px. I am not sure where this is coming from. It is not coming from our max video width setting from the forum.

I even downloaded the entire community site and did a search through the files for this code, and could not find it. It is possible I could have stupidly modified a template file to force the size like this.

The default video embeds on the forum work fine.

Any ideas? Where is this code originating from?

Posted

 

8 minutes ago, Interferon said:

It is possible I could have stupidly modified a template file to force the size like this

Probably cms -> global -> records -> youtube

But the custom field will pick up whatever settings you've applied to it - so edit the field and see if you have added the height/width parameters and modify them to suit if you have. And if you haven't, then try adding them and setting them to a value of your choice.

image.thumb.png.4bbeb8a230604d12d6ac247c8e3ac452.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...