Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   BUGFIX 351/352-02: Header images not showing in sorted order (http://forum.bytesforall.com/showthread.php?t=7577)

juggledad Jun 14, 2010 11:49 AM

BUGFIX 351/352-02: Header images not showing in sorted order
 
This fix is for Atahualpa version 3.5.1/3.5.2
===========================
DESCRIPTION: In some cases, when you name your header images sequentialy (img01.jpg, img02.jpg, img03.jpg) they may not appear in that order.

CAUSE: This is caused by the way different servers return a list of filenames when using the PHP function m_find_in_dir__().

FIX: edit bfa_rotating_header_images.php and find line 37 which shoud be
HTML Code:

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

                sort($files);
                closedir($dh);


huwi Jun 15, 2010 01:42 AM

Quote:

DESCRIPTION: In some cases, when you name your header images sequentialy (img01.jpg, img02.jpg, img03.jpg) they may not appear in that order.
a) Hmmm... and i need the complete other variant. I want not ever display the header images in the same order and same start picture. A random-feature was realy nice... i hope so for next version :)

b) and... the pictures should be can saved in a different folder. With each update, i will "overwrite" the current folder within theme-folder

juggledad Jun 15, 2010 05:28 AM

There is an enhancement in the diamond forums giving the ability to have the images sorted or shuffled.


All times are GMT -6. The time now is 04:51 AM.

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