Module to subscribe new users or a particualr role, and module for showing users in a list in the admin. Has a front end page for subscribing your users – register, login, forgotten password

Subscribers

Subscribers module for Processwire 2.4+

Intended to host all required functions to allow users to register and login to a Processwire website by adding a few functions within your template files.

Modules list:

  • Subscibers -- helper functions for creating user registation, login and lost password forms -- validates and creates users as defined role -- on install creates new user role and permission subscriber that can be over written -- on install creates all fields needed to sign up user fullname, email_subscribe, company, subscribe_date.
  • subscribersProcessList -- helper module to add a new process class to admin allowing for a list page of subscribers that can be paginated through and exported.

Install


Install module in modules folder in your Processwire installation. update modules in admin and install module.

Settings


Change role and permissions to be installed.

Usage


// get subscriber module
$subscribers = $modules->getModule('Subscribers');

// login form
echo $subscribers->formLogin();

// login user
$error = $subscribers->login($input->post->username, $input->post->pass);

// register form
echo $subscribers->formRegister($input);

// register user
$error = $subscribers->register($input);

// delete user
$response = $subscribers->deleteUser($user);

// show user info
$userInfoHtml = $subscribers->loggedIn($user, $input);

TODO:


  • make everything more robust and more configurable (please help)

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #519
    In the 519th issue of ProcessWire Weekly we'll check out a new third party module called RockForms, introduce the latest ProcessWire core updates, and more. Read on!
    Weekly.pw / 20 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH