<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Private notes plugin</title>
	<link>http://goudendouche.com/2006/12/16/private-notes-plugin/</link>
	<description>Het is niet persé goud wat er blinkt</description>
	<pubDate>Tue, 02 Dec 2008 00:26:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Simon</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8998</link>
		<author>Simon</author>
		<pubDate>Thu, 27 Nov 2008 08:07:28 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8998</guid>
		<description>Hello brainsolid, your comment ended up in the spam folder, sorry about that. I really can't remember which file it was I changed, it was almost two years ago. But the original code was something like:
&lt;code&gt;get_currentuserinfo();
if ($userlevel &gt; something){do stuff}&lt;/code&gt;
Which I changed to something like:
&lt;code&gt;if (currentusercan("read")){do stuff}&lt;/code&gt;
This all typed out of the top of my head, so the real syntax will be somewhat different, but this is the general idea.</description>
		<content:encoded><![CDATA[<p>Hello brainsolid, your comment ended up in the spam folder, sorry about that. I really can't remember which file it was I changed, it was almost two years ago. But the original code was something like:<br />
<code>get_currentuserinfo();<br />
if ($userlevel > something){do stuff}</code><br />
Which I changed to something like:<br />
<code>if (currentusercan("read")){do stuff}</code><br />
This all typed out of the top of my head, so the real syntax will be somewhat different, but this is the general idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainsolid</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8274</link>
		<author>brainsolid</author>
		<pubDate>Sun, 19 Oct 2008 15:28:10 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8274</guid>
		<description>And one more question.
You wrote "Finding the problem, a solution was easily found. Just change the code to test for capabilities instead of user level, and you're fine. So I did this, and it worked".
What code do you change, in what file?</description>
		<content:encoded><![CDATA[<p>And one more question.<br />
You wrote "Finding the problem, a solution was easily found. Just change the code to test for capabilities instead of user level, and you're fine. So I did this, and it worked".<br />
What code do you change, in what file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainsolid</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8259</link>
		<author>brainsolid</author>
		<pubDate>Sun, 19 Oct 2008 08:30:31 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8259</guid>
		<description>Thank you for your advice, Simon!</description>
		<content:encoded><![CDATA[<p>Thank you for your advice, Simon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8234</link>
		<author>Simon</author>
		<pubDate>Sat, 18 Oct 2008 20:37:52 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8234</guid>
		<description>Hello,

the send a note function is called by pn_compose_note_url("username"), where the string for username is optional for the username whom you'd like to send the note to. The contents of folder is called by pn_view_folder_url($folder_id), which is pretty self explanatory. Hope this works, I'm not using this plugin on any of the sites I'm managing right now, so this is pretty much all I can do for you. The functions are defined in the functions.php file, it's pretty well-commented, just view the source-code of this file to see what the functions are.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>the send a note function is called by pn_compose_note_url("username"), where the string for username is optional for the username whom you'd like to send the note to. The contents of folder is called by pn_view_folder_url($folder_id), which is pretty self explanatory. Hope this works, I'm not using this plugin on any of the sites I'm managing right now, so this is pretty much all I can do for you. The functions are defined in the functions.php file, it's pretty well-commented, just view the source-code of this file to see what the functions are.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brainsolid</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8193</link>
		<author>brainsolid</author>
		<pubDate>Fri, 17 Oct 2008 19:31:14 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-8193</guid>
		<description>Hello, Simon!
Great plugin, works cool. I add a page and use template - it's work. But there are only page with Msg count and folders. How can i integrate "Send a private note" and "Contents of folder" pages in my theme too?</description>
		<content:encoded><![CDATA[<p>Hello, Simon!<br />
Great plugin, works cool. I add a page and use template - it's work. But there are only page with Msg count and folders. How can i integrate "Send a private note" and "Contents of folder" pages in my theme too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-181</link>
		<author>Simon</author>
		<pubDate>Sun, 14 Oct 2007 17:58:33 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-181</guid>
		<description>Well, concerning the fatal error part when trying to create a folder: I got that too on a different site, it didn't use to happen on previous WordPress versions though. I just took the possibility to create folders out of the plugin, by opening the file pn_user.php, and removing the lines:
&lt;pre&gt;
&#60;?php
  if (pn_folder_count($userdata-&gt;ID)&lt;get_option('pn_max_user_folders'))
  {
?&gt;
  &#60;p&gt;&#160;&#60;/p&gt;
   &#60;form name="CreateFolder" action="&#60;?php echo pn_folder_list_url2(); ?&gt;" method="POST"&gt;
      &#60;label for="name"&gt;&#160;Create new folder:&#160;&#60;/label&gt;
      &#60;input type="hidden" name="create" value="1"&gt;
      &#60;input type="text" name="name" value="" size="30"&gt;
      &#60;input type="submit" name="Submit" value="Create &#187;"&gt;

  &#60;/form&gt; 
&#60;?php
  }
?&gt;&lt;/pre&gt;

These lines are found near the end of the document.

Now for the 404 error when trying to send a note, I really have no clue on how to fix that. I'll try to look into it later, but unfortunately I have little time to do this, and it's kind of difficult to fix these issues since I didn't (and probably couldn't) originally write the plugin.</description>
		<content:encoded><![CDATA[<p>Well, concerning the fatal error part when trying to create a folder: I got that too on a different site, it didn't use to happen on previous WordPress versions though. I just took the possibility to create folders out of the plugin, by opening the file pn_user.php, and removing the lines:</p>
<pre>
&lt;?php
  if (pn_folder_count($userdata->ID)<get_option ('pn_max_user_folders'))
  {
?>
  &lt;p>&nbsp;&lt;/p>
   &lt;form name="CreateFolder" action="&lt;?php echo pn_folder_list_url2(); ?>" method="POST">
      &lt;label for="name">&nbsp;Create new folder:&nbsp;&lt;/label>
      &lt;input type="hidden" name="create" value="1">
      &lt;input type="text" name="name" value="" size="30">
      &lt;input type="submit" name="Submit" value="Create &raquo;">

  &lt;/form>
&lt;?php
  }
?></get_option></pre>
<p>These lines are found near the end of the document.</p>
<p>Now for the 404 error when trying to send a note, I really have no clue on how to fix that. I'll try to look into it later, but unfortunately I have little time to do this, and it's kind of difficult to fix these issues since I didn't (and probably couldn't) originally write the plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rita</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-180</link>
		<author>Rita</author>
		<pubDate>Sun, 14 Oct 2007 11:01:14 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-180</guid>
		<description>Oh! Sorry for disturbing the layout!</description>
		<content:encoded><![CDATA[<p>Oh! Sorry for disturbing the layout!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rita</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-179</link>
		<author>Rita</author>
		<pubDate>Sun, 14 Oct 2007 11:00:30 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-179</guid>
		<description>Simon, thank qou for your answer. I deactivated and reactivated the plugin, got it in the admin panel now and can open the new created page. But when I choose "send a note" I get a 404 page not found message.

Also I don't understand, for what reason I should create folders. When I try to create one, I get the following message:
&lt;pre&gt;
Fatal error: Cannot redeclare pn_script() (previously declared in /homepages/42/d212713488/htdocs/cijou/wp-content/plugins/private_notes/pn_functions.php:5) in /homepages/42/d212713488/htdocs/cijou/wp-content/plugins/private_notes/pn_functions.php on line 3

&lt;/pre&gt;
I'm using wordpress 2.2.3.

I would really apprexiate if you could help me. If you like, I could do a german translation for you.

Rita</description>
		<content:encoded><![CDATA[<p>Simon, thank qou for your answer. I deactivated and reactivated the plugin, got it in the admin panel now and can open the new created page. But when I choose "send a note" I get a 404 page not found message.</p>
<p>Also I don't understand, for what reason I should create folders. When I try to create one, I get the following message:</p>
<pre>
Fatal error: Cannot redeclare pn_script() (previously declared in /homepages/42/d212713488/htdocs/cijou/wp-content/plugins/private_notes/pn_functions.php:5) in /homepages/42/d212713488/htdocs/cijou/wp-content/plugins/private_notes/pn_functions.php on line 3
</pre>
<p>I'm using wordpress 2.2.3.</p>
<p>I would really apprexiate if you could help me. If you like, I could do a german translation for you.</p>
<p>Rita</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-176</link>
		<author>Simon</author>
		<pubDate>Sat, 13 Oct 2007 18:07:22 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-176</guid>
		<description>Rita,

It seems like the tables for the plugin are not created. Normally these are created if you go to the plugin admin page after activating it (under manage-&gt;private notes). If this page isn't available, you could try de- and reactivating the plugin.

It is also possible to [url=http://www.vituperation.com/?page_id=531#comment-15392]create the tables manually[/url], but I have no experience with that sort of thing.</description>
		<content:encoded><![CDATA[<p>Rita,</p>
<p>It seems like the tables for the plugin are not created. Normally these are created if you go to the plugin admin page after activating it (under manage->private notes). If this page isn't available, you could try de- and reactivating the plugin.</p>
<p>It is also possible to <a href='http://www.vituperation.com/?page_id=531#comment-15392'>create the tables manually</a>, but I have no experience with that sort of thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rita</title>
		<link>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-175</link>
		<author>Rita</author>
		<pubDate>Sat, 13 Oct 2007 17:38:30 +0000</pubDate>
		<guid>http://goudendouche.com/2006/12/16/private-notes-plugin/#comment-175</guid>
		<description>Hi,  great plugin and I am happy that someone tries to get it work.

I activated the plugin, wrote the page and get the following error messagen wen visiting the page. There is also nothing shown in the administration after activating the plugin. 

Do you know any solution for this problems?

Many greetings,
Rita


&lt;pre&gt;
PN

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
SELECT id FROM pn_folders WHERE owner_user_id = 1 AND name = 'Inbox'

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
INSERT INTO pn_folders (owner_user_id,name) VALUES (1,'Inbox')

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
SELECT id FROM pn_folders WHERE owner_user_id = 1 AND name = 'Inbox'
Uh oh.

 

Something's broken in the notes plugin. Please let the site administrator know. Unfortunately, you can't do this by sending him/her a note right now.
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi,  great plugin and I am happy that someone tries to get it work.</p>
<p>I activated the plugin, wrote the page and get the following error messagen wen visiting the page. There is also nothing shown in the administration after activating the plugin. </p>
<p>Do you know any solution for this problems?</p>
<p>Many greetings,<br />
Rita</p>
<pre>
PN

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
SELECT id FROM pn_folders WHERE owner_user_id = 1 AND name = 'Inbox'

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
INSERT INTO pn_folders (owner_user_id,name) VALUES (1,'Inbox')

WordPress Datenbank-Fehler: [Table 'db212906309.pn_folders' doesn't exist]
SELECT id FROM pn_folders WHERE owner_user_id = 1 AND name = 'Inbox'
Uh oh.

Something's broken in the notes plugin. Please let the site administrator know. Unfortunately, you can't do this by sending him/her a note right now.
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
