Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Realtime twitter updates
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tpbradley  
View profile  
 More options Oct 29 2012, 10:40 am
From: tpbradley <t...@71squared.com>
Date: Mon, 29 Oct 2012 07:40:07 -0700 (PDT)
Local: Mon, Oct 29 2012 10:40 am
Subject: Re: [Zotonic-Usr] Realtime twitter updates

Hi Arjan,

Thanks got getting back to me. I think the *observe_rsc_update_done/2 *function
is what I need to implement. I want to show a realtime twitter feed on my
site but I'm unsure of how to achieve this. Am I right in thinking I should
a new module that implements the *observe_rsc_update_done/2 *function and
enable it in the module admin. Each user on the site would then be
observing resource updates. To push an update out to the browser, do I call
something like *z_session_page:add_script/2* in the *
observe_rsc_update_done/2 *function?

Thanks

On Monday, 29 October 2012 14:03:38 UTC, Arjan Scherpenisse wrote:

> What exactly do you want to update?

> You could create a function *observe_rsc_update_done/2* in your module,
> which is fired every time a rsc is updated (so also when tweets arrive).

> You could then look at the *action* attribute of the #rsc_update_done
> record to determine it's an insert, and look at the *post_is_a* attribute
> to see if it's a *tweet*. If so, you can decide to do something...

> Arjan

> On Mon, Oct 29, 2012 at 2:57 PM, tpbradley <t...@71squared.com<javascript:>
> > wrote:

>> Hi all,

>> I have a zotonic site up and running and have successfully configured the
>> twitter module to receive tweets as they are posted. What I would like to
>> do now is update the website in realtime as the tweets are created, much
>> like Disqus comments. Can someone give me some guidance on how to achieve
>> this?

>> Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.