Fix for installing MyCalendar MOD on PHPBB 2.0.19

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Post Reply
tgilbert
Registered User
Posts: 76
Joined: Thu Sep 01, 2005 8:17 am
Contact:

Fix for installing MyCalendar MOD on PHPBB 2.0.19

Post by tgilbert » Sun Apr 09, 2006 8:42 am

Hi all,

I have had several attempts at getting the MyCalendar MOD to install with PHPBB 2.0.19 and found that the last section of the MOD was incorrect. I have replaced that section and it installs perfectly now.

If you are having a problem with this too, replace your entire mycalendar_setup.txt with the following code:

Code: Select all

##############################################################
## Mod Title: mycalendar Mod w/selected forum integration
## Mod Version: 2.2.7
## Author: mojavelinux <dan@mojavelinux.com> - Dan Allen - http://mojavelinux.com
## Description: Enables users to add events to the calendar
##              through a chosen forum.
##
##              Please read the changelog and authors notes for the version
##              you are going to upgrade to so that you know what has changed.
##              I do my best to inform you of what to look for when upgrading.
## Installation Level: moderate
## Installation Time: 25 Minutes 
## Files To Edit:  posting.php
##                 viewtopic.php
##                 modcp.php
##                 admin/admin_forums.php
##		   includes/constants.php
##                 includes/page_header.php
##                 language/lang_english/lang_main.php
##                 language/lang_english/lang_admin.php
##                 templates/subSilver/subSilver.cfg
##                 templates/subSilver/overall_header.tpl
##                 templates/subSilver/posting_body.tpl
##                 templates/subSilver/admin/forum_edit_body.tpl
## Included Files:
##                 mycalendar_install.php
##                 (optional) mycalendar_syndication_functions.php
##                 mycalendar.php
##		   mycalendar_mod/calendar.html
##		   mycalendar_mod/calendar_body.html
##		   mycalendar_mod/mycalendar_functions.php
##		   js/mycalendar.js
##		   js/domTT.js
##		   images/mycalendar.gif
##		   images/arrows_l_still.gif
##		   images/arrows_r_still.gif
##		   templates/subSilver/mycalendar_body.tpl
##		   templates/subSilver/images/icon_left_arrow.gif
##		   templates/subSilver/images/icon_double_left_arrow.gif
##		   templates/subSilver/images/icon_right_arrow.gif
##		   templates/subSilver/images/icon_double_right_arrow.gif
##		   templates/subSilver/images/event_block_bar.gif
##		   templates/subSilver/images/event_block_end.gif
##		   templates/subSilver/images/event_block_arrow.gif
##		   templates/subSilver/images/icon_mini_calendar.gif

##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ 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/downloads/
##############################################################
## Author Notes (please see docs/NOTELOG for archives):
##
## These are things to look out for when UPGRADING.  I try to explain what you
## need to change from version to version here.
##
## Version 2.2.7
##   * restructured the MOD directory so it is clearer where to put the files.
##     The directory root/ should be your forum directory, so know you know
##     where to add them
##   * Put the site images in the images/ folder instead of inside the
##     mycalendar_mod/ folder
##   * Replaced the calendar_flyover.js script with domTT.js and placed
##     it in the js/ folder in the root
##
## ChangeLog (please see docs/CHANGELOG file for archives):
##
## These are details as to what changed.  I try to explain the new features
## and the modified logic.
##
## Version 2.2.7
##   * domTT.js instead of calendar_flyover.js
##   * fixed missing year arrows in mycalendar_mod.tpl
##   * changed image locations for the popup calendar to the root images/ folder
##   * changed the name of some files (look for 'updated in version 2.2.7')
##   * new calendar icon
##
## Known Issues
##   * no localization in popup calendar
##
############################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ##
############################################################################################

#
#-------- [ COPY ]------------------------
#

