Helping you Build Your Own Social Network!

Faster, better and easier!

@mentions not working in Global Forums

(26 posts) (5 voices)

  1. @sbrajesh

    I may have missed or forgotten something, but @mentions are not working in my GF install. My group forums have been merged with global forums. Posting an @mention from a group forum works, but from the same forum in GF, it does not. Nor does it work from any subforum in GF.

    Any ideas on this one?

    Posted 1 year ago #
  2. +1 on getting this working. For me this would be an essential tool for gf

    Posted 1 year ago #
  3. You both are right. The @mention is not working in the global forum. I will put some code to make it happen for you today/tomorrow.

    Posted 1 year ago #
  4. :-)

    Thank you very much!

    :-)

    Posted 1 year ago #
  5. Did you get a chance to look at this Brajesh?

    Posted 1 year ago #
  6. Hi Patrick, Saunt
    Please put this in your bp-custom.php or functions.php

    add_filter( 'gf_forum_topic_text_before_save', 'bp_activity_at_name_filter' );
    add_filter( 'gf_forum_post_text_before_save',  'bp_activity_at_name_filter' );

    I hope this should work. Please test and let me know.

    Posted 1 year ago #
  7. @sbrajesh

    Bingo! It works like a charm in functions.php.
    Thank you Brajesh!
    :-)

    Posted 1 year ago #
  8. I put it in bp-custom.php the links lit up. I'll report back when I see that notifications are going through to the receiving user. @patrick are seeing the notes get sent through, or just just the links appear?

    Posted 1 year ago #
  9. Quite right, @mentions are appearing in activity stream with active links, but emails are not sent and no notification in adminbar.

    Well, we're halfway there! :-)

    Posted 1 year ago #
  10. UPDATE

    There's a useful workaround here: http://buddydev.com/forums/topic/at-mention-notification#post-6799 written by... guess who?

    The code in the post above creates a new item in the main menu, "New Mentions", only if new @mentions have been posted. This works even if the mention has been posted from elsewhere than GF; in an update, for example. Oh yeah... emails are sent too :-)

    Great work @sbrajesh !

    Posted 1 year ago #
  11. Thanks for the heads up Patrick :)

    Posted 1 year ago #
  12. I implemented the fix you mentioned @Patrick and its good, but not great. It looks and feels more like a workaround temporary fix than a proper one. Brajesh, I know you are very busy, but could you take another look at this since the recommended fix is not a streamlined one?

    Posted 12 months ago #
  13. I have two questions. What does it mean to merge the group and global forums? I'd prefer that forums that just show up in one place.

    Secondly, should I include the snippet above in this thread, AND the snippet from http://buddydev.com/forums/topic/at-mention-notification#post-6799 in my bp-custom.php?

    Posted 12 months ago #
  14. @Saunt,
    As far as I remember, the problem with @mention count is, it will link correctly, if it has an associated activity itrem. I just tested that by disabling the activity posting for Group forum. It will not show up under the @mention of user's profile.

    If you want that, just enable the activity posting in global forum settings and it will work.

    @T.J.
    1. merging allow you to keep the forums in group and also have separate forums. To be honest, the integration is buggy at the moment for global forum with group forum.
    2. yes and yes. you can keep them in functions.php of your theme or bp-custom.php, both will work.

    Posted 12 months ago #
  15. I think I found the instructions:

    http://buddydev.com/plugins/global-forums/documentation/

    How is the integration buggy?

    Posted 12 months ago #
  16. Brajesh, it isn't the linking that is the problem (the linking works fine with the snippet you provided in the 6th post above), it is the fact that the notification doesn't get delivered (notifications in the BuddyBar highlighted and email sent). The workaround patrick linked to above creates an entirely new notification menu system that appears separately from the BuddyPress notifications (not the best fix from a UI point of view).

    The GF notifications should be a seamless integration with the existing BP notification system.

    Posted 12 months ago #
  17. Hi Saunt,
    I will update the code tomorrow again to send email notification. That will enable the mail notification but would not show up in @mention tab(if you do not enable global forum post to activity). Is that ok ?

    Posted 12 months ago #
  18. The email notification is the important one. Thanks

    Posted 11 months ago #
  19. Hi Saunt,
    Put this snippet in your functions.php or bp-custom.php
    http://pastebin.com/7EaRA5Ri

    Does it work ?

    Posted 11 months ago #
  20. That's an impressive bit of code! (and it looks like it was a lot of work!) I've put it in and I'll report back in a day or two with the results. Thank you for taking the time to do this!

    Posted 11 months ago #
  21. In adding this new snippet, should I remove either of the two mentioned above earlier in this thread?

    Posted 11 months ago #
  22. Hi T.J.
    you can use all the codes. If you want, you can skip the code from the other topic to show the @mentions

    @Saunt,
    Please do let me know, as i did not test it on a live server. I had taken some code from the how bp handles activity mentions and mixed with some of my own to make it work :)

    Posted 11 months ago #
  23. @sbrajesh

    Hi Brajesh! I just tested the new code in bp-custom on both single and multisite live installs.

    The "new mention" alert does not show in the "Notifications" menu item, nor does it appear in the user profile activity subnav... should it?

    However, it DOES appear in the main activity subnav AND emails are sent.

    Hurray! :-)

    PS - post to activity is, of course, enabled.

    Posted 11 months ago #
  24. For some reason the snippet worked the first time (email notification went through for @ mention in global forum post) but not after that.

    Any ideas why that would be?

    Posted 11 months ago #
  25. Hi Joey,
    is other notification email working. Let us say, is the notification email working for the activity comment ?

    @Patrick,
    I am sorry for the trouble, please allow me to post an answer by Monday. It should show up in the notification area of the activity posting is active.

    Posted 11 months ago #
  26. Yes absolutely. I re-tested several times. @mentions in the status updates go immediately to email.

    In fact, I added the other codes above so that mentions now show up on the dashboard and the "@username" link is now showing up too.

    If you want to take a look, I pasted my function.php code to pastebin:
    http://pastebin.com/dGJ27C7D

    Posted 11 months ago #

Reply

You must log in to post.