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 » New Versions, & Updating »

Don't check for wpmu-settings.php


  #1  
Old Dec 20, 2010, 07:39 AM
boone
 
5 posts · Dec 2010
Don't check for wpmu-settings.php

Several places in Atahualpa, the theme checks to see whether WPMU is running by seeing whether wpmu-settings.php exists. This file has been removed in WP 3.0+, so the check always returns false, breaking ability to use images uploaded through the media uploader for the rotating image header.

WP 3.0+ has a core function is_multisite() that works nicely for this purpose. If you want to keep backward compatibility with WPMU, maybe you could do something like

if ( ( function_exists( 'is_multisite' ) && is_multisite() ) || file_exists(ABSPATH."/wpmu-settings.php") )

(Untested, but I imagine it will work.)

Thanks!
  #2  
Old Feb 18, 2011, 09:36 AM
ctrl-alt-esc
 
2 posts · Feb 2011
My temporary solution was to create an empty wpmu-settings.php file in the root of the WordPress folder.

I also had to make these changes to make the Atahualpa Options page show up for the users on our multisite install.
  #3  
Old Feb 25, 2011, 05:51 PM
LANtait's Avatar
LANtait
 
56 posts · Jan 2011
Cebu Island, Philippines ~ I live on a tropical island!
The solution to all of this is HERE!

Maybe this can be added to the Atahualpa theme permanently?

Supported WP Versions

It supports all the following:
  • WP3.x in Single Site Mode
  • WP3.x in Multisite (Subdomain) Mode
  • WP3.x in Multisite (Subdirectory) Mode
  • WP3.x in Multisite Mode with the WP MultiNetwork Plugin
  • WPMU (For those still using this! ~ WPMU is unchanged.)

Added Features:
  1. It allows most sites to do an Automatic update from Wordpress.org without deleting custom files.
    (If added to the Atahualpa theme permanently.)
  2. It uploads headers, logos and favicons via the WP Media Uploader (NOT FTP) on a per site basis.
  3. It allows Individual Blog Admins to upload these files ~ without FTP access ~ to the Blogs they control.
  4. It adds shuffle and sort support to the WP3.x multisite.

Documentation

ALL Mods are detailed in the download file:
README_MULTISITE_MOD.php
With exact line numbers in the Atahualpa 3.6.4 theme.

===

Likewise ~ the five pre-modified Atahualpa 3.6.4 files in the download package can be searched for "LANtait" with complete comments on how each file was modified.

TESTED

TESTED with Atahualpa 3.6.4 and WP 3.0.4 At this writing this mod has been running for nearly a month on live sites.

This should work with WP 3.0.5 and WP 3.1

===

Boone,

Your mod breaks WPMU users.

In this thread

http://forum.bytesforall.com/showthread.php?t=12267

Post 13 from Tamara-IT is using WPMU (in 2011) and your suggestion would really break her site, and all other WPMU installs.

It could be argued that they should upgrade to WP3.x multisite, but that may take some time (and be rather complex). This mod allows WPMU users more time to do that upgrade.

===

ctrl-alt-esc,

When using this mod, it adds the features of sort and shuffle to the multisite theme code.

The wpmu-settings.php is not standard and should not be used without WPMU. Therefore, by adding this mod to the theme for WP 3.x (any mode) you should delete the wpmu-settings.php file, as is standard for WP 3.x

Last edited by LANtait; Feb 25, 2011 at 06:08 PM. Reason: correct typo

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help! Exerpts, thumbnail settings don't work! Jeff G Excerpts, Read more, Pagination 3 Jul 2, 2010 08:59 AM
Catchable, no commas, missing/corrupt post info - Please check this file Flynn Atahualpa 3 Wordpress theme 4 Dec 14, 2008 02:23 PM


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


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