Needs review
Project:
Shoutbox
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
2 Sep 2011 at 16:25 UTC
Updated:
4 Sep 2015 at 10:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bcarroll28 commentedsub
Comment #2
Stalski commentedI'll respond here when I created the integration module.
Comment #3
Stalski commentedI added integration for rules. This includes an event "when shouting" . The data type that is given is shoutbox_message and also defined in rules. That said, we needed tokens, so I added the most basic ones too.
So currently, when a user shouts, modules like heartbeat can pick in and for instance log activity.
A nice to have is also that other modules can respond in the client as well. Javascript wise.
So I added a JavaScript hook in the patch of shoutbox module as well to make sure modules like heartbeat can do something "when a user shouts". In my case that is "polling for newer activity" resulting in immediate pushing of that shout into the stream/feed.
That patch runs agains 7.x-1.x
Regards,
Stalski
Comment #4
Stalski commentedThe result implementation is already committed into heartbeat, see #1250324: Alpha version of shout box released for D7, What can we do to make it work with heartbeat?
Comment #5
Stalski commentedSorry, latest patch did not include the added files. Here they come.
Comment #6
sw3b commentedSubscribe !
Comment #7
disterics commentedIntegrating the patch into a shoutbox sub-module
Comment #8
Stalski commentedI did not see the tokens and appearantly this was due to a typo :)
Here's the patch to fix it.
Comment #9
Stalski commentedHey all,
I debugged some more to see I could not get the poller to work within heartbeat. This was because Shoutbox lacks a aftersubmit javascript hook.
So here's what I did:
- In heartbeat there is not JavaScript code that implements a new introduced hook in Shoutbox.
- In Shoutbox there is now a default implementation of the hook, triggering the LoadShouts function.
- Ofcourse there is then a new JavaScript hook that is invoked when Shoutbox just finished his job of publishing / adding a shout.
See Patch.
Comment #10
KorbenDallas commentedComment #11
KorbenDallas commentedFor those getting this to work, use Shoutbox Alpha2 and only use patch 9.
Comment #12
KorbenDallas commentedThe javascript to update the heartbeat stream once someone shouts doesn't work either.
Comment #13
Stalski commentedLooks like this is not going in.
Comment #14
KorbenDallas commentedThe javascript update to the heartbeat stream is not an issue with the patching efforts here. Reference this thread to if you're having trouble with it: http://drupal.org/node/1250324#comment-5589450