Menu

#8 Option to display categories in month view

open
nobody
None
5
2005-04-19
2005-04-19
Simon Kuhn
No

I didn't want to bother making a way to configure this through the web
interface, although it would be nice.

Add define("DISPLAY_CATEGORY_IN_MONTH", TRUE); to config.inc.php,
and apply this patch:

--- /space/vtcalendar-2.2.0/main_month_body.inc.php 2005-04
-07 14:52:52.000000000 -0400
+++ main_month_body.inc.php 2005-04-18 23:45:23.304521000
-0400
@@ -113,6 +113,11 @@
}
echo "href=\"main.php?
view=event&eventid=",$event['eventid'],"\">";
echo HTMLSpecialChars($event['title']);
+
+if (DISPLAY_CATEGORY_IN_MONTH) {
+ echo '<br><span
class="eventcategory">'.$event['category_name'].'</span>';
+}
+
// add little update, delete icons
if ((isset($_SESSION["AUTH_SPONSORID"]) &&
$_SESSION["AUTH_SPONSORID"] == $event['sponsorid']) ||
isset($_SESSION["AUTH_ADMIN"])) {
echo " <br><a href=\"changeeinfo.php?
eventid=",$event['eventid'],"\" title=\"",lang('update_event'),"\">";

Discussion


Log in to post a comment.

MongoDB Logo MongoDB