############################################################## ## MOD Title: Topic calendar - Part 1 ## MOD Author: Ptirhiik < admin@rpgnet-fr.com > (Pierre) http://www.rpgnet-fr.com ## MOD Description: ## This mod adds a calendar to your board, working with natural phpBB auth. ## ## MOD Version: 1.0.0 ## ## Installation Level: Easy ## Installation Time: 30 Minutes ## Files To Edit: ## posting.php ## search.php ## viewforum.php ## viewtopic.php ## ## admin/admin_forumauth.php ## admin/admin_ug_auth.php ## ## includes/auth.php ## includes/constants.php ## includes/functions.php ## includes/functions_post.php ## includes/page_header.php ## includes/topic_review.php ## ## templates/subSilver/overall_header.tpl ## templates/subSilver/posting_body.tpl ## templates/subSilver/subSilver.cfg ## ## Included Files: ## calendar.php ## calendar_scheduler.php ## ## functions_calendar.php ## toggle_display.js ## mod_calendar.php ## ## lang_extend_topic_calendar.php ## ## calendar_body.tpl ## calendar_box.tpl ## calendar_overview_profil.tpl ## calendar_overview_topic.tpl ## calendar_scheduler_body.tpl ## ## --- graphics --- ## graph.gif/folder_calendar.gif ## graph.gif/icon_calendar.gif ## graph.gif/icon_mini_calendar.gif ## graph.gif/icon_tiny_profile.gif ## graph.gif/icon_tiny_topic.gif ## graph.gif/icon_down_arrow.gif ## graph.gif/icon_up_arrow.gif ## ## --- mods settings --- ## mod-mods_settings/admin_board_extend.php ## mod-mods_settings/functions_mods_settings.php ## mod-mods_settings/board_config_extend_body.tpl ## mod-mods_settings/lang_extend_mods_settings.php ## ## --- lang settings --- ## mod-lang_settings/lang_extend_mac.php ## ## --- topics list --- ## mod-topics_list/functions_topics_list.php ## mod-topics_list/topics_list_box.tpl ## ## mod-topics_list/graph.gif/folder_announce_own.gif ## mod-topics_list/graph.gif/folder_announce_new_own.gif ## mod-topics_list/graph.gif/folder_own.gif ## mod-topics_list/graph.gif/folder_new_own.gif ## mod-topics_list/graph.gif/folder_hot_own.gif ## mod-topics_list/graph.gif/folder_new_hot_own.gif ## mod-topics_list/graph.gif/folder_lock_own.gif ## mod-topics_list/graph.gif/folder_lock_new_own.gif ## mod-topics_list/graph.gif/folder_sticky_own.gif ## mod-topics_list/graph.gif/folder_sticky_new_own.gif ## ############################################################## ## 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: ## ## - This mod was originaly based on ModjavLinux's mycalendar 2.2.6, but differs now in so ## many points that it can't be qualified as an evolution, but rather a brand new way to ## manage events with a calendar. Anyway, it wouldn't have been fair to not mentioned the ## old-timer as the grand-father of this one :). ## ## - The javascript included in calendar_box.tpl comes from Mojavlinux's MyCalendar 2.2.6 ## ( http://www.mojavelinux.com/ ) ## ## - For those using the Profile Control Panel, the calendar will also display the birthday ## of your users. ## ## - This mod uses mods settings mod (also included with the pack) to manage configuration values. ## If you whish to grant your users the ability to customize their setting, install it too :). ## ## - the part 2 of the mod is not required for those who have split topic type v 2.0.0 installed. ## The other have to install it. ## ## - This mod can be installed using Nutzzy's EasyMOD v 0.0.10a ( http://phpbb.com/phpBB/viewtopic.php?t=125071 ), ## on a phpBB 2.0.4, 2.0.5 and 2.0.6 ## ############################################################## ## MOD History: ## ## 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 ############################################################## # #-----[ SQL ]------------------------------------------------- # ALTER TABLE phpbb_topics ADD topic_calendar_time INT(11); ALTER TABLE phpbb_topics ADD topic_calendar_duration INT(11); ALTER TABLE phpbb_topics ADD INDEX (topic_calendar_time); ALTER TABLE phpbb_auth_access ADD auth_cal TINYINT(1) DEFAULT '0' NOT NULL; ALTER TABLE phpbb_forums ADD auth_cal TINYINT(2) DEFAULT '0' NOT NULL; UPDATE phpbb_auth_access SET auth_cal = auth_sticky; UPDATE phpbb_forums SET auth_cal = auth_sticky; # #-----[ SQL ]------------------------------------------------- # # This part is optional : do it only if you want your users to be able to choose their setup # if you want so, you'll have to install the MOD-mods_settings mod included in the pack # ALTER TABLE phpbb_users ADD user_calendar_display_open TINYINT(1) DEFAULT '0' NOT NULL; ALTER TABLE phpbb_users ADD user_calendar_header_cells TINYINT(1) DEFAULT '7' NOT NULL; ALTER TABLE phpbb_users ADD user_calendar_week_start TINYINT(1) DEFAULT '1' NOT NULL; ALTER TABLE phpbb_users ADD user_calendar_nb_row TINYINT(2) UNSIGNED DEFAULT '5' NOT NULL; ALTER TABLE phpbb_users ADD user_calendar_birthday TINYINT(1) DEFAULT '1' NOT NULL; ALTER TABLE phpbb_users ADD user_calendar_forum TINYINT(1) DEFAULT '1' NOT NULL; # #-----[ COPY ]------------------------------------------------ # copy calendar.php to calendar.php copy calendar_scheduler.php to calendar_scheduler.php copy functions_calendar.php to includes/functions_calendar.php copy toggle_display.js to includes/toggle_display.js copy mod_calendar.php to includes/mods_settings/mod_calendar.php copy lang_extend_topic_calendar.php to language/lang_english/lang_extend_topic_calendar.php copy calendar_body.tpl to templates/subSilver/calendar_body.tpl copy calendar_box.tpl to templates/subSilver/calendar_box.tpl copy calendar_overview_profil.tpl to templates/subSilver/calendar_overview_profil.tpl copy calendar_overview_topic.tpl to templates/subSilver/calendar_overview_topic.tpl copy calendar_scheduler_body.tpl to templates/subSilver/calendar_scheduler_body.tpl copy graph.gif/folder_calendar.gif to templates/subSilver/images/folder_calendar.gif copy graph.gif/icon_calendar.gif to templates/subSilver/images/icon_calendar.gif copy graph.gif/icon_mini_calendar.gif to templates/subSilver/images/icon_mini_calendar.gif copy graph.gif/icon_tiny_profile.gif to templates/subSilver/images/icon_tiny_profile.gif copy graph.gif/icon_tiny_topic.gif to templates/subSilver/images/icon_tiny_topic.gif copy graph.gif/icon_down_arrow.gif to templates/subSilver/images/icon_down_arrow.gif copy graph.gif/icon_up_arrow.gif to templates/subSilver/images/icon_up_arrow.gif # #-----[ COPY ]------------------------------------------------ # # this part comes from lang settings mod, and is required for topic calendar mod # copy mod-lang_settings/lang_extend_mac.php to includes/lang_extend_mac.php # #-----[ COPY ]------------------------------------------------ # # this part comes from mods settings mod, and is required for topic calendar mod # copy mod-mods_settings/admin_board_extend.php to admin/admin_board_extend.php copy mod-mods_settings/board_config_extend_body.tpl to templates/subSilver/admin/board_config_extend_body.tpl copy mod-mods_settings/functions_mods_settings.php to includes/functions_mods_settings.php copy mod-mods_settings/lang_extend_mods_settings.php to language/lang_english/lang_extend_mods_settings.php # #-----[ COPY ]------------------------------------------------ # # this part is relative to the topics list mod # copy mod-topics_list/functions_topics_list.php to includes/functions_topics_list.php copy mod-topics_list/topics_list_box.tpl to templates/subSilver/topics_list_box.tpl copy mod-topics_list/graph.gif/folder_announce_own.gif to templates/subSilver/images/folder_announce_own.gif copy mod-topics_list/graph.gif/folder_announce_new_own.gif to templates/subSilver/images/folder_announce_new_own.gif copy mod-topics_list/graph.gif/folder_own.gif to templates/subSilver/images/folder_own.gif copy mod-topics_list/graph.gif/folder_new_own.gif to templates/subSilver/images/folder_new_own.gif copy mod-topics_list/graph.gif/folder_hot_own.gif to templates/subSilver/images/folder_hot_own.gif copy mod-topics_list/graph.gif/folder_new_hot_own.gif to templates/subSilver/images/folder_new_hot_own.gif copy mod-topics_list/graph.gif/folder_lock_own.gif to templates/subSilver/images/folder_lock_own.gif copy mod-topics_list/graph.gif/folder_lock_new_own.gif to templates/subSilver/images/folder_lock_new_own.gif copy mod-topics_list/graph.gif/folder_sticky_own.gif to templates/subSilver/images/folder_sticky_own.gif copy mod-topics_list/graph.gif/folder_sticky_new_own.gif to templates/subSilver/images/folder_sticky_new_own.gif # #-----[ OPEN ]------------------------------------------------ # posting.php # #-----[ FIND ]------------------------------------------------ # 'posting_preview.tpl') ); # #-----[ AFTER, ADD ]------------------------------------------ # //-- mod : calendar -------------------------------------------------------------------------------- //-- add if (!empty($topic_calendar_time)) { $topic_calendar_duration_preview = $topic_calendar_duration-1; if ($topic_calendar_duration_preview < 0) { $topic_calendar_duration_preview = 0; } $preview_subject .= get_calendar_title($topic_calendar_time, $topic_calendar_duration_preview); } //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ FIND ]------------------------------------------------ # # this is a partial search : the full line is longer # $hidden_form_fields = 'assign_block_vars('switch_type_cal', array()); $months = array( ' ------------ ', $lang['datetime']['January'], $lang['datetime']['February'], $lang['datetime']['March'], $lang['datetime']['April'], $lang['datetime']['May'], $lang['datetime']['June'], $lang['datetime']['July'], $lang['datetime']['August'], $lang['datetime']['September'], $lang['datetime']['October'], $lang['datetime']['November'], $lang['datetime']['December'], ); // get the date $topic_calendar_time = ( !isset($HTTP_POST_VARS['topic_calendar_year']) || (($topic_calendar_time != intval($post_data['topic_calendar_time'])) && !$is_auth['auth_cal']) ) ? intval($post_data['topic_calendar_time']) : $topic_calendar_time; $topic_calendar_duration = ( (!isset($HTTP_POST_VARS['topic_calendar_duration_day']) && !isset($HTTP_POST_VARS['topic_calendar_duration_hour']) && !isset($HTTP_POST_VARS['topic_calendar_duration_min']) ) || (($topic_calendar_duration != intval($post_data['topic_calendar_duration'])) && !$is_auth['auth_cal']) ) ? intval($post_data['topic_calendar_duration']) : $topic_calendar_duration; // get the components of the event date $year = ''; $month = ''; $day = ''; $hour = ''; $min = ''; if (!empty($topic_calendar_time)) { $year = intval( date('Y', $topic_calendar_time) ); $month = intval( date('m', $topic_calendar_time) ); $day = intval( date('d', $topic_calendar_time) ); $hour = intval( date('H', $topic_calendar_time) ); $min = intval( date('i', $topic_calendar_time) ); } // get the components of the duration $d_day = ''; $d_hour = ''; $d_min = ''; if ( !empty($topic_calendar_time) && !empty($topic_calendar_duration) ) { $d_dur = intval($topic_calendar_duration); $d_day = intval($d_dur / 86400); $d_dur = $d_dur - 86400 * $d_day; $d_hour = intval($d_dur / 3600); $d_dur = $d_dur - 3600 * $d_hour; $d_min = intval($d_dur / 60); } // raz if no date if ( empty($year) || empty($month) || empty($day) ) { $year = ''; $month = ''; $day = ''; $hour = ''; $min = ''; $d_day = ''; $d_hour = ''; $d_min = ''; } // day list $s_topic_calendar_day = ''; // month list $s_topic_calendar_month = ''; // year list $s_topic_calendar_year = ''; // time if (empty($hour) && empty($min)) { $hour = ''; $min = ''; } $topic_calendar_hour = $hour; $topic_calendar_min = $min; // duration if ( empty($topic_calendar_hour) && empty($topic_calendar_min) ) { $d_hour = ''; $d_min = ''; } if ( empty($d_day) && empty($d_hour) && empty($d_min) ) { $d_day = ''; $d_hour = ''; $d_min = ''; } $topic_calendar_duration_day = $d_day; $topic_calendar_duration_hour = $d_hour; $topic_calendar_duration_min = $d_min; } } //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ FIND ]------------------------------------------------ # 'S_HTML_CHECKED' => ( !$html_on ) ? 'checked="checked"' : '', # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- //-- add 'L_CALENDAR_TITLE' => $lang['Calendar_event'], 'L_TIME' => $lang['Event_time'], 'L_CALENDAR_DURATION' => $lang['Calendar_duration'], 'L_DAYS' => $lang['Days'], 'L_HOURS' => $lang['Hours'], 'L_MINUTES' => $lang['Minutes'], 'L_TODAY' => $lang['Today'], 'TODAY_DAY' => date('d', time()), 'TODAY_MONTH' => date('m', time()), 'TODAY_YEAR' => date('Y', time()), 'S_CALENDAR_YEAR' => $s_topic_calendar_year, 'S_CALENDAR_MONTH' => $s_topic_calendar_month, 'S_CALENDAR_DAY' => $s_topic_calendar_day, 'CALENDAR_HOUR' => $topic_calendar_hour, 'CALENDAR_MIN' => $topic_calendar_min, 'CALENDAR_DURATION_DAY' => $topic_calendar_duration_day, 'CALENDAR_DURATION_HOUR' => $topic_calendar_duration_hour, 'CALENDAR_DURATION_MIN' => $topic_calendar_duration_min, //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # search.php # #-----[ FIND ]------------------------------------------------ # assign_block_vars("searchresults", array( # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- //-- add if (!empty($searchset[$i]['topic_calendar_time']) && ($searchset[$i]['post_id'] == $searchset[$i]['topic_first_post_id'])) { $post_subject .= '' . get_calendar_title($searchset[$i]['topic_calendar_time'], $searchset[$i]['topic_calendar_duration']); } //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # viewforum.php # #-----[ FIND ]------------------------------------------------ # $s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
'; # #-----[ AFTER, ADD ]------------------------------------------ # //-- mod : calendar -------------------------------------------------------------------------------- //-- add $s_auth_can .= ( ( $is_auth['auth_cal'] ) ? $lang['Rules_calendar_can'] : $lang['Rules_calendar_cannot'] ) . '
'; //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------------ # 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 ]------------------------------------------------ # 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 ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # includes/auth.php # #-----[ FIND ]------------------------------------------------ # # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- //-- add define('AUTH_CAL', 20); define('POST_BIRTHDAY', 9); define('POST_CALENDAR', 10); //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # includes/functions.php # #-----[ FIND ]------------------------------------------------ # ' . $lang['Empty_message'] : $lang['Empty_message']; } # #-----[ AFTER, ADD ]------------------------------------------ # //-- mod : calendar -------------------------------------------------------------------------------- //-- add // // check calendar date // if ((!empty($topic_calendar_time)) && ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post']))) { $year = intval(date( 'Y', $topic_calendar_time)); $month = intval(date( 'm', $topic_calendar_time)); $day = intval(date( 'd', $topic_calendar_time)); if (!checkdate($month, $day, $year)) { $error_msg .= (!empty($error_msg) ? '
' : '') . sprintf($lang['Date_error'], $day, $month, $year); } } //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ FIND ]------------------------------------------------ # # this is a partial search : the full line is longer # function submit_post($mode, &$post_data, &$message # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- // here we have added // , $topic_calendar_time = 0, $topic_calendar_duration = 0 //-- modify # #-----[ IN-LINE FIND ]---------------------------------------- # ) # #-----[ IN-LINE BEFORE, ADD ]--------------------------------- # , $topic_calendar_time = 0, $topic_calendar_duration = 0 # #-----[ AFTER, ADD ]------------------------------------------ # //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ FIND ]------------------------------------------------ # $sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- // here we have added // , topic_calendar_time, topic_calendar_duration // , $topic_calendar_time, $topic_calendar_duration // and // , topic_calendar_time = $topic_calendar_time, topic_calendar_duration = $topic_calendar_duration //-- modify # #-----[ IN-LINE FIND ]---------------------------------------- # , topic_status, topic_type # #-----[ IN-LINE AFTER, ADD ]---------------------------------- # , topic_calendar_time, topic_calendar_duration # #-----[ IN-LINE FIND ]---------------------------------------- # , " . TOPIC_UNLOCKED . ", $topic_type # #-----[ IN-LINE AFTER, ADD ]---------------------------------- # , $topic_calendar_time, $topic_calendar_duration # #-----[ IN-LINE FIND ]---------------------------------------- # , topic_type = $topic_type # #-----[ IN-LINE AFTER, ADD ]---------------------------------- # , topic_calendar_time = $topic_calendar_time, topic_calendar_duration = $topic_calendar_duration # #-----[ AFTER, ADD ]------------------------------------------ # //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------------ # pparse('overall_header'); # #-----[ BEFORE, ADD ]----------------------------------------- # //-- mod : calendar -------------------------------------------------------------------------------- //-- add if (!defined('IN_CALENDAR')) { if ( intval($board_config['calendar_header_cells']) > 0 ) { include_once($phpbb_root_path . './includes/functions_calendar.' . $phpEx); display_calendar('CALENDAR_BOX', intval($board_config['calendar_header_cells'])); } } $template->assign_vars(array( 'L_CALENDAR' => $lang['Calendar'], 'I_CALENDAR' => $images['menu_calendar'], 'U_CALENDAR' => append_sid("./calendar.$phpEx"), ) ); //-- fin mod : calendar ---------------------------------------------------------------------------- # #-----[ OPEN ]------------------------------------------------ # includes/topic_review.php # #-----[ FIND ]------------------------------------------------ # # #-----[ BEFORE, ADD ]----------------------------------------- # # #-----[ FIND ]------------------------------------------------ # # #-----[ BEFORE, ADD ]----------------------------------------- # this line may already exists ; if so, just ignore it # #-----[ FIND ]------------------------------------------------ # # this is a partial search : the full-line is longer #  {L_CALENDAR}{L_CALENDAR}    # #-----[ FIND ]------------------------------------------------ #
# #-----[ AFTER, ADD ]------------------------------------------ # {CALENDAR_BOX} # #-----[ OPEN ]------------------------------------------------ # templates/subSilver/posting_body.tpl # #-----[ FIND ]------------------------------------------------ #