Forum Replies Created

Viewing 15 replies - 181 through 195 (of 310 total)
  • Plugin Author kosinix

    (@kosinix)

    Marking this as solved. For reference I have posted the fix for the GC Testimonials – Cyclone2 conflict here. This code goes to your functions.php:

    /*** GC Testimonial Overrides ***/
    remove_action('widgets_init', 'gct_load_testimonial_widgets' ); // Remove widget added by GC Testimonial
    
    add_action('widgets_init', 'overrride_gct_load_testimonial_widgets'); // Add our own widget
    function overrride_gct_load_testimonial_widgets() {
        register_widget('Override_GCT_Testimonial_Menu_Widget');
    }
    
    add_action('wp_footer', 'override_gct_widget_code'); // Add our own script
    function override_gct_widget_code(){
        echo '<script type="text/javascript">jQuery(document).ready(function($) {
        $("#tcycle").cycle({
            fx: "fade",
            speed: 1500,
            timeout: 1000,
            pauseOnHover: true,
            slides: ">div"
        }); });
        </script>';
    }
    
    if(class_exists('GCT_Testimonial_Menu_Widget')):
    
        class Override_GCT_Testimonial_Menu_Widget extends GCT_Testimonial_Menu_Widget {
    
            function widget($args, $instance) {
    
                if (is_active_widget( '', '', 'gc-testimonial-widget' )) {
                    wp_enqueue_style('gctwidgetstyles', plugins_url().'/gc-testimonials/assets/css/gctwidget.css', false, '1.0', 'all');
                    //add_action('wp_footer', 'gct_widget_script'); // Remove offending scripts
                    //add_action('wp_footer', 'gct_widget_code');
                }
    
                $data = array_merge($args, $instance);
    
                echo $data['before_widget'];
    
                if ( !empty( $data['title'] ) ) { echo $data['before_title'] . $data['title'] . $data['after_title']; };
                if ( !empty( $data['limit'] ) ) { $no =  $data['limit']; } else { $no = '2'; }
    
                if ($data['category'] != 'all') {
                    $term = get_term_by('id', $data['category'], 'testimonial-category');
                    $term_taxonomy = $term->taxonomy;
                    $term_slug = $term->slug;
                } else {
                    $term_taxonomy = '';
                    $term_slug = '';
                }
    
                $args = array(
                    $term_taxonomy      => $term_slug,
                    'posts_per_page'    => $no,
                    'orderby'           => 'post_date',
                    'order'             => 'DESC',
                    'post_type'         => 'testimonial',
                    'post_status'       => 'publish'
                );
    
                $temp = $wp_query;
                $wp_query= null;
                $wp_query = new WP_Query();
                $posts_array  = $wp_query->query($args);
    
                if ($data['type'] == 'cycle') { echo '<div id="tcycle">'; }
    
                foreach($posts_array as $post) {
    
                    // Add custom fields
                    $selected_extended_posts = array();
                    $custom = get_post_custom($post->ID);
                    foreach(array('client_name', 'client_photo', 'company_website', 'company_name') as $field) {
                        if(isset($custom[$field])){
                            $post->$field = $custom[$field][0];
                        }
                    }
                    $selected_extended_posts[] = $post;
    
                    $testimonial = $post;
    
                    echo '<div class="testimonial-widget">';
    
                    if(!empty($testimonial->post_title)):
                        echo '<h5>'.$testimonial->post_title.'</h5>';
                    endif; 
    
                    if ($data['images'] == 'yes') {
                        if(has_post_thumbnail($testimonial->ID)) {
                            echo '<div class="photo">'.get_the_post_thumbnail($testimonial->ID, array(75, 75)).'</div>';
                        }
                    }
    
                    echo '<div class="content">'.wp_trim_words( $testimonial->post_content, $num_words = 50, $more = '...' ).'</div>';
    
                    echo '<div class="clear"></div>';
    
                    echo '<div class="client"><span class="name">'.$testimonial->client_name.'</span><br/>';
    
                    if(!empty($testimonial->company_name) && !empty($testimonial->company_website)):
                        echo '<span class="company">';
                        echo '<a href="'.$testimonial->company_website.'" target="blank">'.$testimonial->company_name.'</a>';
                        echo '</span>';
                    elseif(!empty($testimonial->company_name)):
                        echo '<span class="company">';
                        echo $testimonial->company_name;
                        echo '</span>';
                    elseif(!empty($testimonial->company_website)):
                        echo '<span class="website">';
                        echo $testimonial->company_website;
                        echo '</span>';
                    endif;
    
                    echo '</div>';
                    echo '</div>';
                }
    
                if ($data['type'] == 'cycle') { echo '</div><div class="clear"></div>'; }
    
                if ($data['more'] == 'yes') {
                    $link = get_permalink($data['fullpage']);
                    echo '<p class="kcvtst-widget-readmore"><a href="'.$link.'">Read More Testimonials »</a></p>';
                }
    
                echo $data['after_widget'];
            }
        }
    endif;
    Plugin Author kosinix

    (@kosinix)

    Hello mm,

    That is not currently supported, sorry.

    Best regards

    Plugin Author kosinix

    (@kosinix)

    Hello guys,

    There is a good example on my site: http://www.codefleet.net/cyclone-slider-2/templates/lea/

    Click on the 7th slide with the pictures of wildebeest. As you can see I added a text-align:center on the image containing element:

    .cycloneslider-template-lea .cycloneslider-slide{
         text-align:center;
    }

    and similar to Chad Warner’s comment above, add margin: 0 auto. BUT, adding !important is considered bad practice, so just make your style more specific (you can google that).

    So:

    .cycloneslider-template-lea img{
         display:block;
         margin:0 auto;
    }

    Note, you have to change .cycloneslider-template-lea to the class name of your template.

    Plugin Author kosinix

    (@kosinix)

    Hello dpiffy,

    Good job with researching your issue thoroughly before posting. Please PM me using the contact form here: http://www.codefleet.net/contact/
    Please include a link to your site in your message.

    I’ll be happy to help you.

    Best regards

    Plugin Author kosinix

    (@kosinix)

    Hello dmcallister1,

    I’ll try and answer your questions for future referrence for other users.

    “when the slider is sliding, and I choose a video. the video only plays if I keep the mouse over it.” >> You can set timeout to zero and use manual transition instead.

    “What should happen is the chosen video should play in its entirety and then the slider should resume.” >> Not currently possible due to limitations with underlying script cycle2. However its possible to pause the slideshow when slideshow is transitioning to the next slide. It can be achieved with the Youtube template. But it has its limitations too. You can check it here: http://www.codefleet.net/cyclone-slider-2/templates/youtube/

    “if your plug in cant do that, just tell me so I can move on to another plugin.” >> No it can’t. A quick google search would yield many other plugins that might fit your needs.

    Assuming you have moved on im marking this as resolved.

    Plugin Author kosinix

    (@kosinix)

    Hello -bene-,

    Sorry but the full height (or full screen) slideshow like that in pexetothemes is not currently supported. It may be possible to modify Cyclone Slider 2 but that would require a great amount of effort to achieve.

    As for the answer to your question, you need to write your own javascript in script.js and css in style.css of your custom template. See: http://www.codefleet.net/cyclone-slider-2/#templating

    Hope this helps

    Plugin Author kosinix

    (@kosinix)

    Hello nadinecamille,

    Unfortunately the previous update broke the nextgen importer. Please update to the latest version (2.5.6) to fix this issue. Thank you for your patience.

    Best regards

    Plugin Author kosinix

    (@kosinix)

    Hello saosangmo,

    Cyclone is in conflict with cycle 1 that comes with the theme. Please remove: <script type=’text/javascript’ src=’http://quangcaothanglong.vn/wp-content/themes/oxygen/js/cycle/jquery.cycle.min.js?ver=1.0′></script&gt; for cyclone to work. Please consult the oxygen theme documentation on how to do this.

    Thanks

    Plugin Author kosinix

    (@kosinix)

    Update: Currently waiting from wpml.org to give us a copy (free developer version) of their plugin for testing.

    Plugin Author kosinix

    (@kosinix)

    Thanks for reporting goeko. Were looking into it now.

    Best regards,
    -kosinix

    Plugin Author kosinix

    (@kosinix)

    Hello guys, this is hard to debug as I dont know anymore details other than the slideshow not found error. Please try out the latest version and see if that helps since I changed the code that gets the slideshow (see changelog for details) so see if that makes a difference. I would appreciate your feedback.

    Thanks!

    Plugin Author kosinix

    (@kosinix)

    Hello Paxjah. Hmm could be because I updated cycle2 to the latest version. That’s the only change that I can relate to the issue you are experiencing. Anyways please do send me an email so I can check.

    Plugin Author kosinix

    (@kosinix)

    Use this in your template file <?php echo mtbxr_val(‘se_lect’); ?>

    Forum: Plugins
    In reply to: [BxSlider WP] malfunction
    Plugin Author kosinix

    (@kosinix)

    Hello pikaya,

    I have checked your link but it contains only a single line of paragraph without the slider. Would you mind sending me another link?

    Best regards,
    kosinix

    Plugin Author kosinix

    (@kosinix)

    Hello davedub.

    The function you are looking for is cyclone_slide_image_url. Unfortunately its not documented at the moment. But you can check the code in inc/functions.php.

    To set resize to portrait:

    Inside your template in slider.php find the cyclone_slide_image_url. This function takes care of resizing the image and returns the url to that image. Add the resize_option to the passed parameter:

    <?php echo cyclone_slide_image_url($slider_meta['id'], $slider_settings['width'], $slider_settings['height'], array('current_slide_settings'=>$slider_meta, 'slideshow_settings'=>$slider_settings, 'resize_option'=>'portrait') ); ?>

Viewing 15 replies - 181 through 195 (of 310 total)