GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress: Nice slideshow not attached to article? (https://gfy.com/showthread.php?t=969524)

The Dawg 05-21-2010 07:05 AM

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 05-21-2010 07:33 AM

jquery slider?

LoveSandra 05-21-2010 08:00 AM

bump bump

fris 05-21-2010 08:21 AM

how do you want to specify the images?

The Dawg 05-21-2010 09:44 AM

Quote:

Originally Posted by Lace (Post 17161295)
jquery slider?

Thanks, this may do it.

Quote:

Originally Posted by fris (Post 17161453)
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.

fris 05-21-2010 09:57 AM

Quote:

Originally Posted by The Dawg (Post 17161723)
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/

fris 05-26-2010 02:59 PM

Quote:

Originally Posted by The Dawg (Post 17161233)
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.

fris 08-10-2010 08:29 AM

Quote:

Originally Posted by The Dawg (Post 17161723)
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.

fris 08-10-2010 08:30 AM

oh and add that to functions.php in your theme dir, sorry about that.


All times are GMT -7. The time now is 10:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123