• Resolved emiliengerbois

    (@emiliengerbois)


    Hi again,
    here come another question:

    is it possible to sync badges across a multisite network? I mean can I display on a subsite a badge created on the main site (or vice versa) and see that badge unlocked everywhere once it’s unlocked from one place (by admin or else)?
    If not:

    is it even possible to earn badges network wide? I mean if a badge created on the main site is earned for 10 logins for example, can those logins be done from subsites or are they counted only if done on the main one?

    In other words: is there a way to get a central logging on a network install?

    I hope you can help me, thank you so much in advance,
    Emilien

    https://www.ads-software.com/plugins/badgeos/

Viewing 1 replies (of 1 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi emiliengerbois,

    While I can definitely understand and see the appeal of an interlocked site such as yours, it’s also going to present many challenges. I saw your GitHub issue so I know the grand scheme of things for you ??

    The main challenge for you is the fact that BadgeOS achievements are not crafted and set up in a way that makes them network wide. We use Custom Post Types for them, and by nature, all rows in the wp_posts/wp_postmeta table are exclusive to the individual site they’re created in.

    Displaying posts and whatnot from other sites is easy with switch_to_blog() but earning BadgeOS achievements is a different story.

    I honestly don’t know if it could be made to do this, but it’s definitely going to take some work if possible. If it is, I imagine it’d need a lot of switch_to_blog() and restore_current_blog() to make sure actions and steps and tasks get logged to the right place.

Viewing 1 replies (of 1 total)
  • The topic ‘syncing badges across network’ is closed to new replies.