copy root/mycalendar.php to mycalendar.php
copy root/mycalendar_mod/calendar.html to mycalendar_mod/calendar.html
copy root/mycalendar_mod/calendar_body.html to mycalendar_mod/calendar_body.html
copy root/mycalendar_mod/mycalendar_functions.php to mycalendar_mod/mycalendar_functions.php
copy root/js/mycalendar.js to js/mycalendar.js
copy root/js/domTT.js to js/domTT.js
copy root/images/mycalendar.gif to images/mycalendar.gif
copy root/images/arrows_l_still.gif to images/arrows_l_still.gif
copy root/images/arrows_r_still.gif to images/arrows_r_still.gif
copy root/templates/subSilver/mycalendar_body.tpl to templates/subSilver/mycalendar_body.tpl
copy root/templates/subSilver/images/icon_left_arrow.gif to templates/subSilver/images/icon_left_arrow.gif
copy root/templates/subSilver/images/icon_double_left_arrow.gif to templates/subSilver/images/icon_double_left_arrow.gif
copy root/templates/subSilver/images/icon_right_arrow.gif to templates/subSilver/images/icon_right_arrow.gif
copy root/templates/subSilver/images/icon_double_right_arrow.gif to templates/subSilver/images/icon_double_right_arrow.gif
copy root/templates/subSilver/images/event_block_bar.gif to templates/subSilver/images/event_block_bar.gif
copy root/templates/subSilver/images/event_block_end.gif to templates/subSilver/images/event_block_end.gif
copy root/templates/subSilver/images/event_block_arrow.gif to templates/subSilver/images/event_block_arrow.gif
copy root/templates/subSilver/images/icon_mini_calendar.gif to templates/subSilver/images/icon_mini_calendar.gif

#
#---- [ OPEN ] --------
#

templates/subSilver/admin/forum_edit_body.tpl

#
#---- [ FIND ] -------------------------------------------
#

    <tr>
      <td class="row1">{L_FORUM_STATUS}</td>
      <td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
    </tr>

#
#---- [ AFTER, ADD ] -------------------------------------
#

    <tr>
      <td class="row1">{L_EVENTS_FORUM}</td>
      <td class="row2">{S_EVENTS_SELECT}</td>
    </tr>

#
#---- [ OPEN ] -------------------------------------------
#

admin/admin_forums.php

#
#---- [ FIND ] --------------------------------
#

            $statuslist = "<option value=\"" . FORUM_UNLOCKED . "\" $forumunlocked>" . $lang['Status_unlocked'] . "</option>\n";
            $statuslist .= "<option value=\"" . FORUM_LOCKED . "\" $forumlocked>" . $lang['Status_locked'] . "</option>\n";



#
#---- [ AFTER, ADD ] --------
#

            $events_forum = $row['events_forum'];
            $e_selected[$events_forum] = ' selected="selected"';
            $events_select = '<select name="events_forum">';
            $events_select .= '<option value="0"' . $e_selected[0] . '>' . $lang['No'] . '</option>';
            $events_select .= '<option value="1"' . $e_selected[1] . '>' . $lang['Yes'] . '</option>';
            $events_select .= '</select>';

#
#---- [ FIND ] --------
#

                'S_CAT_LIST' => $catlist,
                'S_STATUS_LIST' => $statuslist,
                'S_PRUNE_ENABLED' => $prune_enabled,

#
#---- [ AFTER, ADD ] -----------------------------------------
#

                'S_EVENTS_SELECT' => $events_select,
                'L_EVENTS_FORUM' => $lang['Events_Forum'],

#
#---- [ FIND ] -------------------------------------
#

            $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
                VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";

#
#---- [ REPLACE WITH ] ----------------------------------------
#

            $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable, events_forum" . $field_sql . ")
                VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['events_forum']) . $value_sql . ")";

#
#---- [ FIND ] -------------------------------------
#

                SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "

