Jump to:

1033 Posts in 809 Topics by 313 members

Forum Module

SilverStripe Forums » Forum Module » send private message to forummembers ?

Discuss the Forum Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 4028 Views
  • lxer
    Avatar
    Community Member
    16 Posts

    Re: send private message to forummembers ? Link to this post

    nice

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: send private message to forummembers ? Link to this post

    Is there any hack how i can use it in forum like profile on top and so on.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: send private message to forummembers ? Link to this post

    You would have to programm that by yourself. Privatemessaging is a module on it´s own.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: send private message to forummembers ? Link to this post

    I discovered a bug. Sometimes Nicknames with "$" drive the Template-Engine mad. I did a workaround with htmlentities(). I appended the altered module-code.

    Attached Files
  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: send private message to forummembers ? Link to this post

    Cross post:

    http://silverstripe.org/customising-the-cms/show/263086?showPost=263103

    Can we follow up on the dollar sign bug at the above thread please.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: send private message to forummembers ? Link to this post

    I added some more functions to the modul. There is a message counter, that can be used to notify users of new messages. This has to be implemented in the main controller (Page.php). I did it like this:

    //Return number of new messages
    function newMessageCounter() {
    $messages = DataObject::get("PrivateMessage", "ToID = " . Member::currentUserID());
    $newMessageCounter = 0;
    foreach ($messages as $message) {
    if (!$message->read) {
    $newMessageCounter++;
    }
    ;
    }
    return $newMessageCounter;
    }


    My navigation include (navigation.ss) reflects this:

    <% if newMessageCounter != 0 %>
    <img src="privatemessaging/images/icons/envelope_closed.jpg" alt="alte Post">
    <% end_if %>

    The modul has a navigation, that looks like a widget or subnavi container.

    Attached Files
  • tzander
    Avatar
    Community Member
    1 Post

    Re: send private message to forummembers ? Link to this post

    baba-papa wrote:
    I did some changes to the privatemessaging module. Now messages are marked as read/new. Sam asked me to implement i18n but I didn´t succeed yet. After putting some _t() in the template I ran the textcollector. I had a message "Running task 'i18n Textcollector Task'..." but nothing happend. Any hints?
    When I´m done with i18n I will create a patch for the original module.

    I'm currently having the same problem. How did you fix this?

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: send private message to forummembers ? Link to this post

    I haven´t fix it jet. I did all text collection by myself.

    4028 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.