Forum Cleaner 2.5.1

A MyBB plugin to help Administrators keep things clean.

website: http://community.mybb.com/thread-77074.html
author:	Andriy Smilyanets ( asmile on MyBB Community Forums )
authorsite: http://community.mybb.com/user-18581.html

Compatibility: MyBB version 1.6.*
  
Allows:

	* select threads or permanent redirects in forum by age of creation date 
	  or last post and:
		* close 
		* delete
		* move to other forum
	  selection exclude sticky threads

	* optionally show forum action description on Forum index and/or on Forum 
	  thread list 
	  Special thank to pavemen for this idea.

	* delete old Awaiting Activation users with specified number of days 
	  after registration
	* delete Inactive users (users with absolutely no post) with specified 
	  number of days after last visit

	* delete orphaned avatar files

Files:

	inc/plugins/forumcleaner.php
	inc/tasks/forumcleaner.php
	inc/languages/english/admin/forumcleaner.lang.php
	inc/languages/english/forumcleaner.lang.php

Installation:

	Copy listed files in your MyBB root directory to mentioned subdirectories.
	And enable Plugin in Admin CP.
	Changes in forum:
	  * create table: TABLE_PREFIX.'forumcleaner'
	  * add templates: 'forumcleaner_forumbit' and 'forumcleaner_threadlist'
	  * modify templates: 'forumbit_depth2_forum' and 'forumdisplay_threadlist'
	Uninstall removes all changes.

	WARNING!!!! You have to translate language files to your language, used in Admin CP, 
	BEFORE installation or to switch Admin CP language to english.

Upgrade:

	from 2.3 or 2.4 to 2.5 - generally:
		* deactivate 
		* replace files
		* activate

	If you use not a MySQL database, please look at
	 	http://community.mybb.com/thread-77074.html
	for details

	If you use translated language files, please add prefix 'forumcleaner_' to
	language variable names. Look inside of
		inc/languages/english/admin/forumcleaner.lang.php
		inc/languages/english/forumcleaner.lang.php
	for examples.

	New language variables added and some modified. 
    Look for comments in language files.




Configuration:

	You can configure and use plugin in following places:

	* Admin CP / Configuration / Plugins
	  install, activate, deactivate or uninstall the Forum Cleaner plugin

	* Admin CP / Configuration / Settings / Forum Cleaner options
	  General configuration and user deletion configuration

	* Admin CP / Forums & Posts / Forum Cleaner
	  Configuration of forums to be scanned for old threads and setup 
	  actions for found threads

	* Admin CP / Users & Groups / Orphaned Avatars
	  Find and delete orphaned avatar files

	* Admin CP / Tools & Maintenance / Task Manager
	  Setup a schedule for Forum Cleaner task

Roots:
	This plugin based on heavily rewritten AutoExpunge plugin (Created by The forum.kde.org team) 
	and lots of Copy&Paste's from Admin CP tools

##########
# TODO
#
# - nothing at the moment, suggestions and wished are welcomed

##########
# Changelog
#
# 20100826 2.0
#	* initial version
#
# 20100828 2.2
#	* added Awaiting Activation and Inactive users deletion
#  
# 20100902 2.3
#	* added Deletion of Orphaned avatars
#
# 20100907 2.4
#	* added optional messages on Forum index and/or Forum thread list with
#	  Action description
#	* bugs fixed
#	* added file /inc/languages/english/forumcleaner.lang.php
#
# 20100910 2.4.1
#	* fixed bug in inc/plugins/forumcleaner.php at line 1245, which stops plugin 
#	  from work when no actions selected to be shown on Forum index or Threads list
#
# 20100910 2.4.2
#	* fixed bug in inc/plugins/forumcleaner.php at line 1245, which stops plugin 
#	  from work when actions selected to be shown on Forum index or Threads list,
#	  but not on both
#
# 20100910 2.4.3
#	* fixed syntax bug
#
# 20100913 2.4.4
#	* fixed 1.4 and 1.6 compatibility bug with user deletion.
#  
# 20111107 2.5.0
#   * added check for appropriate language file load.
#	* to language variables the 'forumcleaner_' prefix added to separate name space 
#     from MyBB core.
#   * new language variables added and some modified. 
#     Look for comments in language files if you translate them before.
#	* now it's allowed to select All forums for Delete and Close actions.
#	* multiple forums selections is allowed for all actions.
#
#	* MyBB 1.6.5 hooks change ready
#
#   * MyBB 1.4.* compatibility tag removed because it was not tested.
#	  Please test it before usage in MyBB 1.4.* production site.
#
# 20111112 2.5.1
#   * fixed bug in orphaned avatars cleaning
#   * fixed bug in showing of multiple forum action descriptions
#   * appropriate language file check improved
#
