Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Config file says: define(‘WYVERN_VIDEO_VERSION’, ‘1.2.8’);

Status Resolved
Add-on / Version Reel 1.2.9
Severity Critical
EE Version 2.5.5

lukehardiman

May 25, 2014

Cannot get addon to update as config file specifies wrong version. Not too sure why this is and also not keen to muck about with the files to find out..

Also struggling to set Video width / height to 100% so as to have responsive videos in my templates - because using a percentage requires quoted values in the javascript, which the current module setup does not support.

#1

BoldMinded (Brian)

What are you trying to upgrade from? There hasn’t been any database changes in this add-on in awhile, so just updating the files, even if the version number is wrong, still means its loading the correct version.

Can you elaborate on where you are setting the width and height to 100%? E.g. in a custom field setting, in a Wyvern field, in the template with the wyvern_video:youtube/vimeo tags? A screenshot would help.

#2

lukehardiman

I tried setting to 100% by default in the fieldtype settings, and in the entry too if memory serves (long while back), but this did not work, so now I’ve just hacked it basically, by editing the file that outputs the javascript in the CP, so that the 100% is hardcoded, as this is all I’ll ever need.

#3

lukehardiman

.. just added a screenshot for you 😊

#4

BoldMinded (Brian)

Luke, what happens if you just put double quotes around the string?

wyvern_config.wyvern_video.'. $field_name_config .'.settings = {
                show_details: "'. (isset($settings['show_details']) ? $settings['show_details'] : 'y') .'",
                video_width: "'. (isset($settings['field_width']) ? $settings['field_width'] : $global_settings['settings_global']['global_width']) .'",
                video_height: "'. (isset($settings['field_height']) ? $settings['field_height'] : $global_settings['settings_global']['global_height']) .'",
                allow_resize: "'. (isset($settings['allow_resize']) ? $settings['allow_resize'] : 'no') .'"
            };';
#5

BoldMinded (Brian)

Actually, I did a test and the 100% value saves correctly now.

#6

BoldMinded (Brian)

Closing this ticket as the solution is posted above. Will be in the next release.

Login to reply