##############################################################
## MOD Title:		Add-On Colorize Forumtitle with Topic Calendar
## MOD Author: OXPUS < webmaster@oxpus.de > (Karsten Ude) http://www.oxpus.de
## MOD Description:	Gives admins the possibility to enter a color seperatly for each forumtitle
##			on boards with installed Topic Calendar.
## MOD Version:		1.0.0
##
## Installation Level:	Easy
## Installation Time:	3-5 Minutes
## Files To Edit:	0
##
## 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:
##
##############################################################
## MOD History:
##
##   2004-05-14- Version 1.0.0
##      - First release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_calendar.php

#
#-----[ FIND ]------------------------------------------
#
		$sql_forums_field = ', f.forum_name';

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$sql_forums_field = ', f.forum_name, f.forum_color';

#
#-----[ FIND ]------------------------------------------
#
		$topic_title 				= $row['topic_title'];

#
#-----[ AFTER, ADD ]------------------------------------------
#
		$topic_color 				= $row['forum_color'];

#
#-----[ FIND ]------------------------------------------
#
		$short_title = (strlen($topic_title) > $topic_title_length + 3) ? substr($topic_title, 0, $topic_title_length) . '...' : $topic_title;

#
#-----[ AFTER, ADD ]------------------------------------------
#
		if ( $topic_color != '' )
		{
			$short_title = '<span style="color: #'.$topic_color.'">'.$short_title.'</span>';
			$topic_title = '<span style="color: #'.$topic_color.'">'.$topic_title.'</span>';
			$row['forum_name'] = '<span style="color: #'.$topic_color.'">'.$row['forum_name'].'</span>';
		}


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM