Location: PHPKode > projects > Nucleus CMS Weblog > nucleus3.63/nucleus/documentation/devdocs/sqltables.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!-- $Id: sqltables.html 1457 2010-10-26 15:47:41Z ftruscot $ -->
	<title>Nucleus - SQL Table Structure</title>
	<link rel="stylesheet" type="text/css" href="styles/manual.css" />
	<style type="text/css">
		/* auto increment table columns*/
		.autoinc {
		}

		/* primary-keys */
		.primary {
			text-decoration: underline;
			font-weight: bold;
		}

		/* NOT NULL */
		.notnull {
		}

		/* unique key */
		.unique {
		}

		/* foreign keys */
		.foreign {
			font-style: italic;
		}

		/* auto increment table columns*/
		.autoinc {
		}

		/* fulltext index */
		.fulltext {
		}

		/* columns/tables to remove in later versions */
		.toremove {
			color: red;
		}




	</style>
</head>
<body>

<a name="top" id="top"></a>

<div class="heading">
SQL Table Reference
<i>November 1, 2010</i>
</div>

<h1>Introduction</h1>

<p>
<a href="index.html">Back to the developer docs index</a>
</p>

<p>
This document contains information on the fields inside the Nucleus database tables.
</p>

<p class="note">The structure as presented here is for <strong>Nucleus v3.6</strong>.</p>

<h1><a name="toc" id="toc"></a>Table Of Contents</h1>

<ul>
	<li><a href="#legend">Color codes in this document</a></li>
	<li>

		Blogs

		<ul>
			<li><a href="#nucleus_blog">nucleus_blog</a></li>
			<li><a href="#nucleus_category">nucleus_category</a></li>
			<li><a href="#nucleus_item">nucleus_item</a></li>
			<li><a href="#nucleus_comment">nucleus_comment</a></li>
			<li><a href="#nucleus_member">nucleus_member</a></li>
			<li><a href="#nucleus_team">nucleus_team</a></li>
		</ul>
	</li>
	<li>
		Plugins
		<ul>
			<li><a href="#nucleus_plugin">nucleus_plugin</a></li>
			<li><a href="#nucleus_plugin_event">nucleus_plugin_event</a></li>
			<li><a href="#nucleus_plugin_option">nucleus_plugin_option</a></li>
			<li><a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a></li>
		</ul>
	</li>
	<li>
		Skins and templates
		<ul>
			<li><a href="#nucleus_skin">nucleus_skin</a></li>
			<li><a href="#nucleus_skin_desc">nucleus_skin_desc</a></li>
			<li><a href="#nucleus_template">nucleus_template</a></li>
			<li><a href="#nucleus_template_desc">nucleus_template_desc</a></li>
		</ul>
	</li>
	<li>
		Administration
		<ul>
			<li><a href="#nucleus_actionlog">nucleus_actionlog</a></li>
			<li>
				<a href="#nucleus_config">nucleus_config</a>
				<ul>
				 	<li><a href="#nucleus_config_options">Available Options</a></li>
				</ul>
			</li>
			<li><a href="#nucleus_tickets">nucleus_tickets</a></li>
			<li><a href="#nucleus_activation">nucleus_activation</a></li>
		</ul>
	</li>
	<li>
		Extras
		<ul>
			<li><a href="#nucleus_karma">nucleus_karma</a></li>
			<li><a href="#nucleus_ban">nucleus_ban</a></li>
		</ul>
	</li>


</ul>

<a id="legend" name="legend"></a>
<h1>Color codes<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>This document uses some visual styles to indicate the type of columns. An overview is listed below:</p>

<table><tr>
	<td class="primary">primary</td>
	<td>Primary keys</td>
</tr><tr>
	<td class="foreign">foreign</td>
	<td>Foreign keys (click to go to the references value in other columns). Please note that MySQL does not enforce foreign key restrictions.</td>
</tr><tr>
	<td class="toremove">toremove</td>
	<td>Tables/columns that will probably be removed in upcoming Nucleus version, in favor of plugins that provide the same functionality.</td>
</tr><tr>
	<td class="fulltext">fulltext</td>
	<td>There is a fulltext index on the column (used for searches).</td>
</tr></table>


<a id="nucleus_blog" name="nucleus_blog"></a>
<h1>Table nucleus_blog<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>

