Howto change the look of a Nucleus site (for Nucleus v2.0)

Introduction

This tutorial is considered complete, but never finished. Updates and suggestions are always welcome, please reply to this forum thread. Thanks! (October 5, 2005)

You have just installed Nucleus, and now the first thing you want to do is change the look of your brand new weblog/news page. For new users, the way Nucleus handles web pages can be confusing at first. This document will try to guide you through the processes needed to make this excellent tool look the way you want it to.

In this howto, we will explain:

The basics: Nucleus skins & templates explained back to top

The design of Nucleus-generated sites is managed by the combination of skins & templates. Skins determine the overall look of pages generated by Nucleus. Templates control the always changing parts of the weblog that appear on these different pages. These work together to offer you maximum flexibility, and (once you understand the concept) are very ease to manage.

XML-RSS? The xml-rss skins & templates are somewhat different. But you should never need to change those, They are used to generate a newsfeed from your site's content.

Example Let's presume that previous kottke.org design was powered by Nucleus. Then the front page of that site would be controlled by a skin and a template like this:

 
Screenshot 1: Template inside front page skin.

If you want to start changing the look of your site, the concept to remember in the back of your mind is that: dynamic blocks of content (templates) can be inserted into, moved around and removed from the Nucleus webpages (skins). Now let's start changing that bland default design!

Change the default design back to top

Some basic changes  

If you only want to make some basic changes, leave the skins & templates alone. Start by changing the yellow background and/or moving the 'navigation and links' column from the right side of the page to the left side. (The concerned files are located in yoursite.com/skins/default/). First login to Nucleus. Then, at the bottom of the navigation menu, click on the Skin Files link to go to the web based management of all the files that make up your skins:

Permissions? The NP_SkinFiles enables the web based management of all files in the skins directory. You can always 'read' them. If you want to actually edit them from your browser, set the permissions on all files in the /skins/ directory and subdirectories to 666 or rw-rw-rw. Take care the directories themselves are set to 766 or rwxrw-rw-!!

Skindata.xml? In all the different skin directories, skinbackup.xml files can be found which hold the original code of a skin. These are backup files, which you can restore through the 'import/export' link in your Nucleus admin area. The code Nucleus uses to display your site is stored in the database! You are editing it when you edit one of the text boxes behind the Skins or Templates menu options

Back to the more simple modifications of the default skin:

The stylesheet (default_left.css or default_right.css) controls the appearance of all default Nucleus weblog pages. By editing it, you can easily change or apply new colors, font characteristics, background images to all pages at once. Furthermore, through a stylesheet you control where blocks of content are positioned. And much, much more.

You can edit the stylesheet default_left/_right.css in a normal text editor like NotePad. However, I recommend a good CSS editor like Topstyle Lite, or Pro, for beginners and more experienced users.

Useful stylesheet links: More information about CSS can be found at:

The stylesheet will enable you to change the look of your site. But I bet you want to have more control over the look of your site, so there is nothing else to do but dive into Nucleus skins!

Dive into skins 

First off, log into your admin area and select Nucleus Management. On the page that now appears, under the heading Skins and Templates, is where you will start creating your personal site design.

It is always a good idea to start by cloning the original default skin and default & detailed templates. That way you will not be working on the skin that is controlling your current site design. Here's how: