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)
-   -   How to get the header images to rotate in a random fashion? (http://forum.bytesforall.com/showthread.php?t=2695)

ptuquoc Jul 28, 2009 06:49 AM

How to get the header images to rotate in a random fashion?
 
Hi,

I really appreciate the rotating header images. I am curious if it would be possible to rotate the images in a random order and to begin rotation with a random image, as by now it seems that it always begins with the same image and then follows the same order.

Best regards
ptuquoc

juggledad Jul 28, 2009 01:36 PM

You will need to edit the java script to shuffle the array of photos or the index to get the next picture. You will find the code in js.php in version 3.4.2

ptuquoc Jul 28, 2009 03:06 PM

Dear Juggledad,

I found the code between lines 36 and 60. Unfortunately I don't have any knowledge in PHP programming. I am trying hard to either shuffle the HeaderImages array or to randomize the j counter, but neither of my attempts have been successful so far.
I would be grateful if you could help me for this.

Best regards
ptuquoc

juggledad Jul 29, 2009 05:02 AM

If you want some custom coding, there is a section you can offer to hire someone to do it (http://forum.bytesforall.com/forumdisplay.php?f=22)


All times are GMT -6. The time now is 01:46 AM.

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