</tr><tr>
	<td class="notnull autoinc primary">bnumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Blog ID</td>

</tr><tr>
	<td class="notnull">bname</td>
	<td>varchar(60)</td>
	<td>''</td>
	<td>Blog Name</td>

</tr><tr>
	<td class="notnull unique">bshortname</td>
	<td>varchar(15)</td>
	<td>''</td>
	<td>Short Blog Name (as used in skinvars <code>&lt;%blog%&gt;</code> etc.)</td>

</tr><tr>
	<td>bdesc</td>
	<td>varchar(200)</td>
	<td>NULL</td>
	<td>Blog Description</td>

</tr><tr>
	<td class="notnull">bcomments</td>
	<td>tinyint(2)</td>
	<td>'1'</td>
	<td>Enable comments (1=true, 0=false)</td>

</tr><tr>
	<td class="notnull">bmaxcomments</td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Maximum amount of comments to show on <code>index</code> skintypes (inline comments). The default value (0) means that there is no limit. If you don't use inline comments, you shouldn't edit this.</td>

</tr><tr>
	<td class="notnull">btimeoffset</td>
	<td>decimal(3,1)</td>
	<td>'0.0'</td>
	<td>Time offset to use. The items will be stored in the database using the correct time (server time+offset).</td>

</tr><tr>
	<td class="toremove">bnotify</td>
	<td>varchar(128)</td>
	<td>NULL</td>
	<td>Notify e-mail address. On certain events (see <code>bnotifytype</code> for the exact definition of these events), a notification e-mail is sent out to this e-mail address.</td>

</tr><tr>
	<td>burl</td>
	<td>varchar(100)</td>
	<td>NULL</td>
	<td>Blog URL</td>

</tr><tr>
	<td class="toremove">bupdate</td>
	<td>varchar(60)</td>
	<td>NULL</td>
	<td>Update file that needs to be altered each time a new item is posted to the weblog. Its an absolute path of a file on the server.</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_skin_desc">bdefskin</a></td>
	<td>int(11)</td>
	<td>'1'</td>
	<td>Default skin to use when displaying this weblog</td>

</tr><tr>
	<td class="notnull">bpublic</td>
	<td>tinyint(2)</td>
	<td>'1'</td>
	<td>Allow comments by non-registered members? (1=true/0=false)</td>

</tr><tr>
	<td class="notnull toremove">bconvertbreaks</td>
	<td>tinyint(2)</td>
	<td>'1'</td>
	<td>Convert line breaks to <code>&lt;br /&gt;</code>? (1=true/0=false)</td>

</tr><tr>
	<td class="foreign"><a href="#nucleus_category">bdefcat</a></td>
	<td>int(11)</td>
	<td>NULL</td>
	<td>Default category. This category will be selected by default when no other category is selected.</td>

</tr><tr>
	<td class="notnull">bnotifytype</td>
	<td>int(11)</td>
	<td>'15'</td>
	<td>
		Which events to send notification e-mails on (see <code>bnotify</code> for the specification of the e-mail address). It's a combination of three values (multiply the values to get the notify type):
		<ul>
			<li>3: New comment</li>
			<li>5: New karma vote</li>
			<li>7: New item</li>
		</ul>
		Default = New comments &amp; New karma votes (3*5=15)
	</td>

</tr><tr>
	<td class="notnull">ballowpast</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Allow backdating of items and editing the timestamp of an item (1=true/0=false)</td>

</tr><tr>
	<td class="notnull">bincludesearch</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Always include in search queries, even if the query is on another blog (1=true/0=false)</td>

</tr><tr>
	<td class="notnull">breqemail</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Require non-members to supply an email address when adding comments (1=true/0=false)</td>
	
</tr><tr>
	<td class="notnull">bfuturepost</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Whether blog has future posts awaiting publishing (1=true/0=false)</td>
</tr>
</table>


<a id="nucleus_category" name="nucleus_category"></a>
<h1>Table nucleus_category<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">catid</td>
	<td>int(11)</td>
	<td></td>
	<td>Category ID</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_blog">cblog</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Blog to which the category belongs</td>

</tr><tr>
	<td>cname</td>
	<td>varchar(40)</td>
	<td>NULL</td>
	<td>Category Name</td>

</tr><tr>
	<td>cdesc</td>
	<td>varchar(200)</td>
	<td>NULL</td>
	<td>Category Description</td>
