PHPackages                             iionly/loginrequired - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. iionly/loginrequired

ActiveElgg-plugin

iionly/loginrequired
====================

Requires site visitors to be logged in to view the site. The only pages accessible without being logged in are the starting page, registration and forgotten password pages and the external pages (About, Terms, Privacy).

1.9.8(10y ago)1151GPL-2.0PHP

Since Sep 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/iionly/loginrequired)[ Packagist](https://packagist.org/packages/iionly/loginrequired)[ Docs](https://github.com/iionly/loginrequired)[ RSS](/packages/iionly-loginrequired/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Loginrequired plugin for Elgg 1.9 - 1.12 and Elgg 2.X
=====================================================

[](#loginrequired-plugin-for-elgg-19---112-and-elgg-2x)

Latest Version: 1.9.8
Released: 2015-09-16
Contact:
License: GNU General Public License version 2
Copyright: (c) iionly, Khaled Afiouni

What this plugin does
---------------------

[](#what-this-plugin-does)

- No direct access to any site urls for non-logged-in visitors is possible with the exception of the pages explicitly allowed (login, registration, lost-password, external pages),
- When not logged in to the site only the login widget is displayed,
- It checks Elgg's walled-garden plugin hook for public pages,
- In addition it introduces it's own plugin hook to define public pages, i.e. the plugin hook defined in Khaled Afiouni's plugin can still be used in Elgg 1.8+1.9 with this plugin. Check the function login\_required\_default\_allowed\_list in start.php to see how you can define public pages in your plugins or add more pages to be viewable by not-logged-in users via this plugin.

ATTENTION: If using this plugin, please don't enable the walled-garden option on Elgg's advanced settings page.

Installation
------------

[](#installation)

1. If you have any previous version of the Loginrequired plugin installed, remove the loginrequired folder from the mod directory before copying/extracting the new version on your server,
2. Copy the loginrequired plugin folder into you mod folder,
3. Make sure that in Advanced Settings the Elgg default walled-garden option is disabled,
4. Enable the loginrequired plugin in the admin section of your.

If you want to change the layout of the login page look at the file loginrequired/views/default/page/layouts/loginrequired\_index\_example.php. This is an alternative for loginrequired\_index.php. The example loginrequired\_index\_example.php includes a right column with a widget, some text in the widget and an image shown in the widget. You can modify loginrequired\_index\_example.php according to your needs and then replace loginrequired\_index.php with your version.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3896d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdbf30b346be3828b40d37e87d3dfc0974c9481c41c8019a37a90d59580b031b?d=identicon)[iionly](/maintainers/iionly)

---

Top Contributors

[![iionly](https://avatars.githubusercontent.com/u/1773681?v=4)](https://github.com/iionly "iionly (7 commits)")

---

Tags

pluginelgg

### Embed Badge

![Health badge](/badges/iionly-loginrequired/health.svg)

```
[![Health](https://phpackages.com/badges/iionly-loginrequired/health.svg)](https://phpackages.com/packages/iionly-loginrequired)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
