Social Web CMS
February 09, 2010, 06:43:13 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: For the latest news and updates, please follow us on Twitter! http://twitter.com/HotaruCMS
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Sin Bin Module version 0.2  (Read 822 times)
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« on: October 29, 2008, 08:10:10 am »

Description of Sin Bin:
Temporarily disable users from logging in. It differs from the current "Disable" feature because it allows users to be re-enabled.

Updated to v.0.2 on Jan. 20th 2009

Features:
  • Adds a user_sin_bin field to the users table in the database. 0 = Enabled, 1 = Disabled.
  • Users can be enabled and disabled from the User Management page in Admin.
  • User in the sin bin are shown a message when they try to log in. See attached image.

Revision History:
  • v0.2 2009/01/20 longcountdown - Renamed module hook
  • v0.1 First version.

Instructions:
  • Open your_site/templates/your_template/admin_templates/user_show_center.tpl
  • Add the following before the user reset and user disable lines:
             {checkActionsTpl location="tpl_admin_user_show_center_pre_reset_link"}
  • Save and upload that file.
  • Upload the sin_bin folder to your modules folder. Install it from Module Management in Admin.
  • Go to the User Management page in Admin, and search for a user, and click his or her name.
  • You'll see a new link titled "Sin Bin Options". From there you can add or remove a user from the sin bin.


NOTE: I'm just a PHP novice. I welcome all efforts to make this module better.


* sin_bin_module_image.gif (18.56 KB, 576x721 - viewed 114 times.)
* sin_bin.zip (21.34 KB - downloaded 52 times.)
« Last Edit: January 20, 2009, 04:12:58 am by longcountdown » Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
Nick
Administrator
Hero Member
*****
Offline Offline

Posts: 668



View Profile WWW
« Reply #1 on: January 20, 2009, 04:13:30 am »

Sin Bin module updated to v.0.2

Changes:
Module hook renamed for compatibility with other modules.

If you're upgrading from version 0.1...

In your_site/templates/your_template/admin_templates/user_show_center.tpl
Change: {checkActionsTpl location="tpl_sin_bin_link"}
To: {checkActionsTpl location="tpl_admin_user_show_center_pre_reset_link"}
Logged

Reinventing SWCMS at HotaruCMS.org - testers, designers and developers wanted!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!