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] Auto Updating Header Image Loss and Seperate Rotating on MultiSite, MultiNet


 
Prev Previous Post   Next Post Next
  #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!
Tick [SOLVED] Auto Updating Header Image Loss and Seperate Rotating on MultiSite, MultiNet

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
 

Bookmarks

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



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 09:35 PM.


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