[ABD] phpBB Calendar 0.1.1 (alightner)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by alightner » Sun Jan 06, 2008 8:53 pm

lifeguard81 wrote:
Error update on
Calendar.php

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 968: Undefined offset: 1
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3437: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3439: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3440: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3441: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
This is the same line of code you first reported the error on... did you remove your fix?
You should have changed

Code: Select all

if( $month_names[1] !== "January" )
to

Code: Select all

if( count($month_names) == 0 )
in the includes/functions_calendar.php file.
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

lifeguard81
Registered User
Posts: 147
Joined: Tue Dec 04, 2007 10:11 am

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by lifeguard81 » Sun Jan 06, 2008 9:03 pm

Very very sorry!

My fault, i post the wrong error.

The error that i get is,

Code: Select all

[phpBB Debug] PHP Notice: in file /calendarpost.php on line 748: Undefined index: event_access_level
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 749: Undefined index: event_access_level
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 752: Undefined index: group_id
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 753: Undefined index: group_id
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 756: Undefined index: event_access_level
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3437: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3439: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3440: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3441: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2913)
I get this error when i click a number, or when i try to add an event..
Bye phpBB, hello Compo.sr A complete website package with news, forum, chat, gallery and much more!

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by alightner » Sun Jan 06, 2008 9:06 pm

moifest wrote:

Code: Select all

[phpBB Debug] PHP Notice: in file /calendarpost.php on line 749: Undefined index: event_access_level
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 750: Undefined index: event_access_level
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 753: Undefined index: group_id
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 754: Undefined index: group_id
[phpBB Debug] PHP Notice: in file /calendarpost.php on line 757: Undefined index: event_access_level
Try removing lines 745 through 761 in calendarpost.php:

Code: Select all

	//-----------------------------------------
	// event levels
	//-----------------------------------------
	$temp_find_str = "value='".$event_data['event_access_level']."'";
	$temp_replace_str = "value='".$event_data['event_access_level']."' selected";
	$level_sel_code = str_replace( $temp_find_str, $temp_replace_str, $level_sel_code );

	$temp_find_str = "value='".$event_data['group_id']."'";
	$temp_replace_str = "value='".$event_data['group_id']."' selected";
	$group_sel_code = str_replace( $temp_find_str, $temp_replace_str, $group_sel_code );

	if( $event_data['event_access_level'] == 1 )
	{
		$temp_find_str = "disabled";
		$temp_replace_str = "";
		$group_sel_code = str_replace( $temp_find_str, $temp_replace_str, $group_sel_code );
	}
That was a copy and paste bug on my part... it's where we set the preselected access level (persona. group, or public) and preselected group in the pulldown menus, but in this case we're creating a new event, so the defaults should work fine - no need to set them to the current event's values since we haven't created the event yet ;)
moifest wrote: Discovered a language bug, when user has no access to add an event it shows USER_CANNOT__EVENT
Double underscore between CANNOT and EVENT
Thanks I'll look into this.
moifest wrote:

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 677: Undefined variable: error
Another copy and paste bug... in functions_calendar.php remove:

Code: Select all