</tr></table>


<a id="nucleus_item" name="nucleus_item"></a>
<h1>Table nucleus_item<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">inumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Item ID</td>

</tr><tr>
	<td class="fulltext">ititle</td>
	<td>varchar(160)</td>
	<td>NULL</td>
	<td>Title</td>

</tr><tr>
	<td class="notnull fulltext">ibody</td>
	<td>text</td>
	<td></td>
	<td>Body text</td>

</tr><tr>
	<td class="fulltext">imore</td>
	<td>text</td>
	<td></td>
	<td>Extended text</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_blog">iblog</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Blog to which the item belongs to</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_member">iauthor</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Member that is the author of the item</td>

</tr><tr>
	<td class="notnull">itime</td>
	<td>datetime</td>
	<td>'0000-00-00 00:00:00'</td>
	<td>Item time (this is the corrected time, with offset already applies)</td>

</tr><tr>
	<td class="notnull">iclosed</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Is item closed? (1=true/0=false). When an item is closed, it's no longer possible to add new comments or cast 'karma votes'</td>

</tr><tr>
	<td class="notnull">idraft</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Is the item a draft version? Draft versions only show up in the admin area.</td>

</tr><tr>
	<td class="notnull toremove">ikarmapos</td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Total amount of positive karma votes casted</td>

</tr><tr>
	<td class="notnull toremove">ikarmaneg</td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Total amount of negative karma votes casted</td>

</tr><tr>
	<td class="foreign"><a href="#nucleus_category">icat</a></td>
	<td>int(11)</td>
	<td>NULL</td>
	<td>Category to which the item belongs</td>

</tr><tr>
	<td class="notnull">iposted</td>
	<td>tinyint(2)</td>
	<td>'1'</td>
	<td>Is the item posted? 0 means it is awaiting publication on a future date.</td>

</tr></table>


<a id="nucleus_comment" name="nucleus_comment"></a>
<h1>Table nucleus_comment<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">cnumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Comment ID</td>

</tr><tr>
	<td class="notnull fulltext">cbody</td>
	<td>text</td>
	<td></td>
	<td>Comment text</td>

</tr><tr>
	<td>cuser</td>
	<td>varchar(40)</td>
	<td>NULL</td>
	<td>Anonymous user name (only used when comment was placed by a non-member. For members, see <code>cmember</code>)</td>

</tr><tr>
	<td>cmail</td>
	<td>varchar(100)</td>
	<td>NULL</td>
	<td>URL or, pre-3.3, E-mail address (only used when comment was placed by a non-member. For members, see <code>cmember</code>)</td>

</tr><tr>
	<td>cemail</td>
	<td>varchar(100)</td>
	<td>NULL</td>
	<td>E-mail address (only used when comment was placed by a non-member. For members, see <code>cmember</code>)</td>

</tr><tr>
	<td class="foreign"><a href="#nucleus_member">cmember</a></td>
	<td>int(11)</td>
	<td>NULL</td>
	<td>ID of site member that placed the commend (0 for comments by non-members)</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_item">citem</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Item ID to which the comment is attached</td>

</tr><tr>
	<td class="notnull">ctime</td>
	<td>datetime</td>
	<td>'0000-00-00 00:00:00'</td>
	<td>Time of comment</td>

</tr><tr>
	<td>chost</td>
	<td>varchar(60)</td>
	<td>NULL</td>
	<td>Hostname from where the comment was placed</td>

</tr><tr>
	<td class="notnull">cip</td>
	<td>varchar(15)</td>
	<td>''</td>
	<td>IP address from where the comment was placed</td>

</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_blog">cblog</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Blog to which the comment belongs (this is redundant information)</td>

</tr></table>



<a id="nucleus_member" name="nucleus_member"></a>
<h1>Table nucleus_member<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">mnumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Member ID</td>

</tr><tr>
	<td class="notnull unique">mname</td>
	<td>varchar(32)</td>
	<td>''</td>
	<td>Display name (the one used to login)</td>

</tr><tr>
	<td>mrealname</td>
	<td>varchar(60)</td>
	<td>NULL</td>
	<td>Full name</td>

</tr><tr>
	<td class="notnull">mpassword</td>
	<td>varchar(40)</td>
	<td>''</td>
	<td>password (<a href="http://www.php.net/md5" title="Info about the PHP md5() function">md5</a> hash)</td>

