How to create a new weblog

1. Creating the weblog

As a superadmin, you can create new weblogs from the 'Nucleus Management' screen. They will then show up on the admin area.

2. Accessing your new weblog

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)
  2. By creating 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:
    $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(1234); Makes sure a certain category gets selected. Takes a category id as argument. Also accepts a category name (keep in mind that this can cause problems if multiple categories have the same name)
selectItem(1234); Makes sure a certain item gets selected
selectLanguage('french'); Makes sure a certain language gets used (note: might produce PHP warnings)

Make sure that these methods are called after the include('./config.php') statement, and before the selector(); statement!

Creating a blog in a subdirectory

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');

Tips & Suggestions