kosinix
Forum Replies Created
-
You dont need to add !important unless there is no other way. You just need to make your css more specific. For example for the thumbnails you can add this to your style.css:
.cycloneslider-template-thumbnails.cycloneslider-thumbnails li {
..your css here…
}Forum: Plugins
In reply to: [Cyclone Slider] Slider roles and capabilitiesYour welcome. I will make it visible for admins only on the next version. That seem to be the most appropriate use case anyways.
Cheers!
Do you have a link to your slideshow?
Have you tried resaving your slideshow? The template css is generated upon save.
Forum: Plugins
In reply to: [Cyclone Slider] Slider roles and capabilitiesHello Airone, try adding this to your theme’s functions.php;
remove_action('init', array($cyclone_slider_plugin_instance, 'create_post_types')); function cyclone_create_post_types() { register_post_type( 'cycloneslider', array( 'labels' => array( 'name' => __('Cyclone Slider', 'cycloneslider'), 'singular_name' => __('Slideshow', 'cycloneslider'), 'add_new' => __('Add Slideshow', 'cycloneslider'), 'add_new_item' => __('Add New Slideshow', 'cycloneslider'), 'edit_item' => __('Edit Slideshow', 'cycloneslider'), 'new_item' => __('New Slideshow', 'cycloneslider'), 'view_item' => __('View Slideshow', 'cycloneslider'), 'search_items' => __('Search Slideshows', 'cycloneslider'), 'not_found' => __('No slideshows found', 'cycloneslider'), 'not_found_in_trash' => __('No slideshows found in Trash', 'cycloneslider') ), 'capabilities' => array( 'publish_posts' => 'manage_options', 'edit_posts' => 'manage_options', 'edit_others_posts' => 'manage_options', 'delete_posts' => 'manage_options', 'delete_others_posts' => 'manage_options', 'read_private_posts' => 'manage_options', 'edit_post' => 'manage_options', 'delete_post' => 'manage_options', 'read_post' => 'manage_options', ), 'supports' => array('title'), 'public' => false, 'exclude_from_search' => true, 'show_ui' => true, 'menu_position' => 100 ) ); } add_action( 'init', 'cyclone_create_post_types' );Forum: Plugins
In reply to: [Cyclone Slider] Get image button doesn't work in Cyclone Slider 2Sorry to hear the current version does not work for you. Other cyclone versions can be found here: http://wordpress.org/extend/plugins/cyclone-slider-2/developers/ Download the zip file of the version you want and replace the entire cyclone-slider-2 folder in plugins
Forum: Plugins
In reply to: [Cyclone Slider] Generates bad PHP code.Thanks Eddic for solving this puzzle! 🙂
Forum: Plugins
In reply to: [Cyclone Slider] how does the plugin handle different picture sizes?Hi guys, I will try my best to explain. Note: PHP code ahead.
By default images are resized with their aspect ratio preserved. However, if the width and height of the uploaded image is equal to the slideshow dimension, resize is automatically skipped.
Now, If you look at templates/default/slider.php you will see that it uses the function cycloneslider_thumb:
<img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta); ?>" />cycloneslider_thumb is where the image resize happens. It accepts the following parameters:
$original_attachment_id – The WP attachment ID of image
$width – The width of the resize
$height – The height of the resize
$refresh – Defaults to false. If true, images that were already resized are forced resized.
$slide_meta – The slide properties. Defaults to empty array
$option – The resize logic.$option is set to “auto” by default. That means images are resized with their aspect ratio preserved.
Other possible values are:
- exact – Resize to exact width and height, aspect ratio is ignored
- portrait – Resize to width and height with height preferred. All images will have the same height regardless of dimension.
- landscape – Resize to width and height with width preferred. All images will have the same width regardless of dimension.
- crop – Resize to exact width and height, aspect ratio preserved, but excess parts cropped.
If you want to use these other modes in the resize, change the call to cycloneslider_thumb in your templates:
<img src="<?php echo cycloneslider_thumb($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], false, $slider_meta, 'crop'); ?>" />If you do not want resizing at all, and want to use the uploaded image, discard the cycloneslider_thumb from your templates and use WPs wp_get_attachment_url:
<img src="<?php echo wp_get_attachment_url($slider_meta['id']); ?>" />Hope this helps!
Forum: Plugins
In reply to: [Cyclone Slider] ReferenceError: wp is not definedThanks for the heads up Eddic!
Forum: Plugins
In reply to: [Cyclone Slider] Updating deletes custom templateInside your theme create a folder named “cycloneslider”. Add your templates inside.
You can read about it in the FAQ and documentation: http://www.codefleet.net/cyclone-slider-2/#templating
Forum: Plugins
In reply to: [Cyclone Slider] Generates bad PHP code.@tibber – Do you have a link to your site? Or perhaps a screenshot and the contents of the error. As of now, I could not reproduce the bug. Thanks
Forum: Plugins
In reply to: [Cyclone Slider] Suggestion: Allow disabling of scalingSupported in the next version
Forum: Plugins
In reply to: [Cyclone Slider] Version 2.2.4 causing error@brendanmcoffey thanks for the heads up. Im guessing those local paths came from the template.css and template.js that were bundled with 2.2.5, that were generated from my dev machine.
Try resaving your slideshows, that should update the template.css and template.js with paths to your server.
The previous versions does not use these files but few users are having problems with css and js not loaded. So i have to resort to compiling the css/js into template.css and template.js.
Hope this helps!
Forum: Plugins
In reply to: [Cyclone Slider] Version 2.2.4 causing errorHello guys, first sorry for the hassle. Im troubleshooting the problem too but could not reproduce the said error reported by 10010110. Can you please provide me with screenshots or at least a link to your website having this problem
thanks,
kosinixForum: Plugins
In reply to: [Cyclone Slider] Generates bad PHP code.Are you using the latest version?