</tr><tr>
	<td>memail</td>
	<td>varchar(60)</td>
	<td>NULL</td>
	<td>E-mail address. This should always be a valid address.</td>

</tr><tr>
	<td>murl</td>
	<td>varchar(100)</td>
	<td>NULL</td>
	<td>URL of members site</td>

</tr><tr>
	<td>mnotes</td>
	<td>varchar(100)</td>
	<td>NULL</td>
	<td>Extra notes (members can fill these out themselves)</td>

</tr><tr>
	<td class="notnull">madmin</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Is super-admin? (1=true/0=false; super-admins have all rights; there must be at least one super-admin in the system)</td>

</tr><tr>
	<td class="notnull">mcanlogin</td>
	<td>tinyint(2)</td>
	<td>'1'</td>
	<td>Can logon to admin area? (1=true/0=false)</td>

</tr><tr>
	<td>mcookiekey</td>
	<td>varchar(40)</td>
	<td>NULL</td>
	<td>A copy of the key that is stored in the users cookie. This key is used to log on. When a member logs on, a random cookiekey is generated. One copy goes into the database, another one goes into a cookie on the users computer. (together with the username).</td>

</tr><tr>
	<td class="notnull">deflang</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>Language file to use for this member. When empty, uses the default site language.</td>
</tr></table>




<a id="nucleus_team" name="nucleus_team"></a>
<h1>Table nucleus_team<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>For each team member of a blog, there is a row in this table.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary foreign"><a href="#nucleus_member">tmember</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Member ID</td>

</tr><tr>
	<td class="notnull primary foreign"><a href="#nucleus_blog">tblog</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Blog of which member is on team</td>

</tr><tr>
	<td class="notnull">tadmin</td>
	<td>tinyint(2)</td>
	<td>'0'</td>
	<td>Is blog admin? (0=false/1=true; each blog must have at least one admin)</td>
</tr></table>


<a id="nucleus_plugin" name="nucleus_plugin"></a>
<h1>Table nucleus_plugin<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">pid</td>
	<td>int(11)</td>
	<td></td>
	<td>Plugin ID</td>

</tr><tr>
	<td class="notnull">pfile</td>
	<td>varchar(40)</td>
	<td>''</td>
	<td>Filename (e.g. <code>NP_CommentControl</code>) of plugin. This must be a file in the plugins directory (.php extension).</td>

</tr><tr>
	<td class="notnull">porder</td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Order in which the plugins are called, and in which they are displayed on the plugins page. A lower order number places the plugin earlier in the list.</td>
</tr></table>

<a id="nucleus_plugin_event" name="nucleus_plugin_event"></a>
<h1>Table nucleus_plugin_event<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>A cache that remembers which plugins are registered to which events. Thsi information is stored to avoid having to load all plugins on each requests just to find out which events they want to have. <a href="plugins.html#events">More info on plugins events</a></p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_plugin">pid</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Plugin ID</td>

</tr><tr>
	<td>event</td>
	<td>varchar(40)</td>
	<td>NULL</td>
	<td>Name of event</td>
</tr></table>

<a id="nucleus_plugin_option" name="nucleus_plugin_option"></a>
<h1>Table nucleus_plugin_option<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>Values for the plugin options. See the <a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a> table for the definition of the options itself.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>

</tr><tr>
	<td class="notnull autoinc primary foreign"><a href="#nucleus_plugin_option_desc">oid</a></td>
	<td>int(11)</td>
	<td></td>
	<td>Identification of the option (See the <a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a> table)</td>

</tr><tr>
	<td class="notnull">ovalue</td>
	<td>TEXT</td>
	<td>''</td>
	<td>Value of the option</td>

</tr><tr>
	<td class="notnull primary">ocontextid</td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>
		Semantics depend on the option context type,
		<ul>
			<li>global context: not used</li>
			<li>blog context: <a href="#nucleus_blog">blog id</a></li>
			<li>category context: <a href="#nucleus_category">category id</a></li>
			<li>member context: <a href="#nucleus_member">member id</a></li>
		</ul>
	</td>
</tr></table>


