Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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

[SOLVED] Auto Updating Header Image Loss and Seperate Rotating on MultiSite, MultiNet


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 13, 2011, 03:16 AM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
Atahualpa 3.6.1
WordPress 3.0.4
MultiSite Sub-Domain Mode
WP Multi Network Plugin


I loaded Atahualpa 3.6.1 into WordPress 3.0.4 in MultiSite mode with the WP Multi Network Plugin. It runs a couple dozen sites, with a dozen or so being developed.

Different Sites Same Header Image

The first challenge I ran into is the rotating header images. In multisite they share the same directory. Meaning all sites would have the same images.

Not acceptable for my use.

Automatic Theme Updates Delete the Header Image Folder.

My search for an acceptable answer was also not acceptable.

Today, after I created my own solution, I noticed this thread from yesterday asking the same question. With no solid solution offered.

http://forum.bytesforall.com/showthr...mage#post54473

Not acceptable for my use.

Standards Compliant

I am also a believer in standards compliance. WordPress has a requirement that all parts of a theme be in the theme folder. Some if the suggestions I have read violate that requirement.

Not acceptable for my use.

MY SOLUTION

Since I have been making a living writing computer code since before my 10 children and 11 grandchildren were born, I figured I would just spend a few hours and solve this little challenge. The solution is posted on my person programing blog aLAN Tait Net Working!

The permalink is:
WordPress Atahualpa Theme Different Header Images for MultiSite WP

The Reasoning Behind This Modification
  1. It complies with the WP Standards for Themes
  2. It solves the challenge of Custom Header Images for MultiSites
  3. Custom Images are NOT deleted on Auto Updates.
  4. It is a small easy modification the programmer could make permanent.
  5. It does not break users using single site mode.
  6. Future ready - prepared for Admin Panel Image Updates.

1. It complies with the WP Standards for Themes
WordPress has a requirement that all parts of a theme be in the theme directory.

The WordPress default theme from the WP Core Team, has said that Custom Header Image Files are NOT a part of the Theme. In fact the TwentyTen Theme stores Custom Header Images in different locations in the wp-content/blogs.dir directory. Whereas the default images are stored with the TwentyTen Theme directory.

Following the Core Team's Theme Example, this modification stores the Custom Header Images in different locations withing the wp-content/blogs.dir directory and the default images withing the Atahualpa Theme directory.

2. It solves the challenge of Custom Header Images for MultiSites
Because it provides a unique directory for each sites Header Image, it solved the image challenge for MultiSite Mode and also Multi Networks.

Each Site has full rotational capabilities.

3. Custom Images are NOT deleted on Auto Updates.
Because Custom Header Images are stored outside of the Theme directory the delete and replace problem during Automatic Updates is solved.

4. It is a small easy modification the programmer could make permanent.
This modification just replaces a couple lines of code in one cut and paste operation. If done in a release it will work for single site mode, multisite sub-directory mode, multisite sub-domain mode, and multi Network mode, without any additional modifications.

5. It does not break users using single site mode.
In single site mode it adds the feature that Custom Header Images are not deleted during updates.

6. Future ready - prepared for Admin Panel Image Updates.
Although this was designed with the same concept of uploading Custom Header Images via FTP, the modification was written with the future in mind. If the Theme Author would like to add an upload page to the Admin Panel, it would be possible to used the standard wp_upload_dir() WordPress function to upload / retrieve these Header Image Files easily without having to think about directory structure. The retrieval code is already included and only needs to be uncommented when the upload code is completed.

Atahualpa MultiSite Forum
Is it possible to get an Atahualpa MultiSite Forum. I am planing to spend quite some time modifying Atahualpa to work in MultiSite and Multi Network modes. It is possible to make a Forum for Atahualpa MultiSite Users. I would be willing to support it.

Sincerely,

LAN

Last edited by LANtait; Jan 13, 2011 at 03:52 PM. Reason: Fixed Permalink, spelling
  #2  
Old Apr 30, 2011, 01:13 AM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
The Ultimate WordPress MultiSite, WP Multi Network, Atahualpa Mod which is Version 2.0 is better. It allows site by site uploading of the header files, the logo file and the favicon via the WordPress Image Uploader. No directories need to me made with FTP and no image files need to be uploaded via FTP. Works in All modes from a single site through multi site multi networks.
  #3  
Old Jun 8, 2011, 11:18 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
I have now released the
Atahualpa Easy Header Fix

For Atahualpa 3.6.4 and Atahualpa 3.6.7


The Atahualpa Easy Header Fix has many great features including...
  1. It protects custom header images, logo images and favicons during updates (even automatic updates).
  2. It is backwards compatible with all Atahualpa settings (it breaks no functionality).
  3. It works for Single Sites and Multi Site Sites and WP Multi Network Sites.
  4. It allows automatic updates of Atahualpa (from WordPress.org), which will not delete custom image files (Truly automatic if merged into the Atahualpa code).
  5. It includes uploading all per-site graphics, the headers, the the logo and the favicon.
  6. All image files are uploaded via the WordPress media uploader (no FTP access is needed).
  7. It uses standard WordPress functions to find the upload directory.
  8. It allows Sort and Shuffle modes for Multi Site and Multi Network as well as Single site mode.
  9. It allows Normal Default Settings for Atahualpa to function in a normal way.
  10. It is SMALL (only 22KB download) and makes only nine very tiny changes in five easy to upload files ~ with full documentation.
All in all it is a very nice Fix, super easy to use, stable, and hopefully, it will be considered for permanent inclusion into the Atahualpa Core Code.

Installing the Easy Header Fix
This fix is very stable, powerful and much easier to use! In fact, easy as One, Two, Three!

Atahualpa Easy Header Fix Download Page

Atahualpa Easy Header Fix Complete Instructions
Note: These instructions are Posted HERE!.

The website for this fix (including history and versions) is at:
http://alantait.net/atahualpa/

This is the close of this topic... CONTINUE HERE!

If you use this fix... Think about donating to Juggledad, I've spent time figuring this issue out and coming up with the fix, but Juggledad is here daily supplying support. Being in the Philippines and without paypal, I cannot send money. However, you sending Juggledad a donation will encourage him (and me) to continue to support Atahualpa. You can use the 'Donate to Juggledad' button on the donate page.
Thanks, LAN

Bookmarks

Tags
header image, header image files, image disappears, multisite, upgrade automatic

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
rotating header image not working after images/header folder delete cpickeri Header configuration & styling 7 Oct 12, 2011 05:03 AM
Auto Draft bug and updating to 3.5.1? adri New Versions, & Updating 10 Jul 6, 2010 04:50 AM
Thanks for JS header image rotating Colorblinded Header configuration & styling 2 May 12, 2010 01:42 PM
rotating image header- more than one? ortixia Header configuration & styling 1 Nov 26, 2009 06:24 PM
[SOLVED] Header image not updating dstorm Header configuration & styling 6 Aug 1, 2009 05:53 PM


All times are GMT -6. The time now is 10:29 AM.


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