Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Random Rotating Header Image with Javascript (http://forum.bytesforall.com/showthread.php?t=8467)

Sven Jul 23, 2010 08:05 AM

Random Rotating Header Image with Javascript
 
After seeing that this issue was noted as solved with Theme version 3.5.3, I installed this theme today...still no change in the behavior...A random image loads on each new page load, then the JS rotating images kick in, but it is always the first image that appears with the rest being in alphanumerical order (not random).

And each time you refresh the page or click any (internal) link this starts all over again (although interestingly the first header image that loads is random but then the script runs...)

...any ideas? Anyone?

http://blog.swansonphotosonline.com/

juggledad Jul 23, 2010 11:41 AM

Where did you see it was solved?

Sven Jul 23, 2010 03:55 PM

http://wordpress.bytesforall.com/?p=94 and more specifically the included reference to the bug fix for http://forum.bytesforall.com/showthread.php?t=7577

juggledad Jul 23, 2010 05:05 PM

The patch to show the images in a sorted order should be working. There is an enhancement that I'll be moving to the gold forums that will allow you to pick weather you want to see them in sorted or a random order

Atahualpa has always displayed a random image when only one image is shown per page. due to the way different OS's and servers work when using the rotate images option, some times they showed in sorted order and sometimes not.

The patch forces it to always use a sorted order

There is an enhancement that will allow you to select weather you want to have them sorted or show up randomly. It is currently in the diamond forums, but may be moved to the gold forums.

Sven Jul 23, 2010 05:22 PM

That would be good...I do really like the theme and thank all involved for your hard work, but would leave this feature out or off if a donation of the diamond level were involved...but I do hope this occurs, and if so, I would gladly use it (and donate accordingly)! Although... I do NOT want to have to customize the theme with code that will have to updated/changed each time I upgrade, etc)

On a side note, it is a great feature and I think you folks should put it out there for all as I think folks would gobble up atahualpa! I think it's far superior to any other theme I have seen!

Sven

Sven Jul 27, 2010 08:21 PM

Turned off the javascript option...does not work....

MickR Aug 27, 2010 07:27 PM

Hi Sven,

I managed a hack to prevent the 1st random image appearing - may be better ways but details here (read through the thread): http://forum2.bytesforall.com/showth...1185#post41185

Kruiskouter Oct 23, 2010 03:26 PM

I was just searching on the forum to solve the same 'problem' (yes I know its not really a problem, just a feature that I dont want :) )

If I get the requirement - its that the multiple headers are selected randomly, this makes navigating round the site a slightly smoother experience (ie. you don't start at the first header every time you click a link).

That what is what I wanted to happen anyway.

If this is possible via a configuration option, then sorry - I am a proper muppet!

But if it isnt - then this works...

In wordpress admin, go to appearance and edit themes

select bfa_rotating_header_images.php

Which is a smallish file, scroll halfway down until you see the line
sort($files);
and replace it with
shuffle($files);
And click on [update file] at the bottom.

That should do the trick.

I am a wordpress newbie - so forgive me if this is bad practise !

Regards
KK

juggledad Oct 23, 2010 03:38 PM

This will be a theme option in 3.5.4

Kruiskouter Oct 23, 2010 03:47 PM

Super thanks!

Sven Nov 12, 2010 08:17 AM

So, I finally had time to review all the code changes that need to be made to 3.5.3 to make the rotating header images actually rotate, applied them and it sort of works as anticipated, but....

There are two issues that remain which I do not have a work-around for:

1) Prior to making these changes, the header images were centered using fluid layout 97% or any other setting for layout width - now the images justify to the left, no matter what the option is set to. To work around this, I changed my layout width from fluid 97% to fixed 1280px (the width of my images)...I would prefer the fluid width.

2) Now, instead of pre-loading only the first image, ALL of the images are pre-loaded, no matter what the option is set to...this causes all 60 or so images to load using up bandwidth and slowing the page load time down on some systems, this has been tested on a laptop here just now, the load time was about 12 seconds, prior it was less than 1.5 seconds.

I can live with #1 until 3.5.4 is released, but really would like a work-around for the second issue and want to point these issues out so they can be dealt with prior to 3.5.4.

http://blog.swansonphotosonline.com/

juggledad Nov 12, 2010 12:50 PM

how are you telling that all the images are preloaded?

Sven Nov 12, 2010 04:07 PM

Using either Chrome (Inspect Element) or IE9 Beta (Dev tools)...I have included screenshots from Chrome Inspect Elements.

Steps:

1. If you do not have Chrome, download it and install it.
2. Open my website (link above)
3. Right click over any part of the page and then click "Inspect Element"
4. In the lower area click Resources and then your choice of the next two options to enable resource tracking.
5. To have the element viewer in a separate window, click the icon on the lower left.
6. Maximize new window.
7. You can reload the page or navigate and the new window will update or you can click on audit and force a page refresh and new resource tracking.

You will see that it loads all the images in the images folder each time a page loads - I can bring the site up on my Android phone prior rather seamlessly, now it takes about two minutes to load, but the image does rotate (so partially there):
http://blog.swansonphotosonline.com/...screenshot.jpg

You can do the same now with IE9 beta dev tools. You can also use Firefox, right click on the page, select view page info and inspect the media tab.

Juggledad,

Let me know if I can provide any additional feedback and please feel free to contact me directly.

juggledad Nov 12, 2010 05:43 PM

do you also use the fade in/out option? If so shut it off and see how it goes

Sven Nov 12, 2010 06:36 PM

pre-load = no (in all cases)

If:
Rotate header images set to 10
Fade set to 0
=No rotate (except on page load) and no fade.

If:
Rotate header images set to 10
Fade set to 1
=rotate with fade (but loads all images)

If:
Rotate header images set to 10
Fade set to 2
=rotate with fade (but loads all images)

If:
Rotate header images set to 30
Fade set to 4
=rotate with fade (but loads all images)

Make header clickable = Y or N = no change (or any other combination of options - also removed %image and put back with varying options and no change in above)

Can you verify that all header images are being pre-loaded please?

The fade effect = 4 looks nice, hope we can figure this out!

Sven Nov 12, 2010 06:54 PM

I also changed the layout to 97% fluid with 1280 min and 1920 max - which again, forces the images left.

Sven Nov 13, 2010 05:21 AM

Had to remove the rotating header for now...will add back in once this is figured out. Note: when it is turned off the header image returns to center justified.

juggledad Nov 13, 2010 09:46 AM

I just rechecked and the rotating works fine with eithor sort or shuffle with fade set to 0

There is a problem with the fade code, it doesn't honor the positioning, it overlays the blog title, it renders clickable image void. We have been recommending that you do not use it,. It was a fairly recent addition and the developer has been notified.

The header image sort/shuffle works fine - I'll take a look at the preload, but I think that may be another issue with the fading code.

Note, when you shuffle the images, it shuffles the order each time the page is refreshed, but will show that order each time the loop ends. IE if you have five images 1, 2, 3, 4, 5 you might get
5, 3, 4, 1, 2 and that would then repeat 5, 3, 4, 1, 2 on and on.
Next time the page is refreshed it could be 4, 1, 5, 2, 3 etc etc

Sven Nov 13, 2010 11:18 AM

These are my current theme settings:

http://blog.swansonphotosonline.com/images/settings.jpg

I have applied the code changes recommended by manually editing the applicable files.

Even though it is turned on in the settings, I get no rotation of images. If I do turn fade on, I get rotation of images but it pre-loads all the files...where in the code is the switch for pre-load and can you suggest a way to turn pre-load off (manual code)?

juggledad Nov 13, 2010 03:39 PM

Please do an export of your settings and attach it to a replY

Sven Nov 13, 2010 05:29 PM

1 Attachment(s)
File attached.

juggledad Nov 14, 2010 04:51 AM

I have just used your settings and 'as is' my header images rotate. I noticed you said you manually applied the code changes - does this mean you didn't just upload the files provided in the thread?

Sven Nov 14, 2010 05:25 AM

What version of Wordpress are you testing this with?

And, yes, I manually changed the files, very carefully making sure I both kept a copy of the original files and made only the changes noted:

They include:

http://forum2.bytesforall.com/showth...1185#post41185 #5, #6, #11

and

http://forum.bytesforall.com/showthr...9249#post49249 #7 (leading to above),and #8

Question: Why does first link have forum2 in link?

Also, and again, can we discover how to turn pre-load off?

Sven Nov 14, 2010 05:28 AM

One more question, not that it is likely the issue, but what are the permissions on the header images folder and files for your test setup?