#
#---- [ REPLACE WITH ] -----------------------------------------
#

                SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . ", events_forum = " . intval($HTTP_POST_VARS['events_forum']) . "

#
#---- [ FIND ] -------------------------------------
#

				if( !$result = $db->sql_query($sql) )
				{
					message_die(GENERAL_ERROR, "Couldn't move posts to other forum", "", __LINE__, __FILE__, $sql);
				}

#
#---- [ AFTER, ADD ] -----------------------------------------
#

				$sql = "UPDATE " . MYCALENDAR_TABLE . "
					SET forum_id = $to_id
					WHERE forum_id = $from_id";
				if( !$result = $db->sql_query($sql) )
				{
					message_die(GENERAL_ERROR, "Couldn't move events to other forum!", "", __LINE__,
__FILE__, $sql);
				}

#
#---- [ FIND ] -------------------------------------
#

			if( !$result = $db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "Couldn't delete forum prune information!", "", __LINE__, __FILE__, $sql);
			}

#
#---- [ AFTER, ADD ] -----------------------------------------
#

			$sql = "DELETE FROM " . MYCALENDAR_TABLE . "
				WHERE forum_id = $from_id";
			if( !$result = $db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, "Couldn't delete events!", "", __LINE__, __FILE__, $sql);
            }

#
#-------- [ OPEN ]----------------------------------------
#
# (last updated in version 2.1.7)

posting.php

#
#-------- [ FIND ]------------------------
#

include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

#
#-------- [ AFTER, ADD ]------------------------
#

include($phpbb_root_path . 'mycalendar_mod/mycalendar_functions.'.$phpEx);

#
#-------- [ FIND ]------------------------
#

case 'poll_delete':
     delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id);

#
#-------- [ REPLACE WITH ]------------------------
#

case 'poll_delete':
     // we need to do this first just in case it fails...we don't want ghost events
     mycal_delete_event($topic_id, $post_id, true);
     delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id);

#
#-------- [ FIND ]------------------------
#

	        user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);

#
#-------- [ AFTER, ADD ]------------------------
#

                mycal_submit_event($mode, $forum_id, $topic_id, $post_id);

#
#-------- [ FIND ]------------------------
#

//
// Include page header
//
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

#
#-------- [ AFTER, ADD ]------------------------
#

mycal_generate_entry($mode, $forum_id, $topic_id, $post_id, $template);

#
#-------- [ OPEN ]--------------------------------------
#
# (last updated in version 2.2.7)

templates/subSilver/posting_body.tpl

#
#-------- [ FIND ] ------------------------------
#

<script language="JavaScript" type="text/javascript">

#
#-------- [ BEFORE, ADD ] --------------------------------
#
# Please be sure to add this BEFORE!!!! line 1...don't add this comment

<!-- BEGIN switch_cal_form -->
<script language="Javascript" src="js/mycalendar.js"></script>
<script language="Javascript">
var calendarColors = new Array();
calendarColors['bgColor'] = '{T_BODY_BGCOLOR}';
calendarColors['borderColor'] = '{T_TH_COLOR2}';
calendarColors['headerBgColor'] = '{T_BODY_LINK}';
calendarColors['headerColor'] = '{T_FONTCOLOR3}';
calendarColors['dateBgColor'] = '{T_TH_COLOR1}';
calendarColors['dateColor'] = '{T_BODY_LINK}';
calendarColors['dateHoverBgColor'] = '{T_BODY_BGCOLOR}';
calendarColors['dateHoverColor'] = '{T_TH_COLOR1}';
var calendarTitle = '{DATE_SELECTOR_TITLE}';
var calendarFormat = '{CAL_DATE_FORMAT}';
var calendarStartMonday = {CAL_START_MONDAY};
var calendarMonths = new Array({CAL_MONTH_LIST});
var calendarWeekdays = new Array({CAL_WEEKDAY_LIST});
var calendarNextYear = '{CAL_NEXT_YEAR}';
var calendarPreviousYear = '{CAL_PREVIOUS_YEAR}';
var calendarNextMonth = '{CAL_NEXT_MONTH}';
var calendarPreviousMonth = '{CAL_PREVIOUS_MONTH}';
</script>
<!-- END switch_cal_form -->