<a id="nucleus_plugin_option_desc" name="nucleus_plugin_option_desc"></a>
<h1>Table nucleus_plugin_option_desc<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>For each option created by a plugin, a row is present in this table.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc unique">oid</td>
	<td>int(11)</td>
	<td></td>
	<td>Option ID. Used from <a href="#nucleus_plugin_option">nucleus_plugin_option</a></td>

</tr><tr>
	<td class="notnull primary foreign"><a href="#nucleus_plugin">opid</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Plugin to which the option belongs</td>

</tr><tr>
	<td class="notnull primary">oname</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>Name of the option</td>

</tr><tr>
	<td class="notnull primary">ocontext</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>Context of the option (<code>global</code>, <code>blog</code>, <code>category</code>, <code>member</code>)</td>

</tr><tr>
	<td>odesc</td>
	<td>varchar(255)</td>
	<td>NULL</td>
	<td>Option description</td>

</tr><tr>
	<td>otype</td>
	<td>varchar(20)</td>
	<td>NULL</td>
	<td>option type. <a href="plugins.html#options" title="Nucleus Plugin API - Option types">See plugin documentation</a>.</td>

</tr><tr>
	<td>odef</td>
	<td>text</td>
	<td></td>
	<td>Default value for options</td>

</tr><tr>
	<td>oextra</td>
	<td>text</td>
	<td></td>
	<td>Extra data needed for some option types (e.g. <code>select</code> option type)</td>
</tr></table>

<a id="nucleus_skin" name="nucleus_skin"></a>
<h1>Table nucleus_skin<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary foreign"><a href="#nucleus_skin_desc">sdesc</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Reference to the skin description</td>

</tr><tr>
	<td class="notnull primary">stype</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>
		Skinpart type
		<ul>
			<li><code>index</code></li>
			<li><code>item</code></li>
			<li><code>archive</code></li>
			<li><code>archivelist</code></li>
			<li><code>search</code></li>
			<li><code>error</code></li>
			<li><code>member</code></li>
			<li><code>imagepopup</code></li>
		</ul>
	</td>

</tr><tr>
	<td class="notnull">scontent</td>
	<td>text</td>
	<td></td>
	<td>Contents of the skinpart</td>
</tr></table>

<a id="nucleus_skin_desc" name="nucleus_skin_desc"></a>
<h1>Table nucleus_skin_desc<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary">sdnumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Skin ID</td>

</tr><tr>
	<td class="notnull unique">sdname</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>Name of skin</td>

</tr><tr>
	<td>sddesc</td>
	<td>varchar(200)</td>
	<td>NULL</td>
	<td>Skin description</td>

</tr><tr>
	<td class="notnull">sdtype</td>
	<td>varchar(40)</td>
	<td>'text/html'</td>
	<td>mimetype of skin</td>

</tr><tr>
	<td class="notnull">sdincmode</td>
	<td>varchar(10)</td>
	<td>'normal'</td>
	<td>
		Include mode
		<ul>
			<li><code>normal</code></li>
			<li><code>skindir</code></li>
		</ul>
	</td>

</tr><tr>
	<td class="notnull">sdincpref</td>
	<td>varchar(50)</td>
	<td>''</td>
	<td>Prefix to use when including files</td>
</tr></table>

<a id="nucleus_template" name="nucleus_template"></a>
<h1>Table nucleus_template<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary foreign"><a href="#nucleus_template_desc">tdesc</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Reference to template description info</td>

</tr><tr>
	<td class="notnull primary">tpartname</td>
	<td>varchar(64)</td>
	<td>''</td>
	<td>
		Name of template part
		<ul>
			<li>ARCHIVELIST_FOOTER</li>
			<li>ARCHIVELIST_HEADER</li>
			<li>ARCHIVELIST_LISTITEM</li>
			<li>BLOGLIST_FOOTER</li>
			<li>BLOGLIST_HEADER</li>
			<li>BLOGLIST_LISTITEM</li>
			<li>CATLIST_FOOTER</li>
			<li>CATLIST_HEADER</li>
			<li>CATLIST_LISTITEM</li>
			<li>COMMENTS_AUTH</li>
			<li>COMMENTS_BODY</li>
			<li>COMMENTS_CONTINUED</li>
			<li>COMMENTS_FOOTER</li>
			<li>COMMENTS_HEADER</li>
			<li>COMMENTS_MANY</li>
			<li>COMMENTS_NONE</li>
			<li>COMMENTS_ONE</li>
			<li>COMMENTS_TOOMUCH</li>
			<li>DATE_FOOTER</li>
			<li>DATE_HEADER</li>
			<li>EDITLINK</li>
			<li>FORMAT_DATE</li>
			<li>FORMAT_TIME</li>
			<li>IMAGE_CODE</li>
			<li>ITEM_FOOTER</li>
			<li>ITEM_HEADER</li>
			<li>ITEM</li>
			<li>LOCALE</li>
			<li>MEDIA_CODE</li>
			<li>MORELINK</li>
			<li>NEW</li>
			<li>POPUP_CODE</li>
			<li>SEARCH_HIGHLIGHT</li>
			<li>SEARCH_NOTHINGFOUND</li>
			<li>other template fields as added by plugins using TemplateExtraFields event</li>
		</ul>
	</td>

