Categories
post

Multiple WordPress Blogs in One Installation

I have been hosting multiple wordpress blogs in one installation for a few years now. I like that I can upgrade one installation, and they all upgrade. I don’t have to go through 10 different installs/upgrades.

There are a few things that can be considered either a pro or a con based on your point of view. If one blog uploads a theme or a plugin, it is available to all the others. This doesn’t mean that if one enables it, they all have to have it enabled. It’s just there, so each can install if they need to.

One serious downside is customization. If one blog customizes a template, another blog can’t use it unless they too want that customization.

On to the nitty-gritty, all I do is change the wp-load.php file and copy the wp-config.php file. I copy the wp-config.php to wp-config-DOMAINNAME.php (example wp-config-www.johncongdon.com.php). Each config file changes the database table prefix.

Here is a diff for the wp-load.php file. It just changes an if statement to load our individual config, if it doesn’t exist, it loads the original wp-load.php.

--- wp-load-orig.php	2011-03-07 15:18:12.000000000 -0500
+++ wp-load.php	2011-03-07 10:30:04.000000000 -0500
@@ -24,7 +24,12 @@
 else
 	error_reporting(E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
 
-if ( file_exists( ABSPATH . 'wp-config.php') ) {
+if ( file_exists( ABSPATH . 'wp-config-'.$_SERVER['SERVER_NAME'].'.php') ) {
+
+  /** The config file resides in ABSPATH */
+  require_once( ABSPATH . 'wp-config-'.$_SERVER['SERVER_NAME'].'.php' );
+
+} elseif ( file_exists( ABSPATH . 'wp-config.php') ) {
 
 	/** The config file resides in ABSPATH */
 	require_once( ABSPATH . 'wp-config.php' );

Categories
Blogging

iTunes Needs To Include Comments For WordPress

I have been thinking about why some podcasts are not available in iTunes. Are the hosts/creators just too lazy to make their RSS feeds iTunes compliant?

And then it hit me. Maybe they don’t so that you are forced to watch it in their venue. Be it wordpress, YouTube, etc… If you watch it where they post it, then you are more likely to leave comments.

Let’s face it. Blogging and Vlogging are all about community involvement. The hosts want and need to see those comments. They strive to get more of them. It helps create content for their site (always good) and gives feedback, good and bad. The only way to get better is by knowing what doesn’t work.

So I think it should be imperative for Apple to include a couple more RSS tags that you would allow subscribers to post comments. Maybe even read the current comments right from iTunes. Apple should help bolster the whole community idea that surrounds podcasts. After all, they did put the POD in PODcasts.

Let me know what you think, leave a comment. 🙂

Categories
Technology

WordPress Category List Entries

We at bowlingball.com wanted to move our articles into wordpress to use the fantastic functionality already built in. I wanted a way to click on a category and show just a list of article titles, and none of the text.

All you have to do is edit the archive.php file to remove the divs that show the post. It’s simple and easy to do.

Check out our new Bowling Article and Tips pages at bowlingball.com.