#
#-------- [ FIND ]------------------------
#

	<!-- END switch_privmsg -->
	<tr>
          <td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
          <td class="row2" width="78%"> <span class="gen">
                <input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
                </span> </td>
        </tr>

#
#-------- [ AFTER, ADD ]------------------------
#

    <!-- BEGIN switch_cal_form -->
    <tr>
      <td class="row1">
        <span class="gen"><b>{L_CALENDAR_EVENT}</b> <i>{L_EVENT_START}</i></span>
      </td>
      <td class="row2" style="vertical-align: middle;">
        <span class="gensmall"><input type="text" class="post" name="cal_date" size="10" maxlength="10" onFocus="this.blur();" style="vertical-align: middle;" value="{CAL_DATE}" /> <a href="javascript: void(0);" onClick="return getCalendar(document.post.cal_date);"><img src="images/mycalendar.gif" border="0" align="absmiddle" /></a> <input type="button" class="button" style="vertical-align: middle;" onClick="this.form.cal_date.value = '{CAL_NO_DATE}'; this.form.cal_date_end.value = '{CAL_NO_DATE}';" value="{L_CLEAR_DATE}" /> <input type="checkbox" name="cal_interval_date" value="1" style="vertical-align: middle;" onClick="if (document.getElementById) { toggle_cal_form_advanced = document.getElementById('cal_form_advanced').style; } else { alert('Upgrade your browser!'); return; } if (toggle_cal_form_advanced.display == 'none') { toggle_cal_form_advanced.display = ''; } else { toggle_cal_form_advanced.display = 'none'; }" {CAL_ADVANCED_FORM_ON}/> {L_CALENDAR_ADVANCED}</span>
      </td>
    </tr>
    <tr id="cal_form_advanced" style="display: {CAL_ADVANCED_FORM};">
      <td class="row1">
        <span class="gen"><b>{L_CALENDAR_EVENT}</b> <i>{L_EVENT_END}</i></span>
      </td>
      <td class="row2" style="vertical-align: middle;">
        <span class="gensmall"><input type="text" class="post" name="cal_date_end" size="10" maxlength="10" onFocus="this.blur();" style="vertical-align: middle;" value="{CAL_DATE_END}" /> <a href="javascript: void(0);" onClick="if (document.post.cal_date.value == '{CAL_NO_DATE}') { alert('{L_SELECT_START_DATE}'); return; } return getCalendar(document.post.cal_date_end);"><img src="images/mycalendar.gif" border="0" align="absmiddle" /></a> <input type="button" class="button" style="vertical-align: middle;" onClick="this.form.cal_date_end.value = '{CAL_NO_DATE}';" value="{L_CLEAR_DATE}" /> <input type="text" class="post" name="cal_interval" value="{CAL_INTERVAL}" size="3" style="vertical-align: middle;" /> <select class="post" name="cal_interval_units" style="vertical-align: middle;">{CAL_INTERVAL_UNIT_OPTIONS}</select> <input type="checkbox" name="cal_repeat_always" value="1" style="vertical-align: middle;" onClick="if (this.checked) { this.form.cal_date_end.value = '{CAL_NO_DATE}' }" {CAL_REPEAT_ALWAYS}/> {L_CAL_REPEAT_FOREVER}</span>
      </td>
    </tr>
    <!-- END switch_cal_form -->

#
#-------- [ OPEN ]--------------------------------------
#

viewtopic.php

#
#-------- [ FIND ]------------------------
#

include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

#
#-------- [ AFTER, ADD ]-------------------------------
#

include($phpbb_root_path . 'mycalendar_mod/mycalendar_functions.'.$phpEx);

#
#-------- [ FIND ] ------------------------------------
#

$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

#
#-------- [ AFTER, ADD ] ------------------------------
#

$message = mycal_show_event($topic_id, $postrow[$i]['post_id'], $message);

#
#-------- [ OPEN ] -------------------------------------
#
# (last updated in version 2.2.7)

language/lang_english/lang_main.php

#
#-------- [ FIND ] --------------------------------------
#

?>

#
#-------- [ BEFORE, ADD ]------------------------
#

// Start add - myCalendar MOD
$lang['DATE_SQL_FORMAT'] = '%M %e, %Y'; // This should be changed to the default date format for SQL for your language
$lang['DATE_INPUT_FORMAT'] = 'd/m/y'; // Requires 'd', 'm', and 'y' and a punctuation delimiter, order can change

$lang['interval']['day'] = 'day';
$lang['interval']['days'] = 'days';
$lang['interval']['week'] = 'week';
$lang['interval']['weeks'] = 'weeks';
$lang['interval']['month'] = 'month';
$lang['interval']['months'] = 'months';
$lang['interval']['year'] = 'year';
$lang['interval']['years'] = 'years';

$lang['Event_Start'] = 'Single or Start Date';
$lang['Event_End'] = 'End Date and Interval';
$lang['Calendar_advanced_form'] = 'advanced';
$lang['Calendar_repeat_forever'] = 'repeat forever';
$lang['Clear_Date'] = 'Clear Date';
$lang['Date_not_specified'] = 'Select -->';
$lang['Select_start_date'] = 'Please Select a Start Date'; // must escape ' as \\\' for javascript
$lang['Calendar_event_title'] = 'Calendar Event';
$lang['View_calendar'] = 'Calendar';
$lang['View_previous_month'] = 'View Previous Month';
$lang['View_next_month'] = 'View Next Month';
$lang['View_previous_year'] = 'View Previous Year';
$lang['View_next_year'] = 'View Next Year';
$lang['Calendar_interval'] = 'Interval';
$lang['Calendar_repeat'] = 'Repeat';
$lang['Calendar_start_monday'] = false;
$lang['Date_selector'] = 'Date Selector';   // title/header for Date Selector Window
// End add - myCalendar MOD

#
#-------- [ OPEN ]--------------------------------------
#

language/lang_english/lang_admin.php

#
#-------- [ FIND ]------------------------
#

?>

#
#-------- [ BEFORE, ADD ]------------------------
#

// Start add - myCalendar MOD
$lang['Events_Forum'] = 'Allow calendar events';
// End add - myCalendar MOD

#
#-------- [ OPEN ]--------------------------------------
#

includes/constants.php

#
#-------- [ FIND ]------------------------
#

define('PAGE_TOPIC_OFFSET', 5000);

#
#-------- [ BEFORE, ADD ]------------------------
#

define('PAGE_MYCALENDAR', -501);

#
#-------- [ FIND ]------------------------
#

?>

#
#-------- [ BEFORE, ADD ]------------------------
#

define('MYCALENDAR_TABLE', $table_prefix.'mycalendar');

#
#-------- [ OPEN ]--------------------------------------
#

modcp.php

#
#-------- [ FIND ]------------------------
#

include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_admin.'.$phpEx);

#
#-------- [ AFTER, ADD ]------------------------
#

include($phpbb_root_path . 'mycalendar_mod/mycalendar_functions.'.$phpEx);

#
#-------- [ FIND ]------------------------
#

            //
            // Got all required info so go ahead and start deleting everything
            //

#
#-------- [ AFTER, ADD ]------------------------
#

            mycal_delete_event($topic_id_sql, null, false);

#
#-------- [ FIND ]------------------------
#

                for($i = 0; $i < count($row); $i++)
                {
                    $topic_id = $row[$i]['topic_id'];
                    
                    if ( isset($HTTP_POST_VARS['move_leave_shadow']) )

#
#-------- [ BEFORE, ADD ]------------------------
#

                mycal_move_event($new_forum_id, $topic_list, isset($HTTP_POST_VARS['move_leave_shadow']));

#
#-------- [ OPEN ]--------------------------------------
#

templates/subSilver/subSilver.cfg

#
#-------- [ FIND ]------------------------
#
# (end) 

?>

#
#-------- [ BEFORE, ADD ]------------------------
#

$images['icon_left_arrow'] = "$current_template_images/icon_left_arrow.gif";
$images['icon_double_left_arrow'] = "$current_template_images/icon_double_left_arrow.gif";
$images['icon_right_arrow'] = "$current_template_images/icon_right_arrow.gif";
$images['icon_double_right_arrow'] = "$current_template_images/icon_double_right_arrow.gif";
$images['event_block_bar'] = "$current_template_images/event_block_bar.gif";
$images['event_block_end'] = "$current_template_images/event_block_end.gif";
$images['event_block_arrow'] = "$current_template_images/event_block_arrow.gif";

#
#-------- [ OPEN ]--------------------------------------
#

includes/page_header.php

#
#-------- [ FIND ]------------------------
#

	'L_FAQ' => $lang['FAQ'], 

#
#-------- [ AFTER, ADD ]------------------------
#

    'L_CALENDAR' => $lang['View_calendar'],

#
#-------- [ FIND ]------------------------
#

	'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'), 
	'U_SEARCH' => append_sid('search.'.$phpEx),

#
#-------- [ AFTER, ADD ]------------------------
#

    'U_CALENDAR' => append_sid('mycalendar.'.$phpEx),

#
#-------- [ OPEN ]--------------------------------------
#

templates/subSilver/overall_header.tpl

#
#-------- [ FIND ]------------------------
#

<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 

#
#-------- [ REPLACE WITH ]--------------------------------------
#
# make sure you replace subSilver with your theme...this part of phpBB2 has not
# been "template" oriented, and don't include this comment

<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_CALENDAR}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_calendar.gif" width="12" height="13" border="0" alt="{L_CALENDAR}" hspace="3" />{L_CALENDAR}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 

#
#------- [ SAVE/CLOSE ALL FILES ] -------------------
#
# Now run the mycalendar_install.php script from your root directory (delete when done for security)!
# (unless you have mssql, then you have to manually run the queries in manual-sql/mycalendar-mssql.sql)
#
# EoM
Best of luck...

TonyG

tyrancy
Registered User
Posts: 41
Joined: Fri Mar 04, 2005 10:58 am

Re: Fix for installing MyCalendar MOD on PHPBB 2.0.19

Post by tyrancy » Thu Jul 31, 2008 4:24 pm

Having an issue with this mod. Installed to the most upto date version.

Getting this error:
Fatal error: Cannot redeclare mycal_submit_event() (previously declared in /mnt/w0908/d08/s47/b02e0bd2/www/tjthedjent.ca/Welcome/mycalendar_mod/mycalendar_functions.php:25) in /mnt/w0908/d08/s47/b02e0bd2/www/tjthedjent.ca/Welcome/mycalendar_mod/mycalendar_functions.php on line 25
I get this anytime a new topic is made. I have gone over all the code and it is all installed correctly. I am running the most upto date Phpbb2 board. I have no other mods.

Suggestions?

tyrancy
Registered User
Posts: 41
Joined: Fri Mar 04, 2005 10:58 am

Re: Fix for installing MyCalendar MOD on PHPBB 2.0.19

Post by tyrancy » Fri Aug 01, 2008 11:42 am

Any Help?

No Matter which forum area I try to post in I get the same error.

http://www.tjthedjent.ca/Welcome

I have no idea what the issue is. I have gone though all the posts I can find. I would hate to have to uninstall the Mod.

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 10 guests