This is a HowTo add multiple blogs to your website.
As a superadmin, you can create new weblogs from the ‘Nucleus Management’ screen. They will then show up on the admin area.
There are several ways in which you can make your new weblog accessible.
1. Using a blogid attribute in the URL:
http://yourhost.com/index.php?blogid=2
(You can find the blogid in the [[admin]] area, when hovering over the [[blog]] name in the [[blog]] list)
a copy of the index.php file (in this example, our file is named copy.php), and editing the contents of the file to look like this: <?php
$CONF[’Self’] = ‘copy.php’;
include(’config.php’);
selectBlog(’shortblogname’);
selector();
?>
(You can find the short [[blog]] name in the [[admin]] area, when hovering over the [[blog]] name in the [[blog]] list)
Extra methods to use in copy.php
The selectBlog is only one of the methods which you can use in copies of index.php files. Here’s a list of the available calls:
Method - Description
selectBlog(’shortblogname’); Makes sure a certain blog gets selected
selectSkin(’skinname’); Makes sure a certain skin gets selected
selectCategory(’categoryname’); Makes sure a certain category gets selected
Make sure that these methods are called after the include(’config.php’) statement, and before the selector(); statement!
The process for creating a blog in a subdirectory (http://yourhost.com/sub/ where the main weblog is in http://yourhost.com/) is similar, with the only change that you’ll need to replace include(’config.php’); by include(’../config.php’);
You’ll also need to alter the <%commentform%> in the skins used for that blog:
<%commentform(http://yourhost.com/sub/)%> (update: only necessary if your are running an old version)
:: HowTo ::