I have uploaded the version 0.1 of the private messages plug-in. It allows to do the following things:
- List messages
- List sent messages
- Send messages to friends
- Send messages to communities
- Delete messages
- Mark messages as (read | unread)
- Email notification if configured by the user.
I expect comments and sugestions
Keywords: messages, plug-in, private messages

Comments
You are right! It was a little problem with the CMS ;)
It works now.
How I said before the provided link its working right now.
By the way I put a copy in the elgg repository too:
http://elgg.org/plugins/files/1/36/messages.tar.gz
;-)
Nop, You only need to upload to mod and add the lines to the .htaccess.
So the next time that you loggin it run some scripts for the db an that's all!
Hello,
It happens to you because the privame messages its designed (in this version altought) for send messages only for your friends.
These mean that your friends list is something like your address book, and the compose function only allows to you send messages to your friends.
However if you want to write to an specific user (that not in your list of friends | communities) you could pass the id by the url:
http://elgg.net/mod/messages/compose.php?to=6
In the roadmap for the plug-in I planed to add a link in the sidebar that says something like: "Send a message".
I thought in add a widget for the dashboard that let you know how many | unread messages you have in your INBOX.
By the way it could be avaible in the next version
I've just noticed that this plugin uses short tags instead of the full <?php at the beginning of each code block.
For some reason - probably my own negligence - the coding standards page wasn't carried over when we upgraded Elgg.org. However, I've reinstated it; all plugin authors should take note. We're eventually going to introduce an 'Elgg approved' stamp for plugins we've checked out, and adherence to these will be essential.
I try to figure out what was the problem with your instalation and I found the problem!
It was a little patch to the display_input_field function in displaylib.php that I forget to include in the README file.
I check it again against the trunk version and I found that in the new version of the display_input_field the code that I modify even exists.
So, I extend the display_input_field functionality for support the option that I need using the callback mechanism that this function provides.
I already update the code and upload it ;)
http://www.somosmas.org/elgg/messages-0.1.1.tar.gz
I get these errors:
[code]
Notice: Undefined variable: post in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 26
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 26
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 24
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 25
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 26
Notice: Undefined variable: post in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 26
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 26
Notice: Trying to get property of non-object in /home/ewout/stoa/elgg/mod/messages/messages_message_view.php on line 29
Fatal error: mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' at line 1] in EXECUTE("SELECT * FROM elggicons WHERE ident = ? ") in /home/ewout/stoa/elgg/lib/adodb/adodb-errorhandler.inc.php on line 77
[/code]