############################################################## 
## MOD Title:		Topic calendar - Part 3 (without categories hierarchy v 2.0.4 or greater)
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This part has to be installed if you haven't Categories hierarchy v 2.0.4 or greater
##
## MOD Version:		1.0.1
## 
## Installation Level:	Easy
## Installation Time:	5 Minutes
## Files To Edit:
##			admin/admin_forumauth.php
##			admin/admin_ug_auth.php
##
## Included Files: (n/a)
##
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
##
##	o part 1 is common to all setups
##	o part 2 is required if you haven't Split topic type v 2 or greater installed
##	o part 3 is required if you haven't Categories hierarchy v 2.0.4 or greater
##	o part 4 is required if you have Categories hierarchy v 2.0.4 or greater
## 
############################################################## 
## MOD History:
##
##   2003-11-11 - Version 1.0.1
##	- no changes to the mod, only the installation description has been enhance to ease the
##	installation with Categories hierarchy v 2.0.4 or greater
##
##   2003-10-30 - Version 1.0.0
##      - fix a bug on DST date change in scheduler
##	- fix the -1 issue in preview post
##	- cut off softer the message in the overview event window
##
##   2003-09-14 - Version 1.0.0 beta 1.5
##	- fix empty auths
##	- various little design fixes
##	- add forum selection
##	- add prec/next month
##	- upgrade mod-topics_list version
##
##   2003-09-09 - Version 1.0.0 beta 1.4
##	- split the mod in two part for those having or planing to install the split topic type mod
##	- adapt the mod to post icon mod
##	- fix a collision between send email input field and events on flying windows
##	- remove the jumbox on calendar view
##	- fix overview window width and right position with mozilla
##	- fix an error on days shown moved with events in little month box
##	- add a link to return from schedular to calendar
##
##   2003-09-05 - Version 1.0.0 beta 1.3
##	- fix the birthday issue on some server (DST active issue with mktime())
##	- add default icons (in prevision for posts icon mod)
##
##   2003-08-26 - Version 1.0.0 beta 1.2
##	- enhancement of the scheduler
##      - getting various type events modularization
##
##   2003-08-28 - Version 1.0.0 beta 1.0a
##      - first beta
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_forumauth.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
//                View      Read      Post      Reply
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
// here we added for each row a new column for calendar auth similar to the sticky value
// and add Calendar in the comment header
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
Delete
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
   Calendar
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	0  => array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	0  => array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_MOD
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	1  => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	1  => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_MOD
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	2  => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	2  => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_MOD
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	3  => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	3  => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_ACL
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	4  => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	4  => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_ACL
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	5  => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	5  => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_MOD
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
	6  => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD
);
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
	6  => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, AUTH_MOD
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full-line is longer
#
$forum_auth_fields = array('auth_view', 'auth_read'
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
// here we added
//	, 'auth_cal'
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, 'auth_delete'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, 'auth_cal'
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	'auth_delete' => $lang['Delete'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
	'auth_cal' => $lang['Calendar'],
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post'
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
// here we added
//	, 'auth_cal'
//-- modify
#
#-----[ IN-LINE FIND ]---------------------------------------- 
#
, 'auth_delete'
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------- 
#
, 'auth_cal'
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	'auth_delete' => AUTH_DELETE,
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
	'auth_cal' => AUTH_CAL,
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
	'auth_delete' => $lang['Delete'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
	'auth_cal' => $lang['Calendar'],
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM