<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
  <channel>
    <title>Nucleus FAQ</title>
    <link>http://faq.nucleuscms.org/</link>
    <description></description>
    <!-- optional tags -->
    <language>en-us</language>           <!-- valid langugae goes here -->
    <generator>Nucleus CMS v3.24</generator>
    <copyright>©</copyright>             <!-- Copyright notice -->
    <category>Weblog</category>
    <docs>http://backend.userland.com/rss</docs>
    <image>
      <url>http://faq.nucleuscms.org//nucleus/nucleus2.gif</url>
      <title>Nucleus FAQ</title>
      <link>http://faq.nucleuscms.org/</link>
    </image>
    <item>
 <title><![CDATA[What does it mean when "file/directory permissions are not set correctly"?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=205</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I am trying to upload an image to my blog but Nucleus keeps giving me an error message saying</p>
<p><code>File/Dir permissions are not set correctly</code></p>
<p>When I look at the Global Settings in the administration area, under the Configuration section, the part for Media Directory has a warning:</p>
<p><code>Warning: Current value is NOT a writable directory!</code></p>
<p>How can I fix this so I can use images in my blog items?"</i></p>
<p><b>Solution:</b><br />
The permissions on the <code>/media/</code> must be set to either <code>775</code> or <code>777</code>.  You can do this through an FTP client or your web host's file manager interface.  Simply navigate to the directory in which you installed Nucleus, select your <code>/media/</code> directory and change the permissions accordingly.</p>
<p><small><b>Figure 1:</b>  Right-clicking on the <code>/media/</code> directory and selecting "Properties" in the <a href="http://www.coreftp.com/" rel="external">Core FTP</a> FTP client brings up this dialogue box for you to set permissions.</small></p>
<p></p>
<p><b>Original forum thread (thanks, Armon!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=16458">http://forum.nucleuscms.org/viewtopic.php?t=16458</a>
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=205</comments>
 <pubDate>Sat, 10 Nov 2007 07:36:07 +0100</pubDate>
</item><item>
 <title><![CDATA[How do I upload a skin via FTP?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=204</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to use a new skin but I don't know how to use FTP to upload it!"</i></p>
<p><b>Original forum thread:</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=16159">http://forum.nucleuscms.org/viewtopic.php?t=16159</a></p>
<p><b>Solution:</b><br />
Most web hosts will have a user control panel installed on their server (such as cpanel) which will allow you to upload files to your server using your browser.  This can be very time consuming if you have many files to upload, such as if you are adding a new skin to your site!  The easiest way to upload a new skin is to use an FTP client.</p>
<p>There are many good FTP clients available which you can download and install for free if you do not already have an FTP client:</p>
<p><b><i>Windows</i></b></p>
<ul></p>
<li><a href="http://www.coreftp.com/">Core FTP Lite Edition</a> (freeware)</li>
</p>
<li><a href="http://filezilla.sourceforge.net/">FileZilla</a> (opensource)</li>

</ul>
<p><b>Method:</b></p>
<ol></p>
<li><a href="http://skins.nucleuscms.org/">Download the skin you want to use from the Nucleus CMS Skins Site</a>.  Your download will be a single .zip file which contains a single folder named after the skin.  We will be using the <a href="http://skins.nucleuscms.org/browser/enlight">Enlight</a> skin as an example, so our .zip file will be called <code>enlight_skin.zip</code> and it will contain a single folder called <code>enlight</code>.</li>
</p>
<li>Locate your downloaded skin .zip file on your computer.
<p></li>
</p>
<li>Using an <a href="http://faq.nucleuscms.org/item/195">archive extracting program</a>, unzip the skin folder from the .zip file.  If available, choose the "Extract Here" option.
<p></li>
</p>
<li>Find the skin folder which has been extracted.  Some archive extracting programs will not have the "Extract Here" option and will save the unzipped folders and files in a folder with the same name as the .zip file.  So in our example, you may have the <code>/enlight/</code> folder inside another folder called <code>/enlight_skin/</code>.  Only the <code>/enlight/</code> folder will be uploaded.
<p></p>
<p>Check to see the folder appears to be complete.  It should have at minimum the <code>readme.html</code>, <code>preview.png</code>, <code>preview-large.png</code> and <code>skinbackup.xml</code> files.</li>
</p>
<li>Open your FTP client and connect to your server.  Navigate to your <code>/skins/</code> directory (it should be in the same place as your <code>index.php</code> in the directory where you installed Nucleus).  Browse to find and select your entire skin folder in your FTP client.  Once you have done this, click to upload the entire folder to the <code>/skins/</code> directory.
<p></li>
</p>
<li>Wait for your files to upload...
<p></li>
</p>
<li>When the entire skin folder has uploaded, you should see it in your <code>/skins/</code> directory like this:
<p></li>
</p>
<li>Now you can <a href="http://faq.nucleuscms.org/item/48">import your new skin</a>!</li>

</ol>
<p><b>Further reading:</b></p>
<ul></p>
<li><a href="http://faq.nucleuscms.org/item/48">How do I import a skin?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/195">What is the password to the .zip files for Nucleus skins?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/33/catid/5">How can I change the skin for my blog/site?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/199">I just imported a skin but when I try to use it, no images, formatting, css or styles show on my page!</a></li>

</ul>
]]></description>
 <category>Skins</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=204</comments>
 <pubDate>Tue, 28 Aug 2007 11:33:02 +0200</pubDate>
</item><item>
 <title><![CDATA[Is it possible to get an editing toolbar in the Add Comment form like the one in the Add Item admin page?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=203</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I run a site with members who are not highly technical but want to post links and have basic formatting options (bold, italic) in their comments.  Can I get the editing toolbar in the Nucleus Add Item page inside the admin area in the comments area?"</i></p>
<p><b>Solution:</b><br />
The easy solution is to install one of the following plugins:</p>
<ul></p>
<li><a href="http://wakka.xiffy.nl/fancytext">NP_FancyText.php</a></li>
</p>
<li><a href="http://wakka.xiffy.nl/tinymce2">NP_TinyMCE2.php</a></li>

</ul>
<p>If you do not wish to install a plugin for some reason, you can employ a core hack to put some basic formatting toolbar icons into your Add Comment area.</p>
<p><b>Original forum thread (thanks, <a href="http://www.samsonov.net/" rel="external">maxirmx</a>!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=15975">http://forum.nucleuscms.org/viewtopic.php?t=15975</a>
</p>
<p><b>Method:</b></p>
<p><b><span style="color: red;">WARNING:  BEFORE TRYING ANY CORE HACK, YOU SHOULD ALWAYS MAKE A COMPLETE BACKUP OF YOUR NUCLEUS INSTALLATION!!!</span></b></p>
<ol></p>
<li>Add the following code to all stylesheets in use on your site (you can usually find them in the <code>/skins/skinname/</code> directory):<br />
<pre class="code"><span class="coMULTI">/* markup buttons */</span>
<span class="re1">.jsbutton
</span><span class="br0">&#123;</span>
    <span class="kw1">text-align</span>: <span class="kw2">center</span>;
    <span class="kw1">padding</span>: 3px;
    <span class="kw1">border</span>: 1px <span class="kw2">solid</span> #dddddd;
<span class="br0">&#125;</span>
&nbsp;
<span class="re1">.jsbuttonspacer
</span><span class="br0">&#123;</span>
    <span class="kw1">padding-right</span>: 10px;
<span class="br0">&#125;</span>
&nbsp;
<span class="re1">.jsbuttonbar
</span><span class="br0">&#123;</span>
    <span class="kw1">padding</span>: 3px;
    <span class="kw1">cursor</span>: <span class="kw2">default</span>;
<span class="br0">&#125;</span></pre>
</li>
</p>
<li>Open up the <code>commentform-loggedin.template</code> file in the <code>/nucleus/forms/</code> directory and replace its contents with the following code:<br />
<pre class="code">&lt;script type=&quot;text/javascript&quot;
    src=&quot;&lt;%adminurl%&gt;javascript/edit.js&quot;&gt;
&lt;/script&gt;

&lt;a id=&quot;nucleus_cf&quot;&gt;&lt;/a&gt;
&lt;form method=&quot;post&quot; action=&quot;#nucleus_cf&quot;&gt;
  &lt;div class=&quot;commentform&quot;&gt;
     &lt;%errordiv%&gt;

   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;addcomment&quot; /&gt;
   &lt;input type=&quot;hidden&quot; name=&quot;url&quot; value=&quot;&lt;%formdata(destinationurl)%&gt;&quot; /&gt;
   &lt;input type=&quot;hidden&quot; name=&quot;itemid&quot; value=&quot;&lt;%itemid%&gt;&quot; /&gt;
   &lt;label for=&quot;inputbody&quot;&gt;&lt;%text(_COMMENTFORM_COMMENT)%&gt;&lt;/label&gt;:
&lt;div class=&quot;jsbuttonbar&quot;&gt;
         &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;boldThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-bold.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
        &lt;/span&gt;            
        &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;italicThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-italic.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
         &lt;/span&gt;            
         &lt;span class=&quot;jsbuttonspacer&quot;&gt;
         &lt;/span&gt;         
         &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;ahrefThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-link.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
         &lt;/span&gt;            
        &lt;/div&gt;

   &lt;textarea name=&quot;body&quot; class=&quot;formfield&quot; tabindex=&quot;10&quot; cols=&quot;40&quot; rows=&quot;10&quot; id=&quot;inputbody&quot;
   onkeyup=&quot;storeCaret(this);&quot;
   onclick=&quot;storeCaret(this);&quot;
   onselect=&quot;storeCaret(this);&quot;&gt;
   &lt;%formdata(body)%&gt; &lt;/textarea&gt;


   &lt;%text(_COMMENTFORM_YOUARE)%&gt; &lt;%formdata(membername)%&gt;
   &lt;small&gt;(&lt;a href=&quot;?action=logout&quot;&gt;&lt;%text(_LOGOUT)%&gt;&lt;/a&gt;)&lt;/small&gt;


   &lt;input type=&quot;submit&quot; value=&quot;&lt;%text(_COMMENTFORM_SUBMIT)%&gt;&quot; class=&quot;formbutton&quot; /&gt;
   &lt;%callback(FormExtra,commentform-loggedin)%&gt;   
  &lt;/div&gt;
&lt;/form&gt;
</pre>
</li>
</p>
<li>Next, replace the contents of the <code>commentform-notloggedin.template</code> file in the same <code>/nucleus/forms/</code> directory with this code:<br />
<pre class="code">&lt;script type=&quot;text/javascript&quot;
    src=&quot;&lt;%adminurl%&gt;javascript/edit.js&quot;&gt;
&lt;/script&gt;

&lt;a id=&quot;nucleus_cf&quot;&gt;&lt;/a&gt;
&lt;form method=&quot;post&quot; action=&quot;#nucleus_cf&quot;&gt;
  &lt;div class=&quot;commentform&quot;&gt;
     &lt;%errordiv%&gt;

   &lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;addcomment&quot; /&gt;
   &lt;input type=&quot;hidden&quot; name=&quot;url&quot; value=&quot;&lt;%formdata(destinationurl)%&gt;&quot; /&gt;
   &lt;input type=&quot;hidden&quot; name=&quot;itemid&quot; value=&quot;&lt;%itemid%&gt;&quot; /&gt;
   &lt;label for=&quot;inputbody&quot;&gt;&lt;%text(_COMMENTFORM_COMMENT)%&gt;&lt;/label&gt;:
&lt;div class=&quot;jsbuttonbar&quot;&gt;
         &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;boldThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-bold.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
        &lt;/span&gt;            
        &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;italicThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-italic.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
         &lt;/span&gt;            
         &lt;span class=&quot;jsbuttonspacer&quot;&gt;
         &lt;/span&gt;         
         &lt;span class=&quot;jsbutton&quot;
               onmouseover=&quot;BtnHighlight(this);&quot;
               onmouseout=&quot;BtnNormal(this);&quot;
               onclick=&quot;ahrefThis()&quot; &gt;         
               &lt;img src=&quot;&lt;%adminurl%&gt;images/button-link.gif&quot; alt=&quot;&quot; width=&quot;16&quot; height=&quot;16&quot;/&gt;
         &lt;/span&gt;            
        &lt;/div&gt;

   &lt;textarea name=&quot;body&quot; class=&quot;formfield&quot; tabindex=&quot;10&quot; cols=&quot;40&quot; rows=&quot;10&quot; id=&quot;inputbody&quot;
   onkeyup=&quot;storeCaret(this);&quot;
   onclick=&quot;storeCaret(this);&quot;
   onselect=&quot;storeCaret(this);&quot;&gt;
   &lt;%formdata(body)%&gt; &lt;/textarea&gt;


   &lt;label for=&quot;nucleus_cf_name&quot;&gt;&lt;%text(_COMMENTFORM_NAME)%&gt;&lt;/label&gt;: &lt;input name=&quot;user&quot; size=&quot;40&quot; maxlength=&quot;40&quot; value=&quot;&lt;%formdata(user)%&gt;&quot; class=&quot;formfield&quot; id=&quot;nucleus_cf_name&quot; /&gt;


   &lt;label for=&quot;nucleus_cf_mail&quot;&gt;&lt;%text(_COMMENTFORM_MAIL)%&gt;&lt;/label&gt;: &lt;input name=&quot;userid&quot; size=&quot;40&quot; maxlength=&quot;60&quot; value=&quot;&lt;%formdata(userid)%&gt;&quot; class=&quot;formfield&quot; id=&quot;nucleus_cf_mail&quot; /&gt;

   &lt;%callback(FormExtra,commentform-notloggedin)%&gt;   

   &lt;input type=&quot;checkbox&quot; value=&quot;1&quot; name=&quot;remember&quot; id=&quot;nucleus_cf_remember&quot; &lt;%formdata(rememberchecked)%&gt; /&gt;&lt;label for=&quot;nucleus_cf_remember&quot;&gt;&lt;%text(_COMMENTFORM_REMEMBER)%&gt;&lt;/label&gt;


   &lt;input type=&quot;submit&quot; value=&quot;&lt;%text(_COMMENTFORM_SUBMIT)%&gt;&quot; class=&quot;formbutton&quot; /&gt;
  &lt;/div&gt;
&lt;/form&gt;
</pre>
</li>
</p>
<li>Now open up the <code>COMMENTS.php</code> file inside the <code>/nucleus/libs/</code> directory and find this bit of code:<br />
<pre class="code">   <span class="co1">// prepares the body of a comment (static)</span>
   <span class="kw2">function</span> prepareBody<span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
      <span class="co1">// remove newlines when too many in a row</span>
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/ereg_replace"><span class="kw3">ereg_replace</span></a><span class="br0">&#40;</span><span class="st0">"<span class="es0">\n</span>.<span class="es0">\n</span>.<span class="es0">\n</span>"</span>,<span class="st0">"<span class="es0">\n</span>"</span>,<span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="co1">// encode special characters as entities</span>
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/htmlspecialchars"><span class="kw3">htmlspecialchars</span></a><span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="co1">// trim away whitespace and newlines at beginning and end</span>
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="co1">// add  tags</span>
      <span class="re0">$body</span> = addBreaks<span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="co1">// create hyperlinks for http:// addresses</span>
      <span class="co1">// there's a testcase for this in /build/testcases/urllinking.txt</span>
      <span class="re0">$replaceFrom</span> = <a target="_blank"  href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span>
         <span class="st0">'/([^:<span class="es0">\/</span><span class="es0">\/</span><span class="es0">\w</span>]|^)((https:<span class="es0">\/</span><span class="es0">\/</span>)([<span class="es0">\w</span><span class="es0">\.</span>-]+)([<span class="es0">\/</span><span class="es0">\w</span>+<span class="es0">\.</span>~%&amp;?@=_:;#,-]+))/ie'</span>,
         <span class="st0">'/([^:<span class="es0">\/</span><span class="es0">\/</span><span class="es0">\w</span>]|^)((http:<span class="es0">\/</span><span class="es0">\/</span>|www<span class="es0">\.</span>)([<span class="es0">\w</span><span class="es0">\.</span>-]+)([<span class="es0">\/</span><span class="es0">\w</span>+<span class="es0">\.</span>~%&amp;?@=_:;#,-]+))/ie'</span>,
         <span class="st0">'/([^:<span class="es0">\/</span><span class="es0">\/</span><span class="es0">\w</span>]|^)((ftp:<span class="es0">\/</span><span class="es0">\/</span>|ftp<span class="es0">\.</span>)([<span class="es0">\w</span><span class="es0">\.</span>-]+)([<span class="es0">\/</span><span class="es0">\w</span>+<span class="es0">\.</span>~%&amp;?@=_:;#,-]+))/ie'</span>,
         <span class="st0">'/([^:<span class="es0">\/</span><span class="es0">\/</span><span class="es0">\w</span>]|^)(mailto:(([a-zA-Z<span class="es0">\@</span><span class="es0">\%</span><span class="es0">\.</span><span class="es0">\-</span><span class="es0">\+</span>_])+))/ie'</span>
      <span class="br0">&#41;</span>;
      <span class="re0">$replaceTo</span> = <a target="_blank"  href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span>
         <span class="st0">'COMMENT::createLinkCode(&quot;<span class="es0">\\</span>1&quot;, &quot;<span class="es0">\\</span>2&quot;,&quot;https&quot;)'</span>,
         <span class="st0">'COMMENT::createLinkCode(&quot;<span class="es0">\\</span>1&quot;, &quot;<span class="es0">\\</span>2&quot;,&quot;http&quot;)'</span>,
         <span class="st0">'COMMENT::createLinkCode(&quot;<span class="es0">\\</span>1&quot;, &quot;<span class="es0">\\</span>2&quot;,&quot;ftp&quot;)'</span>,
         <span class="st0">'COMMENT::createLinkCode(&quot;<span class="es0">\\</span>1&quot;, &quot;<span class="es0">\\</span>3&quot;,&quot;mailto&quot;)'</span>
      <span class="br0">&#41;</span>;
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/preg_replace"><span class="kw3">preg_replace</span></a><span class="br0">&#40;</span><span class="re0">$replaceFrom</span>, <span class="re0">$replaceTo</span>, <span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="kw1">return</span> <span class="re0">$body</span>;
   <span class="br0">&#125;</span></pre>
</li>
</p>
<li>Replace the above section of code with this code:<br />
<pre class="code">   <span class="co1">// prepares the body of a comment (static)</span>
   <span class="kw2">function</span> prepareBody<span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp;
      <span class="co1">// remove newlines when too many in a row</span>
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/ereg_replace"><span class="kw3">ereg_replace</span></a><span class="br0">&#40;</span><span class="st0">"<span class="es0">\n</span>.<span class="es0">\n</span>.<span class="es0">\n</span>"</span>,<span class="st0">"<span class="es0">\n</span>"</span>,<span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
&nbsp;
<span class="co1">// sooz [?]      </span>
<span class="co1">//                $body = addslashes ($body);</span>
&nbsp;
&nbsp;
      <span class="co1">// trim away whitespace and newlines at beginning and end</span>
      <span class="re0">$body</span> = <a target="_blank"  href="http://www.php.net/trim"><span class="kw3">trim</span></a><span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="co1">// add  tags</span>
      <span class="re0">$body</span> = addBreaks<span class="br0">&#40;</span><span class="re0">$body</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="kw1">return</span> <span class="re0">$body</span>;
   <span class="br0">&#125;</span></pre>
</li>
</p>
<li>You should now see three icons in your Add Comment area for <b>Bold</b>, <i>Italics</i> and <a href="">Links</a>.</li>

</ol>
]]></description>
 <category>Plugins & Hacks</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=203</comments>
 <pubDate>Tue, 21 Aug 2007 09:34:55 +0200</pubDate>
</item><item>
 <title><![CDATA[How do I make linked text?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=202</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to have some text which says 'really cool website' which links to <code>http://reallycoolwebsite.com/</code> when clicked."</i></p>
<p><b>Solution:</b><br />
You can manually link your text like this:</p>
<pre class="code">&lt;a href=&quot;http://reallycoolwebsite.com/&quot;&gt;really cool website&lt;/a&gt;</pre>
<p>You can also use the toolbar editor in the Nucleus admin area.  First, select the text you want to make into a link, then click on the link icon (the one with the little globe and chain):</p>
<p></p>
<p>Next, type the URL of your link and press "OK":</p>
<p></p>
<p>All done!  You should end up with something like this:</p>
<p></p>
<p><b>Original forum thread (thanks, Leng!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=15176">http://forum.nucleuscms.org/viewtopic.php?t=15176</a>
</p>
]]></description>
 <category>Getting started</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=202</comments>
 <pubDate>Sat, 18 Aug 2007 07:59:24 +0200</pubDate>
</item><item>
 <title><![CDATA[Can I list the latest X number of items from a category in my sidebar?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=201</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to list X of the latest items of one category to my sidebar. How can I do this?"</i></p>
<p><b>Solution:</b><br />
Create a new template called "headlines" which contains the following code in the Item Header section:</p>
<pre class="code">
&lt;li&gt;&lt;a href=&quot;&lt;%itemlink%&gt;&quot; title=&quot;&lt;%title%&gt;&quot;&gt;&lt;%title%&gt;&lt;/a&gt;&lt;/li&gt;
</pre>
<p>Then place this code where you want your list to appear:</p>
<pre class="code">
&lt;ul&gt;
&lt;%otherblog(blogname,headlines,X,categoryname)%&gt;
&lt;/ul&gt;
</pre>
<p>where <code>blogname</code> is the name of your blog, <code>templatename</code> is the name of your headline template to show just the linked item titles and <code>categoryname</code> is the name of your category.</p>
<p><b>Original forum thread (thanks, Leng!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=14468">http://forum.nucleuscms.org/viewtopic.php?t=14468</a>
</p>
]]></description>
 <category>Templates</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=201</comments>
 <pubDate>Sat, 18 Aug 2007 07:50:35 +0200</pubDate>
</item><item>
 <title><![CDATA[How can I make an item stay at the very top of my blog like a "sticky"?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=200</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to make one particular blog item always stay at the top of my Main Index page (e.g. a sticky item), so when I add new items, it stays at the top instead of being moved further down the page."</i></p>
<p><b>Solution:</b><br />
Nucleus has a variety of plugins which make sticky items possible:</p>
<ul></p>
<li><a href="http://wakka.xiffy.nl/showblogs">NP_ShowBlogs.php</a></li>
</p>
<li><a href="http://wakka.xiffy.nl/ordered">NP_Ordered.php</a></li>
</p>
<li><a href="http://wakka.xiffy.nl/sticky">NP_Sticky.php</a></li>
</p>
<li><a href="http://wakka.xiffy.nl/stickyitem">NP_StickyItem.php</a></li>

</ul>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=16049">http://forum.nucleuscms.org/viewtopic.php?t=16049</a>
</p>
]]></description>
 <category>Plugins & Hacks</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=200</comments>
 <pubDate>Sat, 18 Aug 2007 05:00:19 +0200</pubDate>
</item><item>
 <title><![CDATA[I just imported a skin but when I try to use it, no images, formatting, css or styles show on my page!]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=199</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I just <a href="http://faq.nucleuscms.org/item/48">imported a skin</a> from the <a href="http://skins.nucleuscms.org/">Skins site</a> but when I <a href="http://faq.nucleuscms.org/item/33">change the skin of my blog to something other than the default skin</a>, my page just has black text without any pretty images, css, formating or styles!"</i></p>
<p><b>Solution:</b></p>
<ol></p>
<li>Check that you have uploaded everything in the skins package you have downloaded, especially any image files or <code>.css</code> files.  Note that you must upload everything <strong>exactly as it is in the skin folder (i.e. <code>/skinname/</code>) to the <code>/skins/</code> directory.</strong>  For example, if you are trying to install the <a href="http://skins.nucleuscms.org/browser/libra">Libra</a> skin, make sure you have uploaded the entire <code>/libra/</code> folder, not just everything in the folder.</li>
</p>
<li>View the source of your page in your browser [ In Firefox: View > Page Source (Ctrl + U); in Internet Explorer 6: View > Source; in Internet Explorer 7: Page > Source ] and check that the URL your browser is accessing for the <code>.css</code> file is where the file actually is!  For example, the <code>.css</code> file for the <a href="http://nucleuscms.org/">official Nucleus CMS website</a> is at <a href="http://nucleuscms.org/styles/skins/nucleus/style.css">http://nucleuscms.org/styles/skins/nucleus/style.css</a>.  If your <code>.css</code> file is being called from <code>http://yourdomain.com/directory/style.css</code>, check there actually is a file called <code>style.css</code> in the directory <code>/directory/</code>.</li>
</p>
<li>Check that when you have unzipped the skin package (<code>skinname_skin.zip</code>) you have only uploaded the folder <code>skinname</code>.  Some unzipping software will unzip the skin package into a folder with the same name as the skin package (e.g. <code>skinname_skin</code> with a subfolder <code>skinname</code>).  <strong>Do not upload this folder!</strong>  Open the folder and upload the folder <code>skinname</code> <strong>inside</strong> the first folder.</li>

</ol>
<p><b>Original forum thread (thanks, echinacea!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=15880">http://forum.nucleuscms.org/viewtopic.php?t=15880</a>
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=199</comments>
 <pubDate>Mon, 2 Jul 2007 05:37:51 +0200</pubDate>
</item><item>
 <title><![CDATA[How do I add extra pages to my Nucleus site?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=198</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to have an "About" page or some other static page.  But none of the <a href="http://faq.nucleuscms.org/item/91">Nucleus skin type pages</a> are static!  Is making static pages possible in Nucleus?"</i></p>
<p><b>Solution:</b><br />
There are actually multiple ways of having static pages or extra pages in Nucleus:</p>
<ol></p>
<li><a href="http://forum.nucleuscms.org/viewtopic.php?t=15822">Download the Nucleus v3.3 Release Candidate</a>, which has added custom skin parts (allows static pages)</li>
</p>
<li>If you don't like the idea of installing a version of Nucleus which is not a final release, you can follow this thread to just add the custom skin parts yourself:<br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=12771">Hack: Custom skinparts, for static content, custom displays</a></li>
</p>
<li>There is also utterplush's somewhat messy but functional method which is tried and true:<br />
<a href="http://faq.nucleuscms.org/item/50">How do I use Nucleus to manage my static content?</a></li>
</p>
<li>If that is all too complicated, you can make static pages using a simple <code>.txt</code> file:<br />
<a href="http://faq.nucleuscms.org/item/183">Can I use text (.txt) files to create static pages in Nucleus?</a></li>
</p>
<li>Finally, there is always the option of <a href="http://faq.nucleuscms.org/item/35">installing some plugins</a>:
<ul>
<li><a href="http://wakka.xiffy.nl/dino">NP_Dino.php</a></li>
</p>
<li><a href="http://rakaz.nl/projects/nucleus/NP_Static.zip">NP_Static</a> (this plugin is experimental)</li>
</p>
<li><a href="http://japan.nucleuscms.org/wiki/plugins:extraskinjp">NP_ExtraSkinJP</a> (<a href="http://forum.nucleuscms.org/viewtopic.php?t=15406">see the translated English documentation</a>)</li>
</p>
<li><a href="http://radekhulan.cz/item/np-extraskin-even-better-than-sliced-bread/category/blog-cms">NP_ExtraSkin</a> (author no longer using Nucleus)</li>
</ul>
</li>
<p><b>Original forum thread (thanks, Armon, Leng!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=15412">http://forum.nucleuscms.org/viewtopic.php?t=15412</a>
</p>
]]></description>
 <category>Getting started</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=198</comments>
 <pubDate>Sun, 24 Jun 2007 03:32:58 +0200</pubDate>
</item><item>
 <title><![CDATA[How do I install Nucleus?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=80</link>
<description><![CDATA[<p><i>Written and contributed by <a href="http://leng-lui.info/" title="Leng-Lui.info">Leng Lui</a>.</i></p>
<p><b>Scenario:</b><br />
<i>"I think Nucleus is really great and I want to use it for my site/blogging community.  How do I install it?"</i></p>
<p><b>Solution:</b><br />
Just follow this walkthrough and you'll have Nucleus up and running in no time!  All you'll need is</p>
<ul>
<li><a href="http://faq.nucleuscms.org/item/21">a server which meets the minimum requirements for PHP and MySQL</a>;</li>
<li>a utility program which can open .zip files, such as <a href="http://www.7-zip.org/">7-Zip</a> (opensource), <a href="http://www.rarlab.com/">WinRAR</a> (shareware) or <a href="http://www.winzip.com/">WinZip</a> (shareware); and</li>
<li>an FTP program (optional, but preferably due to the number of files that must be uploaded to the server) such as <a href="http://www.coreftp.com/">Core FTP</a> (freeware version available) or <a href="http://filezilla.sourceforge.net/">FileZilla</a> (opensource).</li>
</ul>
<p>If you are looking to install Nucleus on your local hard drive, it is recommended you follow the FAQ article "<a href="http://faq.nucleuscms.org/item/158">Can I run Nucleus offline from my local computer/hard drive without being online?</a>" prior to this FAQ article.</p>
<p><b>Contents:</b></p>
<ul>
<li><a href="#walkthrough">Walkthrough</a></li>
<li><a href="#further_reading">Further reading</a></li>
</ul>
<p>For those who would like to see a little more action, here's karma's very own interactive Nucleus installation walkthrough:</p>
<ul>
<li><a href="http://karma.nucleuscms.org/experiments/wink/NucleusInstall.htm">Karma's Interactive Nucleus Installation Walkthrough</a></li>
</ul>
<p><a name="walkthrough"</a><b>Walkthrough:</b></p>
<ol>
<li>Download the latest version of Nucleus from the <a href="http://nucleuscms.org/">Nucleus site</a>.  At the time of writing this walkthrough, the latest version is 3.2.</p>
<p></p>
<p>Save the <code>.zip</code> file to your computer.</li>
</p>
<li>Extract the files from the <code>.zip</code>.  All the Nucleus files have been zipped inside a folder called <code>nucleus 3.2</code>.  Open the folder and you should have something like this:
<p></li>
</p>
<li>Open up your FTP client and connect to your server.  Navigate to your <code>/public_html/</code> folder on your server (circled in red) and your <code>\nucleus 3.2\</code> folder on your hard drive (circled in green).  Here you can choose whether you want to install Nucleus in your top directory (<code>http://yoursite.com/</code>) or a subdirectory (<code>http://yoursite.com/subdirectory/</code>).  Since I'm already running a Nucleus installation in my top directory, I'm going to install Nucleus in a subdirectory called <code>/testing/</code>.
<p>Upload all the files in the <code>\nucleus 3.2\</code> folder to the directory you want to install Nucleus in.  In my case, I've uploaded all my files to <code>/public_html/testing/</code> (area in blue square).</p>
<p></li>
</p>
<li>Next, we'll have to create a MySQL database for Nucleus to use.  Login to your server's administration area.  For this tutorial, we'll be using the Cpanel interface.  Ensim users, please see the <a href="http://faq.nucleuscms.org/item/110">Ensim Database Installation Walkthrough</a>.
<p>Go into the MySQL databases admin area (circled in red).</p>
<p></li>
</p>
<li>Scroll down until you find the part which allows you to add a database (circled in red).  Give your database a name and add it.  I'm going to call mine <code>ncls1</code>.
<p></li>
</p>
<li>Great, we now have a database!  But there's no use having a database if nobody can access it.  Scroll down again to create a new user for the database.  My database user is going to be "ncls1" with a password of "password".
<p></p>
<p>You should get some sort of confirmation to let you know you've done it right.</p>
<p></li>
</p>
<li>The last part of setting up the MySQL database is adding the user to the database's access list (circled in red).  Select the user and database you want to pair up.  I will be adding <code>lenglui_ncls1</code> to <code>lenglui_ncls1</code>.  Make sure you give your user all privileges.
<p></p>
<p>Again, you should be taken to a confirmation screen:</p>
<p></p>
<p>Your MySQL admin screen should now look like this:</p>
<p></li>
</p>
<li>Now it's time to run the install script!  To do this, head to <code>http://yoursite.com/install.php</code>, where <code>yoursite.com</code> is the URL to your site.  But if you've installed in a subdirectory like me, you'll need to go to <code>http://yoursite.com/subdirectory/install.php</code> where <code>subdirectory</code> is the name of the subdirectory you uploaded your Nucleus files to.  Since I installed Nucleus in the <code>/testing/</code> subdirectory, I need to go to <code>http://leng-lui.info/testing/install.php"</code>.
<p>You should arrive a page that looks something like this:</p>
<p></li>
</p>
<li>Enter in your MySQL login details.  Remember the MySQL database and user you created earlier?  This is where the information goes.  Your hostname will usually be <code>localhost</code>.  Mine looks like this:
<p></li>
</p>
<li>Nucleus should automatically detect your directories and paths for you.  Just check to see that they're the correct <b>absolute paths for your server</b> (if you get a "The path of the administration area does not exist" error later, see <a href="http://faq.nucleuscms.org/item/60">this article</a>).  You should have something like this:
<p></li>
</p>
<li>Next, enter the details for the administrator user and your default blog.
<p></p>
<p>Hit submit and go on to the final part.</li>
</p>
<li>So that Nucleus knows what your server paths and MySQL details are, copy/paste the information here to the <code>config.php</code> file in your <code>\nucleus 3.2\</code> folder on your computer.
<p></p>
<p></li>
</p>
<li>Switch back to your FTP program and upload the new <code>config.php</code> file to your server, overwriting the old file.  Just a few more things to tidy up:
<p></p>
<p>Delete <code>install.php</code> and <code>install.sql</code> from your server (circled in red).  Choose "Yes to all" (circled in blue).</p>
<p></li>
</ol>
<p>Congratulations!  You've just successfully installed Nucleus!</p>
<p>By default, Nucleus comes with one blog item already written.  You can edit this item to really complete setting up your new Nucleus site.</p>
<ol>
<li>Login to your Nucleus administration area located at <code>http://yoursite.com/nucleus/</code> (or <code>http://yoursite.com/subdirectory/nucleus/</code> if you installed in a subdirectory).</p>
<p></li>
</p>
<li>Click on "Edit/Delete Items" (circled in red).
<p></li>
</p>
<li>Here, you'll see a list of all the items in your blog.  At the moment, we only have that first default item.  Click on the "Edit" link to edit the item.
<p></li>
</p>
<li>Delete the text in the Body textarea as well as the Extended area.  Change the title to whatever you want and write a little blurb to introduce your website.
<p></li>
</p>
<li>Click on "Edit Item" to save your changes.  This will take you back to the page listing all the items you have in your blog.
<p></li>
</p>
<li>Click on the "Your site" link to visit your new Nucleus site, with welcome message and all.
<p></li>
</ol>
<p>Congratulations!  You have just edited your first Nucleus item!</p>
<p><a name="further_reading"></a><b>Further reading:</b><br />
Now that you've installed Nucleus, you probably want to customize it to your own needs.  Remember to check out the helpful articles in our "<a href="http://faq.nucleuscms.org/category/13">Getting started</a>" section of this FAQ website and see our "<a href="http://faq.nucleuscms.org/category/10">Troubleshooting</a>" section if something goes wrong!</p>
<p>To get you started, here are some links to the building blocks.</p>
<ul>
<li><a href="http://faq.nucleuscms.org/item/91/catid/13">What is the difference between a skin and a template?</a></li>
</p>
<li><a href="http://www.roelgroeneveld.com/nucleus/skins_templates_howto.html">How do I change the look of my site?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/48">How do I import a skin?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/35">How do I install a plugin?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/58">How do I change the links in the default skin?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/69">How do I add/rename/delete categories?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/198">How do I add extra pages to my Nucleus site?</a></li>
</p>
<li><a href="http://faq.nucleuscms.org/item/157">Is there a basic user manual/guide for Nucleus?</a></li>
</ul>
<p>If you have a question that has not been answered, come and ask us at our very friendly <a href="http://forum.nucleuscms.org/">Nucleus Support Forum</a>!
</p>
]]></description>
 <category>Installation & Configuration</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=80</comments>
 <pubDate>Sun, 24 Jun 2007 03:29:00 +0200</pubDate>
</item><item>
 <title><![CDATA[Nucleus keeps forgetting to put a slash ("/") in my site URLs]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=197</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"My blog item/RSS feed/other URL is located at <code>http://www.domain.com/subdirectory/page.php</code> by Nucleus keeps outputting <code>http://www.domain.com/subdirectorypage.php</code> instead!"</i></p>
<p><b>Solution:</b><br />
Check under your "Global Settings" to ensure your site URL inside box "URL of Site (should end with a slash)" <strong>does</strong> really end with a slash!</p>
<p>If the above doesn't work and it is a problem with the links in your RSS feed, check your <code>feeds/rss20</code> template.  There should be a line that looks like this:</p>
<pre class="code">&nbsp;
<span class="sc3"><span class="re1">&lt;link<span class="re2">&gt;</span></span></span><span class="sc3"><span class="re1">&lt;</span>%blogurl%<span class="re2">&gt;</span></span>index.php?itemid=<span class="sc3"><span class="re1">&lt;</span>%itemid%<span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;/link<span class="re2">&gt;</span></span></span></pre>
<p>Try changing that line of code to:</p>
<pre class="code">&nbsp;
<span class="sc3"><span class="re1">&lt;link<span class="re2">&gt;</span></span></span><span class="sc3"><span class="re1">&lt;</span>%blogurl%<span class="re2">&gt;</span></span>/index.php?itemid=<span class="sc3"><span class="re1">&lt;</span>%itemid%<span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;/link<span class="re2">&gt;</span></span></span></pre>
<p><b>Original forum thread (thanks, roel!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=15221">http://forum.nucleuscms.org/viewtopic.php?t=15221</a></p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=197</comments>
 <pubDate>Sun, 24 Jun 2007 03:09:05 +0200</pubDate>
</item>
  </channel>
</rss>