Wordpress: Nice slideshow not attached to article?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • The Dawg
    Confirmed User
    • Apr 2002
    • 2438

    #1

    Wordpress: Nice slideshow not attached to article?

    I want to insert a slideshow of pictures to the index of my blog, but I dont need them attached to any articles.

    Whats the easiest solution to do this?

    Thanks
  • Lace
    Too lazy to set a custom title
    • Mar 2004
    • 16116

    #2
    jquery slider?
    Your Paysite Partner
    Strength In Numbers!
    StickyDollars | RadicalCash | KennysPennies | HomegrownCash

    Comment

    • LoveSandra
      So Fucking Banned
      • Aug 2008
      • 10551

      #3
      bump bump

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        how do you want to specify the images?
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • The Dawg
          Confirmed User
          • Apr 2002
          • 2438

          #5
          Originally posted by Lace
          jquery slider?
          Thanks, this may do it.

          Originally posted by fris
          how do you want to specify the images?
          Doesnt matter, it could be a file folder, a plugin or whatever. I just want it to scroll through 3 or 4 images. FCG is attached to an article and thats not really what I want.

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55679

            #6
            Originally posted by The Dawg
            Thanks, this may do it.


            Doesnt matter, it could be a file folder, a plugin or whatever. I just want it to scroll through 3 or 4 images. FCG is attached to an article and thats not really what I want.
            not that hard to do.

            here are a few jquery sliders

            http://bxslider.com/

            http://workshop.rs/projects/coin-slider/

            http://www.mopstudio.jp/mopSlider2descrip.html

            http://www.madebyrendr.com/jquery-plugins/simpleslider/

            http://nivo.dev7studios.com/
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • fris
              Too lazy to set a custom title
              • Aug 2002
              • 55679

              #7
              Originally posted by The Dawg
              I want to insert a slideshow of pictures to the index of my blog, but I dont need them attached to any articles.

              Whats the easiest solution to do this?

              Thanks
              if you still need this let me know

              icq: 704-299

              i did this today with a directory of images instead of attachments.
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

              Comment

              • fris
                Too lazy to set a custom title
                • Aug 2002
                • 55679

                #8
                Originally posted by The Dawg
                Thanks, this may do it.


                Doesnt matter, it could be a file folder, a plugin or whatever. I just want it to scroll through 3 or 4 images. FCG is attached to an article and thats not really what I want.
                If you want to do it via folder, here is something i would go about doing.

                in your template you would do <?php custom_slideshow_image_list();?>

                and have the slider code above or below that, the part where it sets the div, jquery, etc

                Code:
                    function custom_slideshow_image_list()
                    {
                        $path = sprintf( '%s/images/slideshow/', TEMPLATEPATH );
                        $url = sprintf( '%s/images/slideshow/', get_bloginfo( 'template_directory' ) );
                        $file_types = array( '*.jpg', '*.png', '*.gif' );
                
                        $images = array();
                        foreach( $file_types as $file_type )
                            foreach( glob( $path . $file_type ) as $file )
                                $images[ $file ] = $url . basename( $file );
                
                        $output = "<ul id=\"slideshow\">\n\t";
                        foreach( $images as $i )
                            $output .= sprintf( "\t<li><img src=\"%s\" alt=\"%s\" /></li>\n\t", $i, basename( $i ) );
                        $output .= "</ul>\n";
                
                        echo $output;
                    }
                hope this helps (images/slideshow) being the directory inside your theme dir.
                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                Comment

                • fris
                  Too lazy to set a custom title
                  • Aug 2002
                  • 55679

                  #9
                  oh and add that to functions.php in your theme dir, sorry about that.
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                  Comment

                  Working...