Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Ordering the rotating headers (http://forum.bytesforall.com/showthread.php?t=7485)

reklaw Jun 8, 2010 09:18 AM

[SOLVED] Ordering the rotating headers
 
Hi, I would like to specify the order that the header images load and rotate on my website. I tried to follow the instructions from this blog post to no avail. Here is a link to my site so you can see what I am trying to do- I am trying to get the colored evolution sequence from left to right.

Has anybody already found a solution for this? Thank you, Brian

juggledad Jun 8, 2010 09:34 AM

Name the images image1.jpg, image2.jpg etc

lmilesw Jun 8, 2010 09:35 AM

It looks like you don't have your images named sequentially. The should be something like 1-header.jpg, 2-header.jpg, 3-header.jpg, etc. in the order you want. You have lm1red.jpg, mh6.jpg, 6mh6.jpg. Thus the rotato doesn't know what order you want.

lmilesw Jun 8, 2010 09:36 AM

Ooops... I was too slow.

reklaw Jun 8, 2010 11:17 AM

Thanks for the help guys, but even when I name them sequentially, there seems to be no reason to the order. But, the order does repeat itself. Very weird.

juggledad Jun 8, 2010 02:40 PM

which settings for the header images are you using?

reklaw Jun 8, 2010 05:47 PM

My header settings are-1 sec js rotation, 1 sec fade, no preload js, no clickable, 175 ht, top-center, no for the rest. Also, my images are named image01.gif-image13.gif.

juggledad Jun 8, 2010 08:03 PM

Try turning off the fade code

juggledad Jun 9, 2010 05:23 AM

do you know what server your site is running on? is is linux or something else?

could you try this. Edit bfa_m_find_in_dir.php (it's in the functions folder) and find line 36 (in version 3.5.1) which should be
HTML Code:

    closedir( $dh );
and change it to
HTML Code:

    sort($file);
    closedir( $dh );

it seems that the php 'readdir' functions returns the files in the directory
Quote:

...in the order in which they are stored by the filesystem.
I'm thinking your server doesn't store them by name, maybe by date. Hopefully this will fix it.

reklaw Jun 9, 2010 07:40 AM

Thank you for the reply Juggledad, I tried your suggestion and edited the php file, but I could not get the files ordered. To see if the server was storing the photos chronologically, I deleted the files from the header folder and re-uploaded them one at a time. Still no order.

I found a solution that allows me a little more control- I made an animated gif in photoshop. The one drawback is that I can't seem to get the frames to fade in and out so I am still interested to a solution to this problem if someone comes across it. Thanks again, Brian

lmilesw Jun 9, 2010 07:42 AM

How about a slideshow plugin. I think some of them allow for random or sequential ordering.

juggledad Jun 9, 2010 09:19 AM

Brian,
can you put back in the iages and if you are willing, could you send me a PM with an admin id and PW so I can take a look and maybe do some debugging. I can't recreate it on my system so I need to test where it is a problem.

juggledad Jun 10, 2010 06:59 AM

I added a piece of code and it seems to be working, but your images need to be renamed. If you hafe 1.jpg, 2.jpg 3.jpg, 11.jpg and 22.jpg and sort them, you will get
1.jpg, 11.jpg, 2.jpg, 22.jpg, 3.jpg
you would have to call them 01.jpg, 02.jpg 03.jpg, 11.jpg and 22.jpg

The easiest thing is to call them image-01.jpg, image-02.jpg etc.

Please rename the images and see it it works now.

juggledad Jun 14, 2010 10:51 AM

see 'BUGFIX 351-02: Header images not showing in sorted order'
http://forum.bytesforall.com/showthread.php?t=7577


All times are GMT -6. The time now is 12:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.