[Elgg 1.8-1.12 & 2.X: Login required]

Warning: This plugin has't been updated in over 8 years. It may no longer be maintained.

What you can do to help:

A walled garden plugin (content accessible only for logged in site visitors)

Last updated
Recommended Releases
Elgg Release Download Date Links
2.31.9.8 (16.24 kB)2015-Sep-17
2.21.9.8 (16.24 kB)2015-Sep-17
2.11.9.8 (16.24 kB)2015-Sep-17
2.01.9.8 (16.24 kB)2015-Sep-17
1.121.9.8 (16.24 kB)2015-Sep-17
1.111.9.8 (16.24 kB)2015-Sep-17
1.101.9.8 (16.24 kB)2015-Sep-17
1.91.9.8 (16.24 kB)2015-Sep-17
Show all releases

This is a merged release of Khaled Afiouni's original "Log In Required" plugin released for Elgg 1.7 (https://community.elgg.org/plugins/479029) and Elgg's build in walled-garden option. The Login required plugin is for Elgg 1.8 or newer.

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 or newer 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.

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.

Requirements: For release r3 and newer at least Elgg 1.8.1 is required. If using this plugin, please don't enable the walled-garden option on Elgg's advanced settings page.

It's preferred to place the Loginrequired plugin at the bottom of your plugin list. This will allow for taking into account any "public page" settings done via Elgg's walled-garden plugin hook. Also, other plugins can not override the views of the Loginrequired plugin, if it's placed at the bottom, but the Loginrequired plugin will have the highest priority possible.

Stats

  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-12-11
  • Downloads: 8445
  • Recommendations: 26

Other Projects

View iionly's plugins