Appbar is a module for social networking extension, just like Mentions. It would be great that Mentions support Appbar, that means each time someone gets mentioned, he/she will get an alert on appbar. In general, a message like this will be sent:

$link = '... must generate link to content';
$title = 'title';
appbar_set_message(t('You are mentioned at !link', array('!link' => t($title, $link)), 'mentions', $auid); 

I'm working for such an integration. But I have a problem:
- If I put the code in _mentions_update(), I don't know the $link and $title.
- If I put the code in each .inc file at modules/, there is redundancy.

Appbar supports Views, Mentions does, too. But I can't find a way to get Appbar support multiple views.

An example of core modules integration on appbar is here.

Comments

icecreamyou’s picture

Status: Active » Fixed

Hi, I'm the Appbar maintainer.

I think this should be fixed with the latest release of Appbar if Mentions has Views integration. Appbar can now hold blocks (yay) so Views can be used to create a block display that shows a list of user mentions, and that block can then be put on the Appbar.

jcisio’s picture

Status: Fixed » Active

I mean sending an alert when someone gets mentioned.

icecreamyou’s picture

Ah. Well Activity integration is the right way to go in that case then, since Appbar will be transitioning to using Activity as the basis for its alert system in the future.

jcisio’s picture

Is it still correct, ICY? I mean the FBSS 3.x.

icecreamyou’s picture

What does this have to do with FBSS?

jcisio’s picture

My bad, I meant Appbar 3.x (or 2.x). As I see the fragmentation here: if A wants Appbar integration, it can integrate with Activity; if B wants Appbar integration, it can integrate with Views (also!); but then we'll never see them support Appbar at the same time!

icecreamyou’s picture

Er... there is no Appbar 3.x. But right now integration with Appbar 2.x means integration with Rules. In the future I still plan to transition to Activity.

dsnopek’s picture

This integration could be done outside of the mentions code if there was a hook added to this module. See #1851272: Add hook that's called when mentions are added

dsnopek’s picture

Er, sorry, my issue turned out to be a duplicate of this issue: #912016: Add hook for mention added/removed

deciphered’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Sounds like an interesting idea. Marking for D7.

deciphered’s picture

Status: Active » Fixed

Looks like there's nothing to do here... if you want to add a Mentions block to Appbar, and if you want to do it with Rules you can do that now as well.

Status: Fixed » Closed (fixed)

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