WordPress.org

Ready to get started?Download WordPress

Ideas

Multiple blogs without multiple users.

  1. pepsimax2k
    Member

    This isn't a request for WPMU, which gives you multiple blogs with multiple users and no connection between them.

    Instead I'd like to be able to create, from a single WordPress install, multiple blogs capable of unique templates, stylesheets, directories and possibly a few settings, but all managed from the same login page and with the ability to post posts to one or multiple blogs much like the categories selection but not all going to the same blog.

    Example:
    http://www.inaudible.co.uk/crimea/
    http://www.inaudible.co.uk/crimea/archive/category/crocketts/
    using multiple plugins and various hacks i've managed to get two seperate looking sites that can share posts. there's a number of problems with it though that you might notice if you surf around a bit (ie. eventually you'll end up with site 1's template/css on site 2).

    also, this plugin:
    http://anthologyoi.com/wordpress/plugins/super-category-multi-blog-plugin-v-08.html
    which is only for 2.1, no longer maintained, and depends on using parked domains, but otherwise does much of what i'd like.

    Posted: 6 years ago #
  2. rscrawford
    Member

    12345

    This has been one of the only sticking points for my wife to convert from MT to WP. She and I both operate several different blogs, and this gets burdensome when it's time to upgrade WP; instead of upgrading just one installation, I have to upgrade one installation for each blog that I run. I *definitely* rate this a 5.

    Posted: 6 years ago #
  3. geo-wordpress
    Member

    12345

    The ability to have satellite blogs that feed a parent blog with posts would be great. Most of the RSS based solutions don't provide adequate integration.

    Posted: 6 years ago #
  4. halsnalle
    Member

    12345

    Yes, this is the only feature I miss since migrating from Nucleus 1,5 year ago.

    For example, I'd like trying out CommentPress to publish work-in-progress academic papers, but it would take too much time and trouble to either (a) set up a new WordPress install for every project, (b) switch to WP MU or (c) using plugins and hacks to achieve the effect.

    Posted: 6 years ago #
  5. afiouni
    Member

    12345

    Surely a must have feature!

    Posted: 6 years ago #
  6. charlieman
    Member

    12345

    This is easy to do in one hosting with multiple domains, just open your wp-config.php and change it for this:

    <?php
    
    switch ( $_SERVER['SERVER_NAME'] ) {
      case 'server1.com':    // <- your first site
        define('DB_NAME', 'database');
        define('DB_USER', 'user');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 'wp_';
        define ('WPLANG', 'es_PE');
        break;
      case 'server2.org':  // your second site
        define('DB_NAME', 'database');
        define('DB_USER', 'user');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 's2_';    // you can just change the prefix
        define ('WPLANG', 'es_PE');
        break;
    
      // here add more case [...] break;
    
      default:  // keep a default just to be safe
        define('DB_NAME', 'database2'); // or just change the database
        define('DB_USER', 'user2');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 'wp_';
        define ('WPLANG', 'es_PE');
    }
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

    Each ┬┤case 'server.com': [...] break;┬┤ is a different domain with it's own database or prefix.

    This will keep just one wp install to upgrade.

    Try it!

    Posted: 6 years ago #
  7. charlieman
    Member

    12345

    Just to avoid problems with that hack, this should be added on top and replace the switch:

    $sitename = strtolower( $_SERVER['SERVER_NAME'] );
    if ( substr( $sitename, 0, 4 ) == 'www.' ) {
    $sitename = substr( $sitename, 4 );
    }
    switch ( $sitename ) {
    ...

    Posted: 6 years ago #
  8. benf
    Member

    12345

    Hi guys!
    Good I looked up the old ideas before submitting my own. Might as well add my comments here...

    The most important thing here would be to be able to cross post from just one "writing pad". A "place" where I could collect all my drafts, links that I will blog about as soon as I get a chance. I'm even fine with setting up different blogs with their own adminpage, template handling and more, if I could just write from just one spot. I usually don't tweak the blog's appearance that often.

    And whould it be possible to easily file permalinks to comments I write across other people's blogs, and maybe even "suck them back home". Not that my comments are so great all the time, but it's annoying to loose track of all the conversations. I know there's cocomment and probably others out there, but it seems to me that WordPress could become a "control room" for my writing.

    What do you think?

    Posted: 6 years ago #
  9. geckospyker
    Member

    Hi Everyone,

    This is just the topic I've been looking for. Currently I have 3 WP 2.3.3 installs using the same user database. This works OK, but I still can't keep them logged in across DB's. Now, since I am a novice at PHP I'm gonna need some guidance with the PHP code shown above:

    @charlieman
    Is this the code you intend from your second post?

    
    \<?php
    
    $sitename = strtolower( $_SERVER['SERVER_NAME'] );
    if ( substr( $sitename, 0, 4 ) == 'www.' ) {
    $sitename = substr( $sitename, 4 );
    }
    switch ( $sitename ) {( $_SERVER['SERVER_NAME'] ) {
      case 'server1.com':    // <- your first site
        define('DB_NAME', 'database');
        define('DB_USER', 'user');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 'wp_';
        define ('WPLANG', 'es_PE');
        break;
      case 'server2.org':  // your second site
        define('DB_NAME', 'database');
        define('DB_USER', 'user');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 's2_';    // you can just change the prefix
        define ('WPLANG', 'es_PE');
        break;
    
      // here add more case [...] break;
    
      default:  // keep a default just to be safe
        define('DB_NAME', 'database2'); // or just change the database
        define('DB_USER', 'user2');
        define('DB_PASSWORD', 'xxxxx');
        define('DB_HOST', 'localhost');
        define('DB_CHARSET', 'utf8');
        define('DB_COLLATE', '');
        $table_prefix  = 'wp_';
        define ('WPLANG', 'es_PE');
    }
    
    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>\ 

    From the additional code you've added does this mean that there will be 4 iterations in addition to the default which can be changed at any time to a smaller or larger nubmer. As far as you know will this hack allow the functionality of cross posting, using same user db and keeping those users logged in across databases and also maintaining separate designs for each? How does this work for plugins? Will the plugins all be pulled from one repository? If so, if I decide to deactivate it in one DB will it deactivate for all? Do I need to do any 'hack' of the php files such as settings and config?

    Posted: 6 years ago #
  10. geckospyker
    Member

    Sorry about my last question - this is the config file - duh! But are there any other files that must be changed?

    Posted: 6 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    17 Votes
  • Status

    This idea is under consideration