Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] How to get a header image to rotate every 'N' seconds


  #26  
Old Jul 6, 2009, 07:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Please swap back to 3.3.3 and wait till after Friday when Flynn gets back. There seems to be a 'glitch' with 3.4
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #27  
Old Jul 10, 2009, 10:36 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
It's also missing in 3.4.1 which fixed many other bugs. On Sunday 7-12-2009 I'll release 3.4.2, or you can edit js.php of 3.4.1 and add this:


PHP Code:
<?php if (strpos($bfa_ata['configure_header'],'%image')!==FALSE AND 
$bfa_ata['header_image_javascript'] != "0" ) { ?>

var HeaderImages = new Array(<?php echo implode(","bfa_rotating_header_images()); ?>);
var t; var j = 0
var p = HeaderImages.length
<?php if ($bfa_ata['header_image_javascript_preload'] == "Yes") { ?>
var PreLoadImages = new Array()
for (i = 0; i < p; i++){
    PreLoadImages[i] = new Image()
    PreLoadImages[i].src = HeaderImages[i]
}
<?php ?>
function RotateHeaderImages(){
    if (document.body){
        HeaderImageContainer = document.getElementById('imagecontainer');
        HeaderImageContainer.style.background = 'url(' + HeaderImages[j] + ') <?php echo $bfa_ata['headerimage_alignment']; ?> no-repeat';
        j = j + 1
        if (j > (p-1)) j=0
        t = setTimeout('RotateHeaderImages()', <?php echo $bfa_ata['header_image_javascript']; ?>000)
    }
}
window.onload = RotateHeaderImages;

<?php ?>
after this

PHP Code:
# if (function_exists('sociable_html')) {
# include (WP_PLUGIN_DIR.'/sociable/wists.js');
# }

?> 
  #28  
Old Jul 25, 2009, 04:19 AM
ankita
 
2 posts · Jul 2009
URGENT!!!!!!!
dear i have by mistake i have upload the above stated code in theme editor/header.php/rotating image.php
my site got currupted.. i cannot access my site . dat is narinderafurnitures.com
please suggest me the solution to come out of the problem,its damn urgent...
  #29  
Old Jul 25, 2009, 05:38 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it got dropped in 3.4.0 and 3.4.1 but back in 3.4.2 see xhttp://forum.bytesforall.com/showthread.php?p=9964 if you want to fix one of those two versions - better yet, move to 3.4.2
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #30  
Old Jul 27, 2009, 05:19 PM
anisonam
 
1 posts · Jul 2009
I am having the same problem. I cannot get the header images to rotate at all, in any browser.

www.tibetanbuddhistaltar.org

I am also using Atahualpa 3.4.1

?
  #31  
Old Jul 27, 2009, 06:12 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it got dropped in 3.4 (and 3.4.1) but is back in the 3.4.2 version
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #32  
Old Jul 30, 2009, 07:57 PM
maccool
 
3 posts · Jul 2009
Also does not work using Atahualpa 3.4.2, WP 2.7.1, with Firefox 3.5. I put an extra set of qoutes around the background styling of js.php changing:

function RotateHeaderImages(){
if (document.body){
HeaderImageContainer = document.getElementById('imagecontainer');
HeaderImageContainer.style.background = 'url(' + HeaderImages[j] + ') <?php echo $bfa_ata['headerimage_alignment']; ?> no-repeat';
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('RotateHeaderImages()', <?php echo $bfa_ata['header_image_javascript']; ?>000)
}
}

to this:

function RotateHeaderImages(){
if (document.body){
HeaderImageContainer = document.getElementById('imagecontainer');
HeaderImageContainer.style.background = 'url("' + HeaderImages[j] + '") <?php echo $bfa_ata['headerimage_alignment']; ?> no-repeat';
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('RotateHeaderImages()', <?php echo $bfa_ata['header_image_javascript']; ?>000)
}
}

Now works using IE8, FF 3.5 (Win7 64 bit and Fedora 11), Opera 9.64, and Chrome 2.0.172.39.

Last edited by maccool; Jul 31, 2009 at 08:17 AM. Reason: Adding browser tested
  #33  
Old Aug 23, 2009, 12:57 PM
arenecute
 
9 posts · Aug 2009
I'm using 3.4.1
does that mean i'm not able to have my header image rotated in every 'N' seconds?
so sadddddddddddd >_<
  #34  
Old Aug 23, 2009, 01:11 PM
arenecute
 
9 posts · Aug 2009
i've just tried this and it WORKS like a charm! thanks you ))))

Last edited by juggledad; Mar 19, 2010 at 07:45 AM.
  #35  
Old Mar 31, 2010, 06:04 AM
Ber|Art's Avatar
Ber|Art
 
198 posts · Oct 2009
Europe (NL) ber-art.nl Windows 7x64 WP 3.x Atahualpa 3.7.x
Send a message via Skype™ to Ber|Art
Will this still work for the newest version you think?
  #36  
Old Mar 31, 2010, 06:28 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
The rotating header image code has been added into the theme. There is an option at ATO->Header Image called 'Rotate header images with Javascript?' that you can change from 0 to rotate the images.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #37  
Old Apr 6, 2010, 08:04 AM
Ber|Art's Avatar
Ber|Art
 
198 posts · Oct 2009
Europe (NL) ber-art.nl Windows 7x64 WP 3.x Atahualpa 3.7.x
Send a message via Skype™ to Ber|Art
Ach, yes offcause, Thx!
  #38  
Old Apr 15, 2010, 02:19 AM
Ber|Art's Avatar
Ber|Art
 
198 posts · Oct 2009
Europe (NL) ber-art.nl Windows 7x64 WP 3.x Atahualpa 3.7.x
Send a message via Skype™ to Ber|Art
Works fine! thx again! I hope to finish soon so I can show off
  #39  
Old Oct 14, 2010, 05:45 PM
ivan91tran
 
1 posts · Oct 2010
Thanks a lot juggledad, I had to try a few times, but I finally got it to work. I have to admit it looks great on my site. My only complaint would be that it slows things down about on my site. As soon as I added the javascript, my site also dropped somewhat on the organic Google listing. I think page-load time is a factor. So I decided to switch back. I WILL apply it to my personal blog though, where I don't give a squat about rankings.

Last edited by juggledad; Nov 16, 2010 at 06:42 AM.
  #40  
Old May 4, 2011, 03:34 PM
Webunet's Avatar
Webunet
 
45 posts · Aug 2010
I'm developing a new site, http://www.replaysportsmt.com/

I have 4 images loaded in the /header directory and all appear if the page is refreshed or you go to a new page. They are not rotating however. I have it set to rotate every 4 seconds using JavaScript fade effect.

Can you advise, please?

Thanks,

Tom
  #41  
Old May 4, 2011, 04:26 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I currently get a database error when trying to go to your site.

Perhaps you have a plugin conflict? If you turn off fade does it work?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #42  
Old May 4, 2011, 05:12 PM
Webunet's Avatar
Webunet
 
45 posts · Aug 2010
Quote:
Originally Posted by lmilesw
I currently get a database error when trying to go to your site.

Perhaps you have a plugin conflict? If you turn off fade does it work?
I removed the "Fade" effect and now it works. Trying it in IE & Firefox, both works, so how do I get the fade to work, its a great transition.

Thanks,

Tom
  #43  
Old May 4, 2011, 05:13 PM
Webunet's Avatar
Webunet
 
45 posts · Aug 2010
Apparently Bluehost had a server issue a few minutes after I sent my message...never fails.
  #44  
Old May 4, 2011, 05:37 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
So rotation is working now with fade on?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #45  
Old May 4, 2011, 05:45 PM
Webunet's Avatar
Webunet
 
45 posts · Aug 2010
Working, but WITHOUT fade. Tried fade again, increased time limits for image duration and fade, nothing seems to work with fade.

Thanks
  #46  
Old May 4, 2011, 06:26 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You may have a plugin conflict. The fade effect can be problematic and doesn't play nice with some. You can try temporarily deactivation your plugins to see if fade starts working.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #47  
Old May 21, 2011, 03:10 PM
p800aul
 
4 posts · May 2011
Hi

I can't seem to get the rotating header part of a site I'm testing to work. this is still very much in the suck it and see part of development so only two plugins loaded tried Deactivating them still no joy.

www.tsgmedia.co.uk/tsgwordpress/

Any clues?

Regards

Paul
  #48  
Old May 21, 2011, 05:29 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
What version of Atahualpa? Do you have all applicable bug fixes installed?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #49  
Old May 22, 2011, 04:44 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
until you apply the BUGFIX's (see the 'New Versions & Updates' forum) go to ato->Configure CSS & JS and set 'CSS: Compress?' to 'No'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #50  
Old May 22, 2011, 05:01 PM
p800aul
 
4 posts · May 2011
Yep that fixed it thanks sorry to ask what must have been a dumb question

regards

Paul

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Rotate Header and Resize Header work together? thetravelchronicle Forum How-To 10 Jun 24, 2009 08:24 PM
site auto-reloads every 3 seconds mrshannigan Atahualpa 3 Wordpress theme 7 Jun 17, 2009 06:56 PM
Header Images Fail to Rotate Yarrokon Header configuration & styling 10 Jun 8, 2009 11:17 AM
Pls help with - How to get a header image to rotate every 'N' seconds (sticky) HavaLyon Header configuration & styling 9 Apr 27, 2009 09:30 AM
nextGen gallery with image rotator as header image shatchp Header configuration & styling 1 Feb 13, 2009 08:40 PM


All times are GMT -6. The time now is 12:26 PM.


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