About Subscribers

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

Category 1Admin Helpers
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
Category 2Other Modules
Modules that have a unique purpose not covered by existing categories.
Category 3Users and Access
Modules dealing with access in ProcessWire via Users, Roles or Permissions.
Release StateAlpha
Non-stable. Not yet intended for use in production environments. *
Authorbenbyf
Module Version0.0.3
Class NameSubscribers
Compatibility2.4, 2.5, 2.6, 2.7, 3.0
Date AddedOctober 31, 2016
Last UpdatedApril 30, 2017
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/Subscribers/
How to install or uninstall modules

README

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)

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.