Header shows in Safari but not in IE7
I'm unable to view the header image in IE7 (www.becomingaprayingcongregation.com) but I can view it in Firefox. Are there existing issues or is there something I need to correct.
Here's what the CSS looks like: <?php function bfa_rotating_header_images() { if (file_exists(ABSPATH."/wpmu-settings.php")) { ################### images in WP upload folder (on WPMU) $files = m_find_in_dir(url('/wp-content/themes/atahualpa/images/header/weblabryinthheaderghosted.jpg'), 'atahualpa_header_[0-9]+\.(jpe?g|png|gif|bmp)$'); if ($files) { foreach($files as $value) { $bfa_header_images[] = "'" . str_replace(url('/wp-content/themes/atahualpa/images/header/weblabryinthheaderghosted.jpg'), url('/wp-content/themes/atahualpa/images/header/weblabryinthheaderghosted.jpg'), $value) . "'"; } } } # If no user uploaded header image files were found in WPMU, or this is not WPMU: if (!file_exists(ABSPATH."/wpmu-settings.php") OR !$files ) { ################### images in /images/header/ (on regular WordPress) $files = ""; $imgpath = TEMPLATEPATH . '/images/header/'; $imgdir = get_bloginfo('template_directory') . '/images/header/'; $dh = opendir($imgpath); while (FALSE !== ($filename = readdir($dh))) { if(eregi('.jpg', $filename) || eregi('.gif', $filename) || eregi('.png', $filename)) { $files[] = $filename; } } closedir($dh); foreach($files as $value) { $bfa_header_images[] = '\'' . $imgdir . $value . '\''; } } return $bfa_header_images; } ?> |
What version of Atahualpa, WP and PHP?
Where did you place this code? |
The actual doesn't display in IE http://www.becomingaprayingcongregat...derghosted.jpg
This indicates that something is wrong with the image itself. Perhaps it was created as another file format and then just renamed to .jpg? |
Juggledad, I have the 3.4.1 version of Atahualpa and WP 2.8.4. The code was placed in the bfa_rotating_header_images
|
Hi Flynn, the image was sent to me as a jpeg. It could be possible that the original image was a tif file. What would I need to do to correct that?
|
Why not upgrade to 3.4.2 where the rotating header code is already in the code?
|
I don't understand. Wouldn't I still have to put the file location in the code?
|
In addition, try shortening the name of the image
|
It's definately a problem with the images. I just poped it into an image editor and changed some settings and resaved it and it shows up. This is NOT a normal jpg
Re the upgrade to 3.4.2 - no in 3.4.2 the code looks at the images/header folder and gets the names of all files in it to display in the rotating header. |
Thanks. I'll check with the designer who sent it to me.
|
All times are GMT -6. The time now is 01:10 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.