Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Interferon Posted February 11, 2021 Posted February 11, 2021 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?
Nathan Explosion Posted February 11, 2021 Posted February 11, 2021 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. Interferon 1
Interferon Posted February 12, 2021 Author Posted February 12, 2021 Thank you. I got it working perfectly with these settings: width = 100% height = auto
Recommended Posts