Page 1 of 1

Two blogs, same entries and comments?

Posted: Sat Feb 11, 2006 5:23 pm
by Tygur
Is this possible?

I'm thinking I want to have two blogs at two different domains that look different, but share entries. One might only show entries from certain categories, while the other might show them all. I thought about just submitting to both at the same time, but I would like comments made on an entry in one to show up in the other.

So..can it happen at all? I'm not afraid to do some PHP coding in an attempt to make it happen, if necessary.

Posted: Sun Feb 12, 2006 3:32 am
by judebert
There are no plugins that currently allow this. The closest you could come would be the RSS Feed Aggregator, which could pull the feeds in particular categories from your other site and display them on the front page. But then both blogs would be dependent on the main blog.

You seem to want some kind of sharing, or remote update. Another poster recently asked a similar question. Maybe you could write a plugin that called another blogs automatic posting mechanism, if any?

Posted: Sun Feb 12, 2006 9:58 pm
by garvinhicking
One central question: Are the two domains on the same server and going to the same document root? If yes, this should be easy.

This sounds like a very simple usage case of the "Extended properties for categories" plugin available via Spartacus. There you could apply different templates for specific categories.

You could even write up a VERY simple plugin that applies different templates depending on the HTTP domain name you used to enter the blog.

Save this as a file "config.inc.php" inside your selected template of the blog(s):

Code: Select all

<?php
if ($_SERVER['HTTP_HOST'] == 'www.domain1.com') {
    serendipity['template'] = 'custom';
}
?>
If anyone enters your blog with "www.domain2.com" they will get your default template. If they use "www.domain1.com" to enter your blog, the will get the 'custom' template instead.

If your two domains are on different servers, this would be a real pain. Synchronizing is REALLY hard to do then.

Regards,
Garvin