What's new

Welcome to ehcgo | Welcome My Forum

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Gamifying PeepSo for a Rising Member Group


Staff member
Mar 22, 2024
Reaction score

Posted on March 13, 2019

Whereas requests for group web sites and gamification are pretty frequent, constructing a completely built-in customized sport inside communities is far much less so — and we love an attention-grabbing venture. That’s why, when Intergalactic Postal Service approached 9seeds to create a sport inside their on-line group sidebar on a decent timeline, we excitedly responded, “sport on”.

IPS is constructing a cool themed community, and needed to debut the brand new social-integrated sport at an upcoming comedian ebook conference to their loyal members. Because the supply deadline was two weeks away, we wanted to search out essentially the most environment friendly mixture of expertise to perform the duty.

Fortunately, IPS was utilizing PeepSo, an simply extensible member group plugin for WordPress that we frequently advocate. Whereas it has a smaller consumer base than BuddyPress, it’s a extra tightly built-in package deal and extra full featured out of the field. This was going to be the primary time we added gamification to PeepSo although.

The sport construct

The construct for this social-enabled sport was pretty simple from a standalone standpoint, the attention-grabbing half was integrating it seamlessly into the PeepSo group.

Basic necessities​

  • The sport is turn-based.
  • Actions should occur asynchronously.
  • The sport should work inside the PeepSo sidebar as a widget.
  • Gamers are notified about actions inside the sport through the PeepSo notification system.


  • A participant initiates an motion and different gamers are in a position to work together with the participant primarily based on that motion.
  • A grasp dispatcher broadcasts every interplay to the PeepSo exercise stream.
  • Non-player characters sometimes work together with actual gamers when website exercise is down.
  • Grasp dispatch consumer is ready to actively work together with the reside chat plugin to let a participant know instantly when one thing occurred to them (in addition to who was accountable) to permit for swift counter-action.

Constructing the mixing

PeepSo has a slick, JavaScript-heavy consumer interface. As a way to seamlessly combine with the expertise and UX of the location, the sport would additionally have to load and run utilizing the identical JavaScript framework and interactivity. That meant including customized JavaScript utilizing commonplace WordPress strategies; and Ajax calls to the backend for the widget.

Inside the PeepSo profile space, there’s a PeepSo-specific widget space that solely PeepSo widgets work inside, and it deviates a bit from how widgets usually work inside WordPress. PeepSo help was nice at offering code examples to assist implement the widget, and in flip the sport right into a PeepSo widget.

As soon as the widget shell was added, sport was coded, and notifications integration was deliberate out, it was time to start out hooking into the location’s social options.

Hooking into PeepSo

To get the system messages into the group timeline, we used a helper perform to work together with PeepSo:

public static perform peepso( $proprietor, $consumer, $msg ) {
$exercise = PeepSoActivity::get_instance();
$end result = $activity->add_post( $proprietor, $consumer, $msg );

Subsequent we constructed the personal chat between Recreation Grasp and consumer:

$mannequin = new PeepSoMessagesModel();
$msg_id = $model->create_new_conversation($gm, $msg, '', array($pm,$userid));

The ultimate step earlier than consumer testing was so as to add a public audit log (or leaderboard with stats) to encourage deeper engagement. We made fast work of including a brand new tab within the PeepSo consumer profile space together with companion visibility and permissions choices within the PeepSo administration console.

Recreation On

And identical to that, it was time to check the sport mechanics, show, UX, and messaging hooks.


What we had initially thought is likely to be a particularly concerned venture was made simpler by some wonderful integration framework and help from the PeepSo workforce.

Have an attention-grabbing PeepSo integration venture you’d like to get began on? Get in contact and tell us how we might help!
Top Bottom