PeepSo

The PeepSo Add-on creates multiple points of integration between JReviews and PeepSo's profiles and activity stream.

Features

The most important features enabled through this integration:

  • JReviews activities shown in the PeepSo stream
  • JReviews shows PeepSo names and avatars linked to profiles
  • PeepSo reactions shown in JReviews listings
  • PeepSo comments shown in JReviews listings
A user review in the PeepSo stream
A user review in the PeepSo stream

Requirements

  • JReviews WordPress
  • PeepSo

Getting started

The Add-on doesn't have a separate administration interface. After installing it, go to JReviews → Configuration → Community, then select PeepSo in the Community setting to enable the integration with JReviews.

On the same page, you can adjust the Activity Stream integration by selecting which JReviews activities get posted in the PeepSo stream.

PeepSo activity stream options
PeepSo activity stream options

Extending the integration

PeepSo has a setting that lets it replace the native WordPress comments with a PeepSo comment box. When a site member submits a listing and the listing is shared in the activity stream, comments and reactions to that activity in the stream will also appear at the bottom of the listing detail page through the PeepSo comments box.

PeepSo comments integration
PeepSo comments integration

By default, JReviews disables comments for JReviews listings. If you want to enable WordPress native post comments for new listings, you must override the default closed status with a JReviews developer filter and the following code. This will only work for new listings created after the filter is in place. If you want to open comments for old listings, you'll need to do it directly in the post in WordPress admin or the database by changing the post.comment_status column to open.

function wp_listing_default_comment_status($status, $params)
{
    if  ( $params['isNew'] )
    {
        return 'open';
    }

    return $status;
}

Clickfwd\Hook\Filter::add('wp_listing_default_comment_status', 'wp_listing_default_comment_status', 10);