</tr><tr>
	<td class="notnull">tcontent</td>
	<td>text</td>
	<td></td>
	<td>Contents of templatepart</td>
</tr></table>


<a id="nucleus_template_desc" name="nucleus_template_desc"></a>
<h1>Table nucleus_template_desc<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull autoinc primary unique">tdnumber</td>
	<td>int(11)</td>
	<td></td>
	<td>Template ID</td>

</tr><tr>
	<td class="notnull unique">tdname</td>
	<td>varchar(64)</td>
	<td>''</td>
	<td>Name of template</td>

</tr><tr>
	<td>tddesc</td>
	<td>varchar(200)</td>
	<td>NULL</td>
	<td>Template description</td>
</tr></table>

<a id="nucleus_actionlog" name="nucleus_actionlog"></a>
<h1>Table nucleus_actionlog<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>[[general purpose description]]</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th></th>
	<th>Description</th>
</tr><tr>
	<td class="notnull">timestamp</td>
	<td>datetime</td>
	<td>'0000-00-00 00:00:00'</td>
	<td>Time of action</td>

</tr><tr>
	<td class="notnull">message</td>
	<td>varchar(255)</td>
	<td>''</td>
	<td>Action message</td>
</tr></table>



<a id="nucleus_config" name="nucleus_config"></a>
<h1>Table nucleus_config<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>Nucleus stores some global options in the <code>nucleus_config</code> table. They can be accessed at any time using <code>$CONF['OptionName']</code> (the values are read on each request and stored in a global array named <code>$CONF</code>)</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary">name</td>
	<td>varchar(20)</td>
	<td>''</td>
	<td>Option name</td>

</tr><tr>
	<td>value</td>
	<td>varchar(128)</td>
	<td>NULL</td>
	<td>Option value</td>
</tr></table>

<a name="nucleus_config_options" id="nucleus_config_options"></a>
<h2>Available Options</h2>

<p>An overview of available options is given below:</p>

<p>Options for yes/no options are represented using 1/0 (1=yes/true, 0=no/false)</p>

<table><tr>
	<th>Name</th>
	<th>Default Value</th>
	<th>Description</th>
</tr><tr>
	<td class="foreign"><a href="#nucleus_blog">DefaultBlog</a></td>
	<td>1</td>
	<td>Default weblog. This is the blog that will be used when no other blog has been specified in the request.</td>
</tr><tr>
	<td>AdminEmail</td>
	<td></td>
	<td>E-mail address of site administrator</td>
</tr><tr>
	<td>IndexURL</td>
	<td></td>
	<td>URL of website. Should end with a slash.</td>
</tr><tr>
	<td>Language</td>
	<td>english</td>
	<td>Language file to use by default. A file <strong>languagename.php</strong> must exist in the languages directory.</td>
</tr><tr>
	<td>SessionCookie</td>
	<td>0</td>
	<td>Use session cookie instead of cookies with a lifetime of one month?</td>
</tr><tr>
	<td>AllowMemberCreate</td>
	<td>0</td>
	<td>Allow visitors to create their own account?</td>
</tr><tr>
	<td>AllowMemberMail</td>
	<td>1</td>
	<td>Allow members to send messages to each other through the member mail forms (e-mail addresses remain hidden)</td>
</tr><tr>
	<td>SiteName</td>
	<td></td>
	<td>Name of the website</td>
</tr><tr>
	<td>AdminURL</td>
	<td></td>
	<td>URL of admin area. Should end with a slash.</td>
