Hi all,

I have installed the Appbar and the facebook_statuses modules.
In view for alert list, we chose several options, and I am interested in Facebook_Status and Facebook_status recent.
When there is a new alert I open the alert and several bugs happens:
- After closing the alerts window it wont upadte the number of alerts. For example if there 2 alerts before opening the window, remains 2 alerts after closing. Even when I log out and log in the number of alerts remains the same
- With the alerts window opened We can edit or delete. They don't work. The page crashs it shows a text page with the alerts.

I have instaled the Drupal 6.15

I think these module is very useful.

Regards

CommentFileSizeAuthor
#2 alerts.jpeg4.67 KBMars2012
#2 edit_delete_answer.jpeg4.62 KBMars2012

Comments

icecreamyou’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

* The alert count is only updated when an actual alert message has been viewed. You should be using either the default view or the appbar_alerts view, which show the actual alert message and thus are set up to correctly detect when an alert has been viewed. Enable status alerts in the Appbar display settings to get alerts about statuses in these lists. The alert text is translatable, so if you want to change it you can do it via a translation interface.

* I don't know what you mean by "We can edit or delete" but there are a number of factors that could affect browser errors and you haven't given nearly enough information for me to guess what the problem is. What browser you're using and any other JavaScript-related modules you have installed (like Popups API or anything JQuery) would be a reasonable start.

Mars2012’s picture

StatusFileSize
new4.62 KB
new4.67 KB

Hi again,

- I have instaled the Firefox 3.5.7
- OS Ubuntu 9.10
- I don't have any Javascript related modules instaled.

I have instaled the module Facebook_style status. So I would like to have alerts to new facebook alerts.
So I'll go to site configuration -> appbar -> general tab, and in the widget : "View for alert list", I choose: facebook_status
In the display messages tab I gave selected:
- Facebook Style status update (to own profile)
- Facebook Style status update (recipient)
- Facebook Style status update (poster)

When a new status happens it shows a new alert in the appbar -> Alerts(1) - Ok
When I open the alert and close the alert, the message stils shows -> Alerts(1) - Not Ok
I append a Screen shot: alert.jpeg. The alert dosen't reset.

What I intend to say with "We can edit or delete" the messages shown in the alerts, is that if we try to edit/delete or even if we have the choice to answer, after the mentioned attempt this show a message like:
edit_delete.jpeg.

Any suggestions?

Regards

icecreamyou’s picture

I'm still not sure what you mean with regards to the edit/delete issue.

You cannot use the facebook_status view with Appbar. You must use either the "Default" listing or the "appbar_alerts" view.

Mars2012’s picture

Since I have installed the facebook_status module I can choose, in settings/appbar tab general the options relatively to the module facebook_status.
If I understand wright the only features implemented are Default and Appbar. So both my problems are solved until this nice facebook_status will be implemented in the appbar.

With this feature I can see who and what was written in my status,directly in the appbar alerts.

IcecreamYou, If you look to alerts.jpeg file at the right bottom it as the options: Edit and delete.
When I choose one of them it leads me to the edit_delete_respond.jpeg file.

Please let me know if you need further informations about this issues.

It would be nice if the facebook_status was implemented in the appbar module.

Regards.

icecreamyou’s picture

Status: Postponed (maintainer needs more info) » Fixed

I think I understand what you're saying now about the edit and delete links. That should only happen after you confirm an edit/deletion/cancel though, right? I know why that happens and how to fix it, but I haven't done it yet. That fix will be in some future release.

With regards to the facebook_status view, it's not actually so black and white. You can use that view, it just doesn't work the way you're expecting it to. Here's why:

Appbar keeps a table in your site's database called {appbar}. Each row in that table contains a message generated by a module (like "IceCreamYou posted a status on your profile"), a User ID for the recipient of the message, and an indicator of whether the message has been "read" yet.