if (!sizeof($error))
	{
and also remove it's ending bracket (should be roughly on line 716).
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by alightner » Sun Jan 06, 2008 9:08 pm

Apparently my server is too forgiving... you have found several bugs worth fixing. I'm going to work on getting all of the bug fixes submitted to the demo and repackaging the mod so other users don't hit these too (since it looks like you're both hitting the same ones).
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

moifest
Registered User
Posts: 251
Joined: Tue Nov 06, 2007 4:58 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by moifest » Sun Jan 06, 2008 9:16 pm

The fix above resulted in a parse error in function_calendar.

I think it should be remove

Code: Select all

	}

	if (!sizeof($error))
	{
I removed that and it fixed the problem i was seeing, confirm that i havent stopped anythign else working doing that lol

lifeguard81
Registered User
Posts: 147
Joined: Tue Dec 04, 2007 10:11 am

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by lifeguard81 » Sun Jan 06, 2008 9:26 pm

Image
https://camo.phpbb.com/e3bddb6471d7824759d171404776fbcd2e2884e1/687474703a2f2f696d6167656e6572642e636f6d2f75706c6f6164732f6572726f72453277302e6a7067 < -- link to image
All errors are gone!

Only 1 left.

when i delete an event, i've got this little error for 3 seconds. ( redirect)

little bug somewhere?
Bye phpBB, hello Compo.sr A complete website package with news, forum, chat, gallery and much more!

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by alightner » Sun Jan 06, 2008 9:30 pm

lifeguard81 wrote: Only 1 left.

when i delete an event, i've got this little error for 3 seconds. ( redirect)

little bug somewhere?
in functions_calendar.php look for:

Code: Select all

 		// Delete event
		$sql = 'DELETE FROM ' . CALENDAR_EVENTS_TABLE . "
				WHERE event_id = $db->sql_escape($event_id)";
I believe that should be

Code: Select all

 		// Delete event
		$sql = 'DELETE FROM ' . CALENDAR_EVENTS_TABLE . "
				WHERE event_id = ".$db->sql_escape($event_id);
Let me know if that fixes the problem.

I have to go run an errand - will finish helping you all and repackaging the mod with fixes soon.
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

User avatar
PSPDM
Registered User
Posts: 72
Joined: Sun Oct 07, 2007 12:40 am
Contact:

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by PSPDM » Sun Jan 06, 2008 9:33 pm

my acp permissions are wierd lol

Image

{ acl_u_as_delete } are the things supposed to come up like that
Image

moifest
Registered User
Posts: 251
Joined: Tue Nov 06, 2007 4:58 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by moifest » Sun Jan 06, 2008 9:42 pm

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1323: Undefined variable: date
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1323: Undefined variable: date

Warning: Cannot modify header information - headers already sent by (output started at /home/scottis1/public_html/board/includes/functions.php:2924) in /home/scottis1/public_html/board/includes/functions.php on line 3495

Warning: Cannot modify header information - headers already sent by (output started at /home/scottis1/public_html/board/includes/functions.php:2924) in /home/scottis1/public_html/board/includes/functions.php on line 3497

Warning: Cannot modify header information - headers already sent by (output started at /home/scottis1/public_html/board/includes/functions.php:2924) in /home/scottis1/public_html/board/includes/functions.php on line 3498

Warning: Cannot modify header information - headers already sent by (output started at /home/scottis1/public_html/board/includes/functions.php:2924) in /home/scottis1/public_html/board/includes/functions.php on line 3499
Changed to

Code: Select all

		// Delete event
      $sql = 'DELETE FROM ' . CALENDAR_EVENTS_TABLE . "
            WHERE event_id = ".$db->sql_escape($event_id);
		$db->sql_query($sql);
But the above error is still tehre.

lifeguard81
Registered User
Posts: 147
Joined: Tue Dec 04, 2007 10:11 am

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by lifeguard81 » Sun Jan 06, 2008 9:49 pm

alightner wrote:
lifeguard81 wrote: Only 1 left.

when i delete an event, i've got this little error for 3 seconds. ( redirect)

little bug somewhere?
in functions_calendar.php look for:

Code: Select all

 		// Delete event
		$sql = 'DELETE FROM ' . CALENDAR_EVENTS_TABLE . "
				WHERE event_id = $db->sql_escape($event_id)";
I believe that should be

Code: Select all

 		// Delete event
		$sql = 'DELETE FROM ' . CALENDAR_EVENTS_TABLE . "
				WHERE event_id = ".$db->sql_escape($event_id);
Let me know if that fixes the problem.

I have to go run an errand - will finish helping you all and repackaging the mod with fixes soon.
Nope...

Code: Select all

phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1326: Undefined variable: date
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1326: Undefined variable: date
This one is at the top, when delete an event .
Bye phpBB, hello Compo.sr A complete website package with news, forum, chat, gallery and much more!

moifest
Registered User
Posts: 251
Joined: Tue Nov 06, 2007 4:58 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by moifest » Sun Jan 06, 2008 10:08 pm

Temporary fix i did was change

Code: Select all

$meta_info = append_sid("{$phpbb_root_path}calendar.$phpEx", "calM=".$date['month_no']."&calY=".$date['year']);
to

Code: Select all

$meta_info = append_sid("{$phpbb_root_path}calendar.$phpEx");
it does not recognise the date variable in the whole query.

On another note, dont know if its an IE thing but on 'day' view, the icons in the lower left side under the table with the times, are all cut off. Only half the icon is viewable.
Last edited by moifest on Sun Jan 06, 2008 10:11 pm, edited 1 time in total.

lifeguard81
Registered User
Posts: 147
Joined: Tue Dec 04, 2007 10:11 am

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by lifeguard81 » Sun Jan 06, 2008 10:10 pm

moifest wrote:Temporary fix i did was change

Code: Select all

$meta_info = append_sid("{$phpbb_root_path}calendar.$phpEx", "calM=".$date['month_no']."&calY=".$date['year']);
to

Code: Select all

$meta_info = append_sid("{$phpbb_root_path}calendar.$phpEx");
it does not recognise the date variable in the whole query.
:mrgreen: Thnq very mutch!
Bye phpBB, hello Compo.sr A complete website package with news, forum, chat, gallery and much more!

User avatar
PSPDM
Registered User
Posts: 72
Joined: Sun Oct 07, 2007 12:40 am
Contact:

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by PSPDM » Sun Jan 06, 2008 11:10 pm

Code: Select all

INSERT INTO phpbb_acl_options (auth_option, is_global, is_local, founder_only) VALUES ('a_calendar', 1, 0, 0),
('m_calendar_edit_other_users_events', 1, 0, 0),
('m_calendar_delete_other_users_events', 1, 0, 0),
('u_calendar_view_events', 1, 0, 0),
('u_calendar_create_events', 1, 0, 0),
('u_calendar_edit_events', 1, 0, 0),
('u_calendar_delete_events', 1, 0, 0);

DROP TABLE IF EXISTS `phpbb_calendar_config`;
CREATE TABLE IF NOT EXISTS `phpbb_calendar_config` (
  `config_name` varchar(255) NOT NULL,
  `config_value` varchar(255) NOT NULL
);

INSERT INTO `phpbb_calendar_config` (`config_name`, `config_value`) VALUES 
('first_day_of_week', '0'),
('index_display_week', '0'),
('index_display_next_events', '5');

DROP TABLE IF EXISTS `phpbb_calendar_event_types`;
CREATE TABLE IF NOT EXISTS `phpbb_calendar_event_types` (
  `etype_id` tinyint(3) unsigned NOT NULL auto_increment,
  `etype_index` tinyint(3) unsigned NOT NULL default '0',
  `etype_full_name` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `etype_display_name` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `etype_color` varchar(6) character set utf8 collate utf8_bin NOT NULL default '',
  `etype_image` varchar(255) NOT NULL,
  PRIMARY KEY  (`etype_id`)
);

INSERT INTO `phpbb_calendar_event_types` (`etype_id`,`etype_index`,`etype_full_name`,`etype_display_name`,`etype_color`,`etype_image`) VALUES 
 (1,1,'Generic Event','','','');

DROP TABLE IF EXISTS `phpbb_calendar_events`;
CREATE TABLE IF NOT EXISTS `phpbb_calendar_events` (
  `event_id` int(10) unsigned NOT NULL auto_increment,
  `etype_id` tinyint(4) NOT NULL,
  `sort_timestamp` bigint(20) unsigned NOT NULL,
  `event_start_time` bigint(20) unsigned NOT NULL,
  `event_end_time` bigint(20) unsigned NOT NULL,
  `event_all_day` tinyint(2) NOT NULL default '0',
  `event_day` varchar(10) character set utf8 collate utf8_bin NOT NULL default '',
  `event_subject` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `event_body` longblob NOT NULL,
  `poster_id` int(10) unsigned NOT NULL,
  `event_access_level` tinyint(1) NOT NULL default '0',
  `group_id` tinyint(1) NOT NULL default '0',
  `enable_bbcode` tinyint(1) unsigned NOT NULL default '1',
  `enable_smilies` tinyint(1) unsigned NOT NULL default '1',
  `enable_magic_url` tinyint(1) unsigned NOT NULL default '1',
  `bbcode_bitfield` varchar(255) character set utf8 collate utf8_bin NOT NULL default '',
  `bbcode_uid` varchar(8) character set utf8 collate utf8_bin NOT NULL,
  PRIMARY KEY  (`event_id`)
);
how can i drop the tables i dont know how
Image

User avatar
fulleffect
Registered User
Posts: 78
Joined: Sun Jan 14, 2007 6:54 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by fulleffect » Sun Jan 06, 2008 11:23 pm

nice mod ;) tomorrow i will fix it to my forum and wil also fix a dutch lang pack and will mail it to you if intrested ;) :)
it's just the way it is ;-)

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Alpha] phpBB Calendar 0.0.0 (alightner/spacedog)

Post by alightner » Mon Jan 07, 2008 1:20 am

moifest wrote:The fix above resulted in a parse error in function_calendar.

I think it should be remove

Code: Select all

	}

	if (!sizeof($error))
	{
I removed that and it fixed the problem i was seeing, confirm that i havent stopped anythign else working doing that lol
Yes - this is the correct fix :D
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

Locked

Return to “[3.0.x] Abandoned MODs”