Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » AJAX chat (instant messaging) module/widget

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 5282 Views
  • rino
    Avatar
    Community Member
    12 Posts

    Re: AJAX chat (instant messaging) module/widget Link to this post

    hello baba-papa

    unfortunately, i haven't been able to test my module thoroughly on the latest version 2.3.x...

    for the problem with the missing function "currentlyOnline" i have a solution, just add this to your Page class:

       /**
        * Get a list of currently online users (last 15 minutes)
        * @return Member Array
        */
       public function currentlyOnline() {
          $currentlyonline = DataObject::get("Member", "LastVisited > (NOW() - INTERVAL 15 MINUTE)", "FirstName, Surname",
             "INNER JOIN Group_Members ON Group_Members.GroupID IN (1,2,3) AND Group_Members.MemberID = Member.ID");
          return $currentlyonline;
       }

    }

    this code i have copied from the forum module, if i'm not wrong... but you're right, i need to integrate that into the chat module instead asap.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: AJAX chat (instant messaging) module/widget Link to this post

    I added that method into the Page class. Isn´t that method supposed to be in the Controller? Why didn´t you call the method at it´s original lacation?
    Meanwhile the chat module still doesnt work. I get an XML error when I try to call the chat page. Maybe me theme "holeinone" doesn´t work with the module.

  • baba-papa
    Avatar
    Community Member
    279 Posts

    Re: AJAX chat (instant messaging) module/widget Link to this post

    The template error was due to an error in the nested conditionals in the layout/ChatPage.ss tempate. I changed it and appended it to this post.

    Attached Files
  • rino
    Avatar
    Community Member
    12 Posts

    Re: AJAX chat (instant messaging) module/widget Link to this post

    thanx for the fix!

    Is the chat module now working for you?

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