Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    'feature slider' not working anymore on wordpress

    Hello,

    I'm not a professional programmer or anything. I know html, a little bit of actionscript and javacode and that's about it. When I was asked to do a website, I took an existing template and changed a couple of stuff to make it look as I wanted to. There is a slider in this template that has been working for quite some time (several months) and today, it just stopped working. I don't know why, if my client did something or what but it's just not working anymore.

    http://soccerhr.com

    I believe this is the code of the slider, contained in home.php

    PHP Code:
            <div id="featured-slider" class="sliderwrapper">
                <?php 
                $count 
    1;
                            
                if ( 
    get_option('of_sn_fea_recent') == 'true' ) {
                    
    $args = array(
                   
    'posts_per_page' => '6'
                
    );
                } else {
                    if ( 
    get_option('of_sn_fea_tag') <> "" ) {
                        
    $args = array(
                          
    'posts_per_page' => '6'
                          
    'tag' => get_option('of_sn_fea_tag')
                        );
                    } else {
                        
    $args = array(
                          
    'posts_per_page' => '6'
                          
    'cat' => get_option('of_sn_fea_cat')
                        );                
                    }
                }
                            
                
    $gab_query = new WP_Query();$gab_query->query($args); 
                while (
    $gab_query->have_posts()) : $gab_query->the_post();
                
    ?>
                    <div class="contentdiv" id="post-<?php the_ID(); ?>">
                        <div class="sliderPostPhoto">
                            <?php 
                            gab_media
    (array(
                                
    'name' => 'snpw-fea'
                                
    'enable_video' => 'true'
                                
    'catch_image' => get_option('of_sn_catch_img'),
                                
    'video_id' => 'featured'
                                
    'enable_thumb' => 'true'
                                
    'catch_image' => 'true',
                                
    'resize_type' => 'c'/* c to crop, h to resize only height, w to resize only width */
                                
    'media_width' => '650'
                                
    'media_height' => '366'
                                
    'thumb_align' => ''
                                
    'enable_default' => get_option('of_sn_end1'),
                                
    'default_name' => 'featured.jpg'    
                            
    ));                                         
                            
    ?>
                                            
                            <?php if (($gab_flv == '') and ($gab_video == '') and ($gab_iframe == '') ) { ?>
                                <div class="sliderPostInfo">
                                    <h2 class="featuredTitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printfesc_attr__'Permalink to %s''snapwire' ), the_title_attribute'echo=0' ) ); ?>" ><?php the_title(); ?></a></h2>
                                    <p><?php print string_limit_words(get_the_excerpt(), 16); ?>&hellip;</p>
                                    <span class="postmeta">
                                        <?php echo get_the_date(''); ?> / 
                                        <a href="<?php the_permalink(); ?>" title="<?php printfesc_attr__'Permalink to %s''snapwire' ), the_title_attribute'echo=0' ) ); ?>" rel="bookmark"><?php _e('Read More','snapwire'); ?></a><?php edit_post_link(__('Edit','snapwire'),' / ',''); ?>
                                    </span>
                                </div>
                            <?php ?>                            
                        </div><!-- end of sliderphoto/video -->
                    </div><!-- end of contentdiv -->
                <?php $count++; endwhile; wp_reset_query(); ?>
                            
                <div id="paginate-featured-slider">
                    <ul>
                        <?php 
                        $count 
    1;
                        
    // the value for $args is defined above
                        
    $gab_query = new WP_Query();$gab_query->query($args); 
                        while (
    $gab_query->have_posts()) : $gab_query->the_post();
                        
    ?>
                            <li id="feapost-<?php the_ID(); ?>">
                                <a href="<?php if(get_option('show_fea_reveal') == 'On Click') { echo '#'; } else { the_permalink(); } ?>" title="<?php the_title_attribute'echo=0' ); ?>" class="toc<?php if ($count == 6) { echo " last"; } ?>" rel="bookmark">
                                    <?php 
                                        gab_media
    (array(
                                            
    'name' => 'snpw-fea_thumb',
                                            
    'enable_video' => 'false',
                                            
    'catch_image' => get_option('of_sn_catch_img'),
                                            
    'enable_thumb' => 'true',
                                            
    'resize_type' => 'c'
                                            
    'media_width' => '85'
                                            
    'media_height' => '45'
                                            
    'thumb_align' => 'featured_thumb'
                                            
    'enable_default' => get_option('of_sn_end2'),
                                            
    'default_name' => 'featured_thumb.jpg'
                                        
    ));
                                    
    ?>
                                    <span class="fea_thumb_title"><?php the_title(); ?></span>    
                                </a>
                            </li>
                        <?php $count++; endwhile; wp_reset_query(); ?>
                    </ul>
                </div>
            </div><!-- end of sliderwrapper -->
                        
            <script type="text/javascript">
                featuredcontentslider.init({
                    id: "featured-slider", //id of main slider DIV
                    contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
                    toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
                    nextprev: ["", ""], //labels for "prev" and "next" links. Set to "" to hide.
                    revealtype: "<?php if(get_option('of_sn_fea_reveal') == 'OnClick') { echo 'click'; } else { echo 'mouseover'; } ?>", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
                    enablefade: [true, 0.4], //[true/false, fadedegree]
                    autorotate: [<?php if(get_option('of_sn_fea_rotate') == 'true') { echo 'true'; } else { echo 'false'; } ?><?php if ( get_option('of_sn_fea_pause') <> "" ) { echo get_option('of_sn_fea_pause').'000'; } else { echo '5000'; } ?>], //[true/false, pausetime]
                    onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
                        //previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
                        //curindex holds index of currently nwspn slide (1=1st slide, 2nd=2nd etc)
                    }
                })
            </script>
            <!-- End of featured slider -->
    I really need some help :S !

  • #2
    Regular Coder
    Join Date
    May 2011
    Location
    new york
    Posts
    118
    Thanks
    4
    Thanked 0 Times in 0 Posts
    your site isnt loading, that may be problem numero uno, if the slider is using files hosted on another site, (js) whatever. they may have hcanged something on their end. double check!

  • #3
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That weird. The page is loading on my computer. Slightly slow, but still loading.

    The slider is using the main pictures of the wordpress blog. Those pictures are appearing without any problems at other places.



    For example, the picture with the three boys running should appear bigger on the slider and it doesn't even though we can see it reduced on the right and under the 'Celtix' category.

  • #4
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    //double
    Last edited by limonade; 12-31-2012 at 01:52 AM.

  • #5
    Regular Coder
    Join Date
    Jul 2012
    Location
    London
    Posts
    473
    Thanks
    4
    Thanked 86 Times in 86 Posts
    Virus detected on your website.

  • #6
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you have any idea of how I could arrange that? I could change my password but I doubt it would be enough.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •