Skip to content

Connections: follows, mutual connections and blocks between users

Describes User Connections 0.4.0.

The Connections module lets the users of your site follow each other, connect with each other, and block each other. The admin page shows how many of each exist; the users manage their own on the My Connections page.

Where to find it

Turn it on under Modules in the admin. Connections then appears in the Modules section of the sidebar (/admin/connections). You need a role with the Connections permission. While the module is off, the page is not available: opening it sends you back to the admin dashboard with “Connections module is not enabled”.

The Connections admin page: statistics for follows, connections, pending and blocks, the module switch and the three relationship types The Connections admin page: statistics for follows, connections, pending and blocks, the module switch and the three relationship types

User connections: statistics and the module switch.

Statistics

Four numbers for the whole site:

  • Follows: one-way follows.
  • Connections: mutual connections.
  • Pending: connection requests awaiting an answer.
  • Blocks: active blocks.

The Modules page shows Follows, Connections and Blocks on the module’s card too.

Module configuration

Enable Connections Module switches the module off. “When disabled, the connections interface will not be accessible”: users can no longer open My Connections. Turning it off keeps all follows, connections and blocks. To turn it back on, use the Modules page.

The three kinds of relationship

Relationship Types on the same page explains them:

  • Follows: one user follows another. The other user isn’t asked.
  • Connections: one user sends a request, the other accepts or rejects it. If two users request each other, both requests are accepted.
  • Blocks: a block removes any follows and connections between the two users. While a block exists in either direction, neither can follow or connect with the other.

Nobody can follow, connect with or block themselves.

What it doesn’t do

  • The admin page doesn’t list who follows, connects with or blocks whom. It shows totals only, and has no way to change a user’s relationships.
  • The module has no buttons to follow, connect or block. Your site’s own pages have to offer them; see below.

For developers

Follow, connect and block buttons on your pages call the module’s functions, for example PhoenixKitUserConnections.follow/2, request_connection/2 and block/3. The README lists them.