The Login 2 See extension for Flarum allows you to hide part of a post’s content so that it only becomes visible once a user has logged in. This is useful for forums that want to encourage guest users to register or log in, while also protecting exclusive content.

Key Features

Adds a special BBCode [login] [/login] to hide specific content.

The hidden content is visible only to logged-in members.

Currently works only for the main post (the first post in a discussion).

When used in replies or comments, the BBCode will be converted into a simple <div> element without showing the content.

How to Use

When creating or editing a post, wrap the content you want to hide with the BBCode:

[login]This secret content is only visible after login[/login]

Guests will be prompted to log in before they can view the hidden section.

Installation

Install the extension manually with Composer:

composer require nhanchaukp/login-to-see

Updating

To update to the latest version, run:

composer update nhanchaukp/login-to-see
php flarum cache:clear

Practical Use Cases

Hide downloads, resources, or external links.

Share premium guides or member-only content.

Encourage user sign-ups and boost community engagement.