juggledad Nov 14, 2010 05:43 AM

Two things
1) please download and try the fix in http://forum.bytesforall.com/showthread.php?t=7579
2) the prefetch is part of the jquery that does the fade in/out

Sven Nov 14, 2010 06:49 AM

Can't access page:

http://blog.swansonphotosonline.com/...estriction.jpg

Sven Nov 14, 2010 07:19 AM

I have removed the changes to js.php that were suggested here, set the header image rotate time to 10 and fade to 0 and it does rotate the images (centered) and does not pre-load all of the images.

Hopefully, both the rotating header images and fade can be improved upon in the next release and the documentation of the issues here can prove beneficial in doing so.

Any time frame on the next update (with issues fixed)?

juggledad Nov 14, 2010 07:57 AM

Sorry I didn't realize that you have never donated. That thread is in the gold forum tutorial section and is avaliable to members that have donated $20 or more.

The shuffle/sort will be in 3.5.4 but I'm not sure about the fade issue. The fade in/out is a open source code and the preload issue is something the author may look at. It is not controled by the theme author

Sven Nov 14, 2010 03:02 PM

I guess I will re-iterate my original thought on having to pay to get an advertised feature to work properly...no thank you, I will go without it first...matter of principal.

"268 options to build your individual theme, without getting worked up over browser compatibilty issues. Up to 4 sidebars, fixed or flexible width layout, custom widget areas, drop down menus, SEO features, rotating header images and an active support forum with over 30,000 posts. New: Style import / export feature and improved speed."

Based on the number people who are asking about the header image features, I am thinking I am not alone in trying to get this to work (as advertised). As of now, the theme has been downloaded 8,506 times and we find 1,512 threads and 7,065 posts under "header configuration and styling"...seems like a lot of people asking a lot of questions to me...maybe if the forum leaders would ascertain which of very many fixes and suggestions really work, or just fix it the volume of questions would be greatly reduced...I am sure the motivation here is to NOT have to provided any form of support, paid or not, correct? Perhaps that is not the goal?

Again, the theme is great but this was the feature I chose the theme for and well...guess I have said enough?

juggledad Nov 14, 2010 04:09 PM

No one is asking you to pay anything and...rotating headers DO work..two ways.

First if you have many images in the images/header folder, each time you refresh the page you will get a new image. Secondly, you can specify the images rotate on the page. What isn't working 100% is the new feature Fade in/out.

The thread I pointed you in the Gold forums is an enhancement that will allow you to specify whither the header images are presented sorted or shuffled. This feature is being added into 3.5.4

There are several extras that are given to members who donate to support this free theme and the people that support it. Better support, access to some tutorials and templates for things like a splash page or a no sidebar template.

But if this feature is what keeps you from using the theme, that's your choice and good luck with whatever theme you decide to use.

Sven Nov 14, 2010 04:54 PM

I guess posts like above and, for example, your post http://forum.bytesforall.com/showthread.php?t=7654 lead to believe otherwise.

I do thank you for your help, Juggledad, my point is I should not be having to ask for your help, it should all work, including the fade effect - both are built into the theme options, no?...Right now, I still get the header image flash effect on page load, then the images do rotate...

Did not want to start a debate here, but I have spent a lot of my time attempting to fix something that is supposed to work...

juggledad Nov 14, 2010 06:51 PM

So let me see if I understand your point. You think that all code should be completely error free? Ever hear about Microsoft's 'Patch Tuesday'?

I spent 20 years working tech support for various software companies. These were were companies that CHARGED for their software. Guess why they had tech support?? To fix errors in the code and to explain how to use it. Ever look at the fixes Microsoft, Apple, sends out

The fix in http://forum.bytesforall.com/showthread.php?t=7654 was created to address a bug introduced BY CHANGES IN WORDPRESS. A fix that I spend several hour working on to help users like yourself. I didn't get paid for doing that, I didn't have to spend that time, I could have gone out and worked in my garden.

You quote numbers about how many posts are in the "header configuration and styling" forum. Did you read them all or you making assumptions to their contents? Did you see how many are for new users that don't know Wordpress or CSS and want to know how to make styling changes or change the way things work?

If you didn't want to start a debate, why did you bring this all up? But your right too much time has been spent on this, so let's just close out this thread.

Good luck with what ever theme you decide to use.


All times are GMT -6. The time now is 07:22 AM.

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