[Plugin: jQuery Slider] Missing images, broken CSS and broken settings
-
- I found missing the play/pause image;
- the navigation buttons’ CSS is broken – the left navigation button is negatively and absolutely positioned at the left margin, leaving some visible pixels of the arrows image;
- the settings panel isn’t showing the boolean saved ones;
- Pagination and navigation options aren’t used at all.
The problem around settings is the comparison made. Just to note, the plugin saves an initial
trueboolean for each boolean option, and uses the strings"true"and"false"in the settings page. The comparison<option value="true" <?php if(get_option('js_pause')) echo "selected" ?>>Yes</option> <option value="false" <?php if(!get_option('js_pause')) echo "selected" ?>>No</option>doens’t work because any value different from
false,"",0and"0"is consideredtrueby PHP. Therefore:<option value="true" <?php if(get_option('js_pause')=="true") echo "selected" ?>>Yes</option> <option value="false" <?php if(get_option('js_pause')=="false") echo "selected" ?>>No</option>works. Note that the startup values must change from…
add_option('js_pause', true); add_option('js_paging', true); add_option('js_nav', true);…to:
add_option('js_pause', "true"); add_option('js_paging', "true"); add_option('js_nav', "true");This seems to happen because WP saves values as strings. Other option is to use
0and1, as both will be converted tofalseandtrue, respectively.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘[Plugin: jQuery Slider] Missing images, broken CSS and broken settings’ is closed to new replies.