Appbar provides the module-generated alert message to Views as a Field. When the Alert message Views field is rendered, Appbar updates the relevant row in the database to say that this alert has been read. Then the count of new alerts goes down. However, this doesn't happen when a status is viewed, because the alert message (which is different) has not been read. When you look at the facebook_status view, it only shows statuses and not Appbar alert messages, so the Appbar alert message is not marked as read.

So you can use the facebook_status view, it just isn't related to the Appbar alert messages in the way you expected. Does that make sense?

You can change the text of the Appbar alert message by translating it. This will allow you to use the text of the status instead of the default message. Right now there is no easier way to change the Appbar alert text, although eventually I will figure out a way to do it like the Activity module so you can specify your own text through the administrative interface.

Mars2012’s picture

Thanks for the help and first I would like to thanks your great contribution to Drual community with your module.

That should only happen after you confirm an edit/deletion/cancel though, right?

That's right, after I click in one of those actions, crash the page.

So you can use the facebook_status view, it just isn't related to the Appbar alert messages in the way you expected. Does that make sense?

Yes, it would be great, after we open the alerts the messages in status were tagged has viewed

You can change the text of the Appbar alert message by translating it

What do you mean translate? How can I do this?

Thanks.

icecreamyou’s picture

Translation is kind of complicated and difficult to add to an existing site, so you may be better off just creating your own implementation through a custom module (it's easy if you know any PHP -- I would do it by implementing hook_facebook_status_save()). If you want to try translation, the Content Translation module and the Locale module in core allow you to translate text, although you will have to run the translation template extractor before you will be able to translate FBSS. The documentation for everything I've mentioned is very good and worth reading if you want to pursue one of these options.

Mars2012’s picture

Thanks for the tips.
I can understand and I intend to use the content translation and Locale modules in my web, but for now I won't try the translation template extractor. I'm running without time to finish the webpage.
If there is a chance to improve to the 2.0 version, then I may try translation template extractor.

Oh, by the way and this is out of this issue, but I would like to ask you if you have planned to implement something similar as facebook as the add applications.
I think for the final user it can be more user friendly. This can be a big improvement and it can add additional value to the Appbar, don't you think?

I will keep an eye in your work/improvements in the Appbar. I think this is a great module and it can offers much more to Drupal users.

Best regards

icecreamyou’s picture

Obviously there's still a lot I'd like to add to Appbar, and as I've mentioned I'm eventually going to try to allow changing the Appbar alert text through the administrative interface, so hopefully by the time Appbar 1.x gets to RC, translating messages won't even be necessary.

Drupal doesn't have applications in the sense that Facebook does so it doesn't make any sense to have a pop-out for applications. If a module implemented an API to allow Facebook-style applications, then that module could also easily add an Application pop-out to the Appbar. However, there are also several "bookmark" modules that let you mark pages to put in a personal menu of sorts, and I will look into integrating those.

icecreamyou’s picture

For reference, the Favorites module is the main one I'm considering for this purpose.

TheLandman’s picture

I've been monitoring this conversation through my emails. That would be a fatastic idea, how about integrating the flag module. The flag module allows any type of custom "Likes, Favorites, Bookmarks" etc

Mars2012’s picture

Thanks IceCreamYou, for the bookmarks tips.
Possible it's a good path if this module have interfaces that others modules could use, so then they can use the interface and add a menu to the appbar menu.

Thanks again and I'll continue to explore the possibilities to the great appbar module.

Regards

icecreamyou’s picture

@TheLandman, the Flag module only works on things with IDs, like nodes and users, rather than every page. For that purpose, flags are usually more effective if they're on the content itself, especially because a page could be ambiguous as to what would actually get flagged (like a Views list of nodes). The task is pretty trivial, however, so feel free to implement this if you're interested and up to it.

@Mars2012, Appbar has a simple and complete API already, and it is already possible to add menus to Appbar through the administrative interface.

liliplanet’s picture

Fabulous module, looking forward to the next version, thank you !

Status: Fixed » Closed (fixed)

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