<?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.40</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[Where is the "Global Settings" link in the Nucleus Administration Area?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=228</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I have to install a plugin or I was reading an FAQ or helpfile that referred me to a setting within the Global Settings menu but I can't find it anywhere in the Nucleus Administration Area!"</i></p>
<p><b>Original Forum Thread:</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=19788">http://forum.nucleuscms.org/viewtopic.php?t=19788</a></p>
<p><b>Solution (thanks, ftruscot!):</b><br />
This menu item was renamed in Nucleus version 3.33 to "Configuration" and is located within the links on the left navigation bar of the Administration Area, under "Action Log".
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=228</comments>
 <pubDate>Sat, 24 Apr 2010 09:58:31 +0200</pubDate>
</item><item>
 <title><![CDATA[Why did the link to comments on my blog item disappear once a comment is added?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=230</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"When a comment is posted, the comment link doesn't show anymore and the comments do not show below the item it was added to.  What have I missed? Is there something I need to add? I have enabled comments from everyone in the admin section."</i></p>
<p><b>Original Forum Thread:</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=19809">http://forum.nucleuscms.org/viewtopic.php?t=19809</a></p>
<p><b>Solution (thanks, ftruscot!):</b><br />
In your <a href="http://faq.nucleuscms.org/item/109">individual settings for the blog</a>, make sure the field <b>Max Amount of Comments</b> is set to <code>0</code>.
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=230</comments>
 <pubDate>Sat, 24 Apr 2010 09:40:56 +0200</pubDate>
</item><item>
 <title><![CDATA[Does Nucleus allow HTML in comments?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=227</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I'm concerned about security and want to know if Nucleus allows HTML in comments."</i></p>
<p><b>Solution:</b><br />
Nucleus does not allow HTML in its comment forms by default as this poses a large security risk.  It is recommended to <a href="http://faq.nucleuscms.org/item/203">use a plugin if you wish to allow formatting in comments</a>.
</p>
]]></description>
 <category>About Nucleus</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=227</comments>
 <pubDate>Sat, 24 Apr 2010 09:33:23 +0200</pubDate>
</item><item>
 <title><![CDATA[How can I show more than 10 items in the media list?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=225</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I've noticed that only 10 items are displayed when I click the "Add Media" button, but I have uploaded much more than 10 files. Is there some way of viewing all of the files in my media folder?"</i></p>
<p><b>Solution:</b><br />
This requires a small core hack. Open <code>/nucleus/media.php</code> and find this bit of code:</p>
<pre class="code"><span class="co1">// defines how much media items will be shown per page. You can override this</span>
<span class="co1">// in config.php if you like. (changing it in config.php instead of here will</span>
<span class="co1">// allow your settings to be kept even after a Nucleus upgrade)</span>
<span class="re0">$CONF</span><span class="br0">&#91;</span><span class="st0">'MediaPerPage'</span><span class="br0">&#93;</span> = <span class="nu0">10</span>;</pre>
<br />
Change "10" to however many you would like to display.</p>
<p>A simpler solution as per the comments in <code>media.php</code> is to simply add this line to your <code>config.php</code> file:</p>
<pre class="code"><span class="re0">$CONF</span><span class="br0">&#91;</span><span class="st0">'MediaPerPage'</span><span class="br0">&#93;</span> = X;</pre>
<br />
and change <code>X</code> to the number of items you want to display at a time.</p>
<p><b>Original forum thread:</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18728">http://forum.nucleuscms.org/viewtopic.php?t=18728</a>
</p>
]]></description>
 <category>Plugins & Hacks</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=225</comments>
 <pubDate>Thu, 14 May 2009 16:01:59 +0200</pubDate>
</item><item>
 <title><![CDATA[I'm getting an error in creating a new weblog but no error message appears!]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=222</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I'm trying to <a href="http://docs.nucleuscms.org/blog/9#newblog">create a new weblog</a> but after creating my copy of <code>index.php</code> and uploading it to my server, when I try to access it from the new blog url, it is just shows an empty page without any error message."</i></p>
<p><b>Solution:</b><br />
Make sure your copy of <code>index.php</code> has its file permissions set correctly on your server to <code>644</code>.</p>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18242">http://forum.nucleuscms.org/viewtopic.php?t=18242</a>
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=222</comments>
 <pubDate>Thu, 14 May 2009 15:39:53 +0200</pubDate>
</item><item>
 <title><![CDATA[Plugin NP_PluginName was not loaded (Class not found in file, possible parse error)]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=220</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I just tried to <a href="http://faq.nucleuscms.org/item/35">install a plugin</a> but Nucleus keeps giving me this error:</p>
<pre>Plugin NP_PluginName was not loaded (Class not found in file, possible parse error)</pre>
<br />
How do I fix this?"</i></p>
<p><b>Solution:</b><br />
Please check the following:</p>
<ul>
<li>The file name of the plugin must have the same case as the actual plugin code.  For example, if the plugin code says:</p>
<pre class="code"><span class="kw2">class</span> NP_PluginName extends NucleusPlugin <span class="br0">&#123;</span></pre>
<br />
you need to make sure your plugin file is called <code>NP_PluginName.php</code>.</li>
</p>
<li>The permissions of your plugin file are set to <code>644</code> so your web server can read the file correctly.</li>
</ul>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18237">http://forum.nucleuscms.org/viewtopic.php?t=18237</a>
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=220</comments>
 <pubDate>Thu, 14 May 2009 15:34:01 +0200</pubDate>
</item><item>
 <title><![CDATA[Why can't I see the plugins I've uploaded in the "Install New Plugins..." list?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=218</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I've downloaded a few plugins from the <a href="http://wiki.nucleuscms.org/plugin">Nucleus CMS Plugins Wiki</a>. I've extracted them and then uploaded them to my <code>/nucleus/plugins</code> directory on my server, however, none of the plugins are showing up in the "Install New Plugins" drop-down menu list in the Nucleus admin area.  Here's a screenshot of my plugins directory:</p>
<p><img src="http://img205.imageshack.us/img205/3103/plugins.png" /></p>
<p>How do I fix this?"</i></p>
<p><b>Solution:</b><br />
Double check and make sure you have done the following:</p>
<ul></p>
<li>All plugin files should be of the form (case matters): NP_PluginName.php and the corresponding folder (if it exists) should have a name of (again case matters): pluginname.</li>
</p>
<li>Make sure the file permissions for the <code>php</code> files are set to <code>644</code>.</li>
</p>
<li>Make sure the folder permissions are set to <code>755</code>.</li>

</ul>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18602">http://forum.nucleuscms.org/viewtopic.php?t=18602</a>
</p>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=218</comments>
 <pubDate>Mon, 16 Mar 2009 10:35:40 +0100</pubDate>
</item><item>
 <title><![CDATA[Can I use the active category to generate a unique CSS class?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=216</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I want to improve my site navigation by using CSS to style the link pointing to the current category differently (e.g. by having the link to the active category highlighted in a different color).  Is there an easy way to use Nucleus to generate a unique CSS class based on the currently active category?"</i></p>
<p><b>Solution:</b><br />
Use the new skin variable <code>&lt;%currentcat%&gt;</code> to generate your CSS class.  This variable will return either a "yes" value if the current category is active or a "no" value if the category is not the currently active category.</p>
<p>In the "Category List Item" section of your <a href="http://faq.nucleuscms.org/item/91">template</a>, put something like this in the <code>html</code> tag you are using to generate your category list (e.g. a <code>li</code> tag, etc):</p>
<pre class="code">class=&quot;currcat&lt;%currentcat%&gt;&quot;</pre>
<p>In your <code>.css</code> file, make sure you define the CSS classes <code>.currcatyes</code> (for the current active category) and <code>.currcatno</code> (for all other categories) as desired.</p>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
http://forum.nucleuscms.org/viewtopic.php?t=18549
</p>
]]></description>
 <category>Skins</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=216</comments>
 <pubDate>Mon, 16 Mar 2009 10:27:16 +0100</pubDate>
</item><item>
 <title><![CDATA[Can I customise the "Introduction" text in the admin area login page?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=214</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>When I go to the <a href="http://faq.nucleuscms.org/item/168">admin area login page</a> I see a text box in the top left hand corner of the screen saying:</p>
<blockquote><p>Introduction<br />
This is the logon screen for Nucleus CMS, the content management system that's being used to maintain this website.<br />
If you have an account, you can log on and start posting new items.</blockquote>
<br />
Can I customise this text?</i></p>
<p><b>Solution:</b><br />
Yes, you can!</p>
<ol></p>
<li>Find the language file for your language (e.g. <code>/nucleus/language/english.php</code>.  Make a backup of this file before you make any changes!</li>
</p>
<li>Look for the constants <code>_QMENU_INTRO</code> and <code>_QMENU_INTRO_TEXT</code>.</li>
</p>
<li>Change their values to whatever you want.</li>
</p>
<li>Remember to keep a backup of your modified language file, as it will be overwritten then next time you upgrade Nucleus.</li>

</ol>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18578">http://forum.nucleuscms.org/viewtopic.php?t=18578</a>
</p>
]]></description>
 <category>Plugins & Hacks</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=214</comments>
 <pubDate>Mon, 16 Mar 2009 10:17:25 +0100</pubDate>
</item><item>
 <title><![CDATA[How do I get around this "open_basedir" error?]]></title>
 <link>http://faq.nucleuscms.org/index.php?itemid=212</link>
<description><![CDATA[<p><b>Scenario:</b><br />
<i>"I'm trying to import some skins but Nucleus keeps giving me this weird error:</p>
<pre>PHP Warning: tmpfile() [function.tmpfile]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/xxx) in xxx/nucleus/libs/skinie.php on line 143, referer: http://xxx/Nucleus/nucleus/index.php?action=skinieoverview</pre>
<p>How do I fix this?!"</i></p>
<p><b>Original forum thread (thanks, ftruscot!):</b><br />
<a href="http://forum.nucleuscms.org/viewtopic.php?t=18402">http://forum.nucleuscms.org/viewtopic.php?t=18402</a></p>
<p><b>Solution:</b><br />
This may be due to your host have PHP safe_mode turned on.  You can fix this by doing the following core hack:</p>
<ol></p>
<li>Using your host's file manager or your FTP browser, create a new folder somewhere in your public directory and call it <code>/tmp/</code>.</li>
</p>
<li>Open up <code>/nucleus/libs/skinie.php</code> and go line line 145 and find this code:<br />
<pre class="code">		<span class="re0">$temp</span> = <a target="_blank"  href="http://www.php.net/tmpfile"><span class="kw3">tmpfile</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;
		<a target="_blank"  href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$temp</span>, <span class="re0">$tempbuffer</span><span class="br0">&#41;</span>;
		<a target="_blank"  href="http://www.php.net/rewind"><span class="kw3">rewind</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span>;
&nbsp;
		<span class="kw1">while</span> <span class="br0">&#40;</span> <span class="br0">&#40;</span><span class="re0">$buffer</span> = <a target="_blank"  href="http://www.php.net/fread"><span class="kw3">fread</span></a><span class="br0">&#40;</span><span class="re0">$temp</span>, <span class="nu0">4096</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> &amp;&amp; <span class="br0">&#40;</span>!<span class="re0">$metaOnly</span> || <span class="br0">&#40;</span><span class="re0">$metaOnly</span> &amp;&amp; !<span class="re0">$this</span>-&gt;<span class="me0">metaDataRead</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
			<span class="re0">$err</span> = <a target="_blank"  href="http://www.php.net/xml_parse"><span class="kw3">xml_parse</span></a><span class="br0">&#40;</span> <span class="re0">$this</span>-&gt;<span class="me0">parser</span>, <span class="re0">$buffer</span>, <a target="_blank"  href="http://www.php.net/feof"><span class="kw3">feof</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span> <span class="br0">&#41;</span>;
			<span class="kw1">if</span> <span class="br0">&#40;</span>!<span class="re0">$err</span> &amp;&amp; <span class="re0">$this</span>-&gt;<span class="me0">debug</span><span class="br0">&#41;</span>
				<a target="_blank"  href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">'ERROR: '</span>, <a target="_blank"  href="http://www.php.net/xml_error_string"><span class="kw3">xml_error_string</span></a><span class="br0">&#40;</span><a target="_blank"  href="http://www.php.net/xml_get_error_code"><span class="kw3">xml_get_error_code</span></a><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;<span class="me0">parser</span><span class="br0">&#41;</span><span class="br0">&#41;</span>, <span class="st0">''</span>;
		<span class="br0">&#125;</span>
&nbsp;
		<span class="co1">// all done</span>
		<span class="re0">$this</span>-&gt;<span class="me0">inXml</span> = <span class="nu0">0</span>;
		<a target="_blank"  href="http://www.php.net/fclose"><span class="kw3">fclose</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span>;</pre>
</li>
</p>
<li>Replace with this code:<br />
<pre class="code">      <span class="re0">$tmpfile</span> = <a target="_blank"  href="http://www.php.net/tempnam"><span class="kw3">tempnam</span></a><span class="br0">&#40;</span> <span class="st0">'/path/to/writable/folder/'</span>, <span class="st0">'tmpfile'</span><span class="br0">&#41;</span> or <a target="_blank"  href="http://www.php.net/die"><span class="kw3">die</span></a><span class="br0">&#40;</span><span class="st0">'could not create file'</span><span class="br0">&#41;</span>;
      <span class="re0">$temp</span> = <a target="_blank"  href="http://www.php.net/fopen"><span class="kw3">fopen</span></a><span class="br0">&#40;</span><span class="re0">$tmpfile</span>,<span class="st0">'w+'</span><span class="br0">&#41;</span>;
      <a target="_blank"  href="http://www.php.net/fwrite"><span class="kw3">fwrite</span></a><span class="br0">&#40;</span><span class="re0">$temp</span>, <span class="re0">$tempbuffer</span><span class="br0">&#41;</span>;
      <a target="_blank"  href="http://www.php.net/rewind"><span class="kw3">rewind</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span>;
&nbsp;
      <span class="kw1">while</span> <span class="br0">&#40;</span> <span class="br0">&#40;</span><span class="re0">$buffer</span> = <a target="_blank"  href="http://www.php.net/fread"><span class="kw3">fread</span></a><span class="br0">&#40;</span><span class="re0">$temp</span>, <span class="nu0">4096</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> &amp;&amp; <span class="br0">&#40;</span>!<span class="re0">$metaOnly</span> || <span class="br0">&#40;</span><span class="re0">$metaOnly</span> &amp;&amp; !<span class="re0">$this</span>-&gt;<span class="me0">metaDataRead</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
         <span class="re0">$err</span> = <a target="_blank"  href="http://www.php.net/xml_parse"><span class="kw3">xml_parse</span></a><span class="br0">&#40;</span> <span class="re0">$this</span>-&gt;<span class="me0">parser</span>, <span class="re0">$buffer</span>, <a target="_blank"  href="http://www.php.net/feof"><span class="kw3">feof</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span> <span class="br0">&#41;</span>;
         <span class="kw1">if</span> <span class="br0">&#40;</span>!<span class="re0">$err</span> &amp;&amp; <span class="re0">$this</span>-&gt;<span class="me0">debug</span><span class="br0">&#41;</span>
            <a target="_blank"  href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">'ERROR: '</span>, <a target="_blank"  href="http://www.php.net/xml_error_string"><span class="kw3">xml_error_string</span></a><span class="br0">&#40;</span><a target="_blank"  href="http://www.php.net/xml_get_error_code"><span class="kw3">xml_get_error_code</span></a><span class="br0">&#40;</span><span class="re0">$this</span>-&gt;<span class="me0">parser</span><span class="br0">&#41;</span><span class="br0">&#41;</span>, <span class="st0">''</span>;
      <span class="br0">&#125;</span>
&nbsp;
      <span class="co1">// all done</span>
      <span class="re0">$this</span>-&gt;<span class="me0">inXml</span> = <span class="nu0">0</span>;
      <a target="_blank"  href="http://www.php.net/fclose"><span class="kw3">fclose</span></a><span class="br0">&#40;</span><span class="re0">$temp</span><span class="br0">&#41;</span>;
      <a target="_blank"  href="http://www.php.net/unlink"><span class="kw3">unlink</span></a><span class="br0">&#40;</span><span class="re0">$tmpfile</span><span class="br0">&#41;</span>;</pre>
<p>You will need to make sure that you replace <code>/path/to/writable/folder/</code> with the path to the folder <code>/tmp/</code> you created above.  Save your changes and you should be done!</li>

</ol>
]]></description>
 <category>Troubleshooting</category>
<comments>http://faq.nucleuscms.org/index.php?itemid=212</comments>
 <pubDate>Sat, 14 Feb 2009 15:30:12 +0100</pubDate>
</item>
  </channel>
</rss>