[Register]
Powered by Elgg

Plugins :: Blog :: messages 0.1.4

May 02, 2007

I update a new version of the messages plugin. It had minor (but cool Wink) 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 

Keywords: messages, plugin, upgrade

Posted by Diego Andrés Ramírez Aragón @ Plugins


Comments

  1. Hey Diego, this update is cool. I really like the idea of being able to see in the toolbar if I have any messages. Thanks for the hardwork!

    user iconHeath Moser on Thursday, 03 May 2007, 00:32 UTC # |

  2. 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. 

    user iconKevin Jardine on Thursday, 03 May 2007, 13:31 UTC # |

  3. 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.

    user iconDiego Andrés Ramírez Aragón on Thursday, 03 May 2007, 16:28 UTC # |

  4. Another thing that would be kinda nice is a running chat of messages. More like irc or instant messenger. A little AJAX could make that very interesting.

    user iconMike Holzman on Thursday, 03 May 2007, 20:18 UTC # |

  5. 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 

    user iconRenato on Thursday, 03 May 2007, 21:21 UTC # |

  6. 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 ;) 

    user iconDiego Andrés Ramírez Aragón on Thursday, 03 May 2007, 22:32 UTC # |

  7. 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. 

    user iconRenato on Thursday, 03 May 2007, 23:55 UTC # |

  8. excellent upgrade.  the notification in the toolbar is excellent!

    user iconTodd on Friday, 04 May 2007, 04:17 UTC # |

You must be logged in to post a comment.

Site supported by Curverider Ltd - powered by the awesome Elgg