############################################################## 
## MOD Title:		Topic calendar - Part 2 (without Split topic type v 2 or greater)
## MOD Author:		Ptirhiik < ptirhiik@clanmckeen.com > (Pierre) http://rpgnet.clanmckeen.com
## MOD Description:
##			This part is required if you have not Split topic v 2 or greater
##
## MOD Version:		1.0.1
## 
## Installation Level:	Easy
## Installation Time:	3 Minutes
## Files To Edit:
##			viewforum.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 ]------------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
<?php
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
include_once($phpbb_root_path . 'includes/functions_calendar.'.$phpEx);
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
#
		$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : calendar --------------------------------------------------------------------------------
//-- add
		$calendar_title = get_calendar_title($topic_rowset[$i]['topic_calendar_time'], $topic_rowset[$i]['topic_calendar_duration']);
		if (!empty($calendar_title)) $calendar_title = '</a></span><a name="cal_' . $topic_id . '">' . $calendar_title . '<span class="topictitle">';
		$topic_title .= $calendar_title;
//-- fin mod : calendar ----------------------------------------------------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM