
Originally Posted by
LaCamus
Sorry sorry, scratch that...
No, resizing should take place with true, and it doesn't when false. Options are not shown when set to false....make sure you did not set the variable to the string 'false', that is not an actual false, if the string contains any text it will create a true condition. The field type in the db has to be boolean. If you can't achieve this try setting the false selection to blank ( '' empty quotes).
Great that explains why I wasn't seeing what I expected.. (that the re-sizing options are not displayed at all when this is set to the strong 'false') I have modified the install the script as follows:
from:
Code:
(NULL, 'Automatically re-size event images?', 'EVENTS_FILE_RESIZE', 'true', 'If this option is set to true, the module will re-size event images \(based on maximum width and height settings above\).<br /><br />Set to false to disable image resizing.<br /><br />Default is true.', @t4, 5, NOW(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),'),
to
Code:
(NULL, 'Re-size event images?', 'EVENTS_FILE_RESIZE', 1, 'If this option is set to true, the module will display the re-size event images options on the create/edit preview page. \(based on maximum width and height settings above\).<br /><br />Set to false to disable image resizing.<br /><br />Set as follows:<br />0=False<br />1=True<br /><br />Default is true.', @t4, 5, NOW(), NULL, 'zen_cfg_select_option(array(\'1\', \'0\'),'),
Now this works as I expected.. Thanks..

Originally Posted by
LaCamus
again, sorry, but yes the user has to click the resize radio button in order to resize the image, it is resized only in the img for viewing when oversized, it is not actually resized and saved until the button is clicked.
Got it.. Now that I have modified the admin setting and supporting menu text this now makes more sense.. Gonna make one small change to the UI to make the "Click here to re-size" stand out a little more.