Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   New Versions, & Updating (http://forum.bytesforall.com/forumdisplay.php?f=12)
-   -   Don't check for wpmu-settings.php (http://forum.bytesforall.com/showthread.php?t=11814)

boone Dec 20, 2010 07:39 AM

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!

ctrl-alt-esc Feb 18, 2011 09:36 AM

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.

LANtait Feb 25, 2011 05:51 PM

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


All times are GMT -6. The time now is 12:08 PM.

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