The title is pretty self explanatory. I have both the blocks listed in the title on the front page. When a user submits a status update via "Facebook-style Statuses block" I want the "Facebook-style Statuses: All Statuses block" to update with that new status without the user having to reload the page (in other words with ajax). I see that this works if you use the "Facebook-style Statuses" with view option. But this isn't quite what i'm looking for.

Does this functionality currently exist? If not, what would be the best approach to implementing it?

Thanks for your help.

Comments

icecreamyou’s picture

Status: Active » Fixed

At admin/settings/facebook_status/contexts, in the advanced settings for the relevant context you can set a DOM selector path for the regions of the page you want to update when a status is submitted.

bryceray1121’s picture

I'm having a little trouble figuring out which context is relevant. I see:

Nodes - facebook_status_stream
User profiles - activity_log_stream
Taxonomy terms - facebook_status_stream
General - the site itself - facebook_status_stream

My DOM path to Facebook-style Statuses: All Statuses block on my front page is: div.view-facebook-status-all

I've tried adding it to some of the above contexts but it doesn't seem to do anything. I also looked in the drop down and don't see the context for the basic Facebook-style Statuses block unless its under another name. Then, i'm not sure if I need to update it under nodes or general.

Thanks for the clarification.

icecreamyou’s picture

Typically it will be the User profiles context. Make sure that it is ordered above the General context.

I also looked in the drop down and don't see the context for the basic Facebook-style Statuses block unless its under another name.

I'm not sure what you mean but you don't need to change any dropdowns. Just go to admin/settings/facebook_status/contexts/user and put div.view-facebook-status-all into the "Refreshable DOM selectors" field. Then as long as the User profiles context is active, it will automatically refresh the div.view-facebook-status-all section of the page when a status is submitted.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

alexmc’s picture

Would it be possible to document this fully as an example? I think this functionality would make Statuses a lot more popular if it could be seen to work this way.

icecreamyou’s picture

alexmc: I'm not sure what you mean. I don't think any of the documentation explicitly says that the only way AJAX updating works is with a view that is directly tied to the status update form. However there is a "Tips and Tricks" section of the documentation, so maybe it would be good to explicitly point out that anything can be automatically updated there?