I update a new version of the messages plugin. It had minor (but cool
) code changes.
It uses a new feature added in the 0.8 series that allows each plugin add their own translation.
The plug-in comes with the es_CO translation
Enjoy it
I update a new version of the messages plugin. It had minor (but cool
) code changes.
It uses a new feature added in the 0.8 series that allows each plugin add their own translation.
The plug-in comes with the es_CO translation
Enjoy it
Posted by Diego Andrés Ramírez Aragón @ Plugins
You must be logged in to post a comment.
Site supported by Curverider Ltd - powered by the awesome Elgg
Comments
Hi Diego,
Would it be possible to extend this plugin to send messages to more than just your friends? For example, we could add a "Send a message" link to all the sidebars (subject to the usual Elgg access controls, of course, so a user could decide who gets to send messages to them).
I'd be happy to do some coding for this if you think that would help.
Yeap its possible an not difficult. In fact I already implement it but not for the elgg sidebar.
It had a problem because there is not access configuration for messages, so you can write messages to any user with this method.
If you are interested drop me a line. It will wonderful work with you.
Hello diego,
First, thanks for the work, it's a great plugin!
I also think it should be possible to send messages to any user in the system, better still if there's an easy link to mail the user.
I've been getting some problems (actually, since the other version), but already got some solutions. The main problems come from the get_records returning nothing, both in message_detailedview and message_view. There are also some warnings (undefined variables), and a variable with wrong name ($action instead of $reply in messages_new). I found it easier to send the diff file instead of writing everything down:http://elgg.org/renato/files/-1/108/messages_patch.diff
Thanks a lot Renato!
You make me look for parts of the code that I think was good. I get your suggestions and make some extra code cleaning.
I will publish it shortly.
About the sidebar link Kevin would be work on it ;)
Well, sorry kevin, but...I already did it. Here is how:
In lib.php, set $CFG->templates->variables_substitute['contact'] = "messages_contact_user"; inside messages_pagesetup(). Now write the function:
[code=PHP]
function messages_contact_user(){
global $CFG;
$page_owner = page_owner();
if(isloggedin()) {
return '<a href="'.$CFG->wwwroot."mod/messages/compose.php?action=compose&to=$page_owner".'">'.__gettext("Contact").'</a>';
} else {
return '';
}
}
[/code]
and now there's a "contact" link right below the user icon.