Help with Atahualpa Issues
Can you jump in and lend a hand on this help forum post: http://commons.gc.cuny.edu/groups/wordpress-help/forum/topic/customize-theme-installation/#post-3397
#1 Updated by scott voth over 10 years ago
Hi Matt - I can see how you can change the background image and the logo in Atahualpa (and I replied to the forum), but how to change the rotator images? It used to be that you just uploaded an image to your media files with the same naming convention, but now they seem to abandoned that method. I can look at this later today (I've got to go out right now), but I am a little stumped on this one.
#3 Updated by Boone Gorges over 10 years ago
The documentation makes it look like the old method has been abandoned, but a look at the code suggests otherwise. It looks like the theme should look in your uploaded files (Dashboard > Media) for files named atahualpa_header_X, where X is an integer.
Has anyone actually tested this?
#4 Updated by scott voth over 10 years ago
Hi Boone - yeah, in the code it still seems to look for the images in the upload folders first, but I've tried using that naming convention (atahualpa_header_1, atahualpa_header_2, atahualpa_header_3...), but they never get picked up. At first I thought it was because the files were .JPG rather than .jpg, but I tried png, jpg, and jpeg extensions, but none of them seemed to work. Also tried creating a completely new blog with that theme, but didn't work either.
#5 Updated by Boone Gorges over 10 years ago
- Status changed from Assigned to Reporter Feedback
- Target version changed from Not tracked to 1.1.5
You're right, Scott. I took a closer look and there were a few bugs in Atahualpa that were causing the problem. One is that they were using an outdated way of testing for a multisite installation that broke after WP 3.0. Another is that the regex they were using to find header images in the uploads folder was incorrectly written.
I fixed both bugs in https://github.com/castiron/cac/commit/b931228bd1c01d9b8281ddfe4adcd2af1a534bc8. Scott, can I ask you to test these changes on cdev before you contact the reporting member and I mark the ticket resolved?
BTW I submitted the patches to the authors of Atahualpa. Hopefully they'll be included in the next version.
#11 Updated by scott voth over 10 years ago
Yes, I don't think the issue is totally resolved - though it's a hundred times closer! The images from the download folder are now getting displayed - but as Aaron notes (and I've confirmed), they are getting randomly "scaled" - so, for example - in my sandbox blog, I have just two images - but they appear in random widths (and actually overlay each other sometimes). It's weird. I tried to see if there was a setting that does this - but didn't see it.
#14 Updated by scott voth over 10 years ago
Hi - When pulling images from WP upload folders, the images now appear in the rotator slideshow, but they are for some reason randomly re-sized - very odd. See http://sandboxdescott.commons.gc.cuny.edu/
I wonder if it's because the images are not identically sized? One is 600x322, and the other is 600x90. But it was happening on just one image on Aaron's blog, taking the same image and scaling back and forth. I will look some more - but have to go to work now.
#18 Updated by Boone Gorges over 10 years ago
- Status changed from Assigned to Reporter Feedback
Part of the problem here is that I wrote the regex to be too generous. When you upload a file through Dashboard > Media, WP creates several sizes, and my regex is detecting several resized versions of each image. I have fixed this problem in https://github.com/castiron/cac/commit/8e7d746cfab112ec91b5c1cde3d95c4b7383857d
The other part of the problem (or maybe it's not a problem at all) is that Atahualpa is set to rotate through header images on reload, even when you have the JS rotate option turned off. Ideally, Atahualpa would give you an option to disable this feature, and to select a single image from the atahualpa_header_* collection to display on every page load. But that would take me a long time to build (and the Atahualpa guys might not even integrate it), so I'm instead going to suggest that if you want the same header image on every page load, you should delete all atahualpa_header_* images that you have uploaded, except for the one you want to use, making sure to save backups of those other images.
Does that sound like a reasonable course? If so then I will mark this ticket Resolved and roll the regex fix into 1.1.6.
#21 Updated by scott voth over 10 years ago
One thing I noticed in this seemingly endless saga - once you create images in your upload folder, with that naming convention - they seem to be with you forever. It seems like they get moved to the other folder (like Shawn mentioned)? I was looking into Rowena's issue, and I thought I could just delete all my header images and go back to the defaults, but it seems like once you take the plunge, you're kind of married to supplying those images. They remain with you, and its not a caching issue. I switched browsers, and they were still there. Probably not really an issue, but rather an interesting feature of Atahualpa.