</tr><tr>
	<td>NewMemberCanLogon</td>
	<td>1</td>
	<td>Can newly registered members login right away? If not, the administrator will have to change their 'can login' option first</td>
</tr><tr>
	<td class="toremove">DisableSite</td>
	<td>0</td>
	<td>Is the website disabled? If so, only the administrator can access it. All other visitors are redirected to <code>DisableSiteURL</code>.</td>
</tr><tr>
	<td class="toremove">DisableSiteURL</td>
	<td></td>
	<td>An URL to redirect to when the site is disabled.</td>
</tr><tr>
	<td class="toremove">LastVisit</td>
	<td>0</td>
	<td>Save 'Last Visit' cookies</td>
</tr><tr>
	<td>MediaURL</td>
	<td></td>
	<td>URL of media folder. Should end with a slash.</td>
</tr><tr>
	<td>AllowedTypes</td>
	<td>jpg, jpeg, gif, mpg, mpeg, avi, mov, mp3, swf, png</td>
	<td>Filetypes that can be uploaded</td>
</tr><tr>
	<td>AllowLoginEdit</td>
	<td>0</td>
	<td>Allow members to edit their login name and password?</td>
</tr><tr>
	<td>AllowUpload</td>
	<td>1</td>
	<td>Allow file uploads?</td>
</tr><tr>
	<td class="toremove">DisableJsTools</td>
	<td>2</td>
	<td>
		Style of the javascript toolbar:
		<ul>
			<li>0: full featured (IE)</li>
			<li>1: toolbar disabled</li>
			<li>2: simpler (Gecko)</li>
		</ul>
	</td>
</tr><tr>
	<td>CookiePath</td>
	<td>/</td>
	<td>Path to set cookie on</td>
</tr><tr>
	<td>CookiePrefix</td>
	<td></td>
	<td>String to prefix cookie names with. This is useful when multiple Nucleus installs are on the same domain, as it prevents login sessions to interfere with each other.</td>
</tr><tr>
	<td>CookieDomain</td>
	<td></td>
	<td>Domain to set cookie on</td>
</tr><tr>
	<td>CookieSecure</td>
	<td>0</td>
	<td>Secure cookie (https)</td>
</tr><tr>
	<td>MediaPrefix</td>
	<td>1</td>
	<td>If true, the uploaded files get the current date in their filename.</td>
</tr><tr>
	<td>MaxUploadSize</td>
	<td>1048576</td>
	<td>Max. size of uploaded files (in bytes)</td>
</tr><tr>
	<td>NonmemberMail</td>
	<td>0</td>
	<td>Allow non-members to send e-mail messages to site members?</td>
</tr><tr>
	<td>PluginURL</td>
	<td></td>
	<td>URL of plugin folder. Should end with a slash.</td>
</tr><tr>
	<td>ProtectMemNames</td>
	<td>1</td>
	<td>When this option is enabled, non-logged in members cannot add comments using the same name as registered members. The reason to do this would be to avoid guest impersonating members.</td>
</tr><tr>
	<td class="foreign"><a href="#nucleus_skin_desc">BaseSkin</a></td>
	<td>1</td>
	<td>The option tells Nucleus which skin to fall back to when no such decision can be automatically made. This happens when skin parts are empty, when no blog or skin is implicitly/explicitly selected.</td>
</tr><tr>
	<td>SkinsURL</td>
	<td></td>
	<td>URL of skins folder. Should end with a slash.</td>
</tr><tr>
	<td>ActionURL</td>
	<td></td>
	<td>URL of <code>action.php</code> script.</td>
</tr><tr>
	<td>URLMode</td>
	<td>normal</td>
	<td>either <code>normal</code> or <code>pathinfo</code></td>
</tr><tr>
	<td>DatabaseVersion</td>
	<td>250</td>
	<td>Last Nucleus version for which the database structure has been updated (introduced in Nucleus v2.5)</td>
</tr><tr>
	<td>DebugVars</td>
	<td>0</td>
	<td>Whether unresolved variables should be displayed in skins (introduced in Nucleus v3.4)</td>
</tr><tr>
	<td>DefaultListSize</td>
	<td>10</td>
	<td>Set the size of lists in the admin area (introduced in Nucleus v3.4)</td>
</tr></table

<a id="nucleus_tickets" name="nucleus_tickets"></a>
<h1>Table nucleus_tickets<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>Nucleus uses the <code>nucleus_tickets</code> to prevent against certain security issues. In particular: each action on the admin area that affects the settings or database contents, requires a ticket. These tickets are generated when requesting an admin area page and passed along with the form. Tickets are destroyed one hour after their creation.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary">ticket</td>
	<td>varchar(40)</td>
	<td></td>
	<td>Unique ticket, valid for one particular member. A typical ticket looks like this: <code>65303a785423b4d53c7b3e6579766f26</code></td>
</tr><tr>
	<td class="notnull foreign primary"><a href="#nucleus_member">member</a></td>
	<td>int(11)</td>
	<td></td>
	<td>Member for which this ticket is valid.</td>
</tr><tr>
	<td class="notnull">ctime</td>
	<td>datetime</td>
	<td></td>
	<td>Time of ticket creation. A ticket is valid no longer than one hour.</td>
</tr></table>


<a id="nucleus_activation" name="nucleus_activation"></a>
<h1>Table nucleus_activation<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p>When a new member registers, Nucleus doesn't allow that member to log in before his account is activated. This activation is done by sending out an activation link to the members email address. The <code>nucleus_activation</code> table keeps track of the activations that are in progress.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull primary">vkey</td>
	<td>varchar(40)</td>
	<td></td>
	<td>Activation key. This key needs to be passed to the member activation code. A typical key looks like this: <code>41cf637d4fbeeff954b4ca70b8bde9dd</code></td>
</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_member">vmember</a></td>
	<td>int(11)</td>
	<td></td>
	<td>Member which needs to be activated.</td>
</tr><tr>
	<td class="notnull">vtime</td>
	<td>datetime</td>
	<td></td>
	<td>Time at which activation key was generated. Each activation key is valid no longer than 2 days.</td>
</tr><tr>
	<td class="notnull">vtype</td>
	<td>varchar(15)</td>
	<td></td>
	<td>Type of activation.
		<ul>
			<li><code>forgot</code>: member forgot his password.</li>
			<li><code>register</code>: new member registration.</li>
			<li><code>addresschange</code>: member changed his e-mail address.</li>
		</ul>
	</td>
</tr><tr>
	<td class="notnull">vextra</td>
	<td>varchar(128)</td>
	<td></td>
	<td>Extra information. For an <code>addresschange</code> type of activation, this contains <code>oldemailaddress/x</code> with x either 0 or 1 and refering to the previous value of the <code>mcanlogin</code> field in the <a href="#nucleus_member">member</a> table. (untill fully re-activated, a user cannot login)</td>
</tr></table>


<a id="nucleus_karma" name="nucleus_karma"></a>
<h1>Table nucleus_karma<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p class="toremove">This table will most likely be removed in future Nucleus version, in favor of plugins with the same functionality.</p>

<p>This table keeps track of IP addresses that have already voted for an item. This way, each IP address can cast only one vote.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_item">itemid</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Item ID</td>

</tr><tr>
	<td class="notnull">ip</td>
	<td>char(15)</td>
	<td>''</td>
	<td>IP address of voter</td>
</tr></table>

<a id="nucleus_ban" name="nucleus_ban"></a>
<h1>Table nucleus_ban<a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="back to top" /></a></h1>

<p class="toremove">This table will most likely be removed in future Nucleus version, in favor of plugins with the same functionality.</p>

<p>IP bans. These people cannot comment or cast karma votes.</p>

<table><tr>
	<th>Column Name</th>
	<th>Type</th>
	<th>Default</th>
	<th>Description</th>
</tr><tr>
	<td class="notnull">iprange</td>
	<td>varchar(15)</td>
	<td>''</td>
	<td>IP 'range'. This can either be a full IP address or part of an IP address (starting from the left) to ban ranges</td>

</tr><tr>
	<td class="notnull">reason</td>
	<td>varchar(255)</td>
	<td>''</td>
	<td>A message with the reason why someone was banned. This message will be shown when they try to add a comment/cast a vote.</td>
</tr><tr>
	<td class="notnull foreign"><a href="#nucleus_blog">blogid</a></td>
	<td>int(11)</td>
	<td>'0'</td>
	<td>Blog for which the ban is active</td>
</tr></table>


</body>
</html>
Return current item: Nucleus CMS Weblog