[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.
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by alightner » Thu Aug 20, 2009 4:06 pm

Then it sounds like something is wrong with your edits to one or more of the following:

index.php
includes/functions.php
styles/prosilver/template/index_body.html
styles/prosilver/template/overall_header.html

(and as always don't forget to purge your cache if you make an edit to a template 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.

foulou
Registered User
Posts: 5
Joined: Thu Aug 20, 2009 2:50 am

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by foulou » Thu Aug 20, 2009 6:41 pm

it could be the template that making your mod to not works fully ?

i will try to make the mods on prosilver just to see :?

weird, I had to make the modification in prosilver to be able to make it works in my template :x

thx for the help =)

quapor
Registered User
Posts: 10
Joined: Fri Aug 21, 2009 11:06 pm

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by quapor » Fri Aug 21, 2009 11:29 pm

hello, I have a small problem
I tried everything but the picture prosilver_new_star_icon.gif does not show :?

Image

CemetaryMan
Registered User
Posts: 59
Joined: Sat Jun 21, 2008 2:29 pm
Contact:

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by CemetaryMan » Sat Aug 22, 2009 1:54 am

Have you set the permissions for you to create new events, that might be why they are not showing ;)

quapor
Registered User
Posts: 10
Joined: Fri Aug 21, 2009 11:06 pm

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by quapor » Sat Aug 22, 2009 7:27 am

CemetaryMan wrote:Have you set the permissions for you to create new events, that might be why they are not showing ;)
The image is not displayed, but clicking on the empty place is possible - do I add a new event

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by marian0810 » Sun Aug 23, 2009 9:38 pm

[quote="alightner"]Also if anyone is interested in translating this to subsilver2 please let me know. I know there were a few solutions posted for 0.0.8, but there are so many new features in the next release, that it will need a lot of updates.[/quote]

Okay I installed the new version on my testforum and gave it a try too. It works for me, and the w3 validator doesn't seem to hate it :D so maybe some people can test this out for me and let me know if it needs improvement. The only files that need editing are overall_header.html and index_body.html.

http://www65.zippyshare.com/v/21932332/file.html

Screenshots:

http://img441.imageshack.us/img441/4404 ... shot1e.jpg
http://img6.imageshack.us/img6/8886/screenshot2tot.jpg
http://img411.imageshack.us/img411/6372 ... shot3b.jpg
http://img441.imageshack.us/img441/700/screenshot4e.jpg
http://img403.imageshack.us/img403/1291 ... shot5j.jpg
http://img44.imageshack.us/img44/5693/screenshot6s.jpg
http://img44.imageshack.us/img44/759/screenshot7hph.jpg


And I have a question, I"m not sure if it's a bug or not but I noticed it's possible to register for the same event multiple times? Which can be a bit annoying if you accidentally click the button twice or have to refresh the page, then all of a sudden you have these multiple entries and no way to delete them. Or at least none that I could find?


Edit: made a few minor html improvements
Last edited by marian0810 on Thu Aug 27, 2009 10:22 pm, edited 2 times in total.

bob_raid
Registered User
Posts: 166
Joined: Thu Jan 17, 2008 12:53 am

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by bob_raid » Mon Aug 24, 2009 3:01 am

Can anyone here guide me how to start with the below SQL? or it will be automatically
update after I edit the files require and upload the included root files?

Thanks in advance.

Code: Select all

/* WARNING: do NOT execute the SQL commands on the phpbb_acl_options table more 
than once if you're upgrading or trying to repair a previous installation of the calendar mod.
Executing this command more than once will add duplicate entries to the table 
breaking your current permissions and causing the calendar to malfunction */

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_edit_events', 1, 0, 0),
('u_calendar_delete_events', 1, 0, 0),
('u_calendar_create_public_events', 1, 0, 0),
('u_calendar_create_group_events', 1, 0, 0),
('u_calendar_create_private_events', 1, 0, 0),
('u_calendar_nonmember_groups', 1, 0, 0),
('u_calendar_track_rsvps', 1, 0, 0),
('u_calendar_allow_guests', 1, 0, 0),
('u_calendar_view_headcount', 1, 0, 0),
('u_calendar_view_detailed_rsvps', 1, 0, 0),
('u_calendar_create_recurring_events', 1, 0, 0),
('m_calendar_edit_other_users_rsvps', 1, 0, 0);

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'),
('hour_mode', '12'),
('display_truncated_name', '0'),
('prune_frequency', '0'),
('last_prune', '0'),
('prune_limit', '2592000'),
('display_hidden_groups', '0'),
('time_format','h:i a'),
('date_format','M d, Y'),
('date_time_format','M d, Y h:i a'),
('disp_events_only_on_start','0'),
('populate_frequency','86400'),
('last_populate','0'),
('populate_limit','2592000');

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','','','');

CREATE TABLE IF NOT EXISTS `phpbb_calendar_events` (
  `event_id` mediumint(8) 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` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
  `event_access_level` tinyint(1) NOT NULL default '0',
  `group_id` mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
  `group_id_list` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default ',',
  `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,
  `track_rsvps` tinyint(1) unsigned NOT NULL default '0',
  `allow_guests` tinyint(1) unsigned NOT NULL default '0',
  `rsvp_yes` mediumint(8) unsigned NOT NULL default '0',
  `rsvp_no` mediumint(8) unsigned NOT NULL default '0',
  `rsvp_maybe` mediumint(8) unsigned NOT NULL default '0',
  `recurr_id` mediumint(8) unsigned NOT NULL default '0',
  PRIMARY KEY  (`event_id`)
);

CREATE TABLE IF NOT EXISTS `phpbb_calendar_recurring_events` (
  `recurr_id` mediumint(8) unsigned NOT NULL auto_increment,
  `etype_id` tinyint(4) NOT NULL,
  `frequency` tinyint(4) NOT NULL default '1',
  `frequency_type` tinyint(4) NOT NULL default '0',
  `first_occ_time` bigint(20) unsigned NOT NULL,
  `final_occ_time` bigint(20) unsigned NOT NULL,
  `event_all_day` tinyint(2) NOT NULL default '0',
  `event_duration` bigint(20) unsigned NOT NULL,
  `week_index` tinyint(2) NOT NULL default '0',
  `first_day_of_week` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
  `last_calc_time` bigint(20) unsigned NOT NULL,
  `next_calc_time` bigint(20) unsigned NOT NULL,
  `event_subject` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default '',
  `event_body` longblob NOT NULL,
  `poster_id` mediumint(8) unsigned NOT NULL default '0',
  `poster_timezone` decimal(5,2) NOT NULL default '0.00',
  `poster_dst` tinyint(1) unsigned NOT NULL default '0',
  `event_access_level` tinyint(1) NOT NULL default '0',
  `group_id` mediumint(8) unsigned NOT NULL default '0',
  `group_id_list` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL default ',',
  `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,
  `track_rsvps` tinyint(1) unsigned NOT NULL default '0',
  `allow_guests` tinyint(1) unsigned NOT NULL default '0',
  PRIMARY KEY  (`recurr_id`)
);

CREATE TABLE IF NOT EXISTS `phpbb_calendar_rsvps` (
  `rsvp_id` mediumint(8) unsigned NOT NULL auto_increment,
  `event_id` mediumint(8) unsigned NOT NULL default '0',
  `poster_id` mediumint(8) unsigned NOT NULL default '0',
  `poster_name` varchar(255) collate utf8_bin NOT NULL default '',
  `poster_colour` varchar(6) collate utf8_bin NOT NULL default '',
  `poster_ip` varchar(40) collate utf8_bin NOT NULL default '',
  `post_time` int(11) unsigned NOT NULL default '0',
  `rsvp_val` tinyint(1) unsigned NOT NULL default '0',
  `rsvp_count` smallint(4) unsigned NOT NULL default '1',
  `rsvp_detail` mediumtext collate utf8_bin NOT NULL,
  `bbcode_bitfield` varchar(255) collate utf8_bin NOT NULL default '',
  `bbcode_uid` varchar(8) collate utf8_bin NOT NULL,
  `bbcode_options` tinyint(1) unsigned NOT NULL default '7',
  PRIMARY KEY (`rsvp_id`),
  KEY `event_id` (`event_id`),
  KEY `poster_id` (`poster_id`),
  KEY `eid_post_time` (`event_id`,`post_time`)
);

CREATE TABLE IF NOT EXISTS `phpbb_calendar_events_watch` (
  `event_id` mediumint(8) unsigned NOT NULL default '0',
  `user_id` mediumint(8) unsigned NOT NULL default '0',
  `notify_status` tinyint(1) unsigned NOT NULL default '0',
  `track_replies` tinyint(1) unsigned NOT NULL default '0',
  KEY `event_id` (`event_id`),
  KEY `user_id` (`user_id`),
  KEY `notify_stat` (`notify_status`)
);

CREATE TABLE IF NOT EXISTS `phpbb_calendar_watch` (
  `user_id` mediumint(8) unsigned NOT NULL default '0',
  `notify_status` tinyint(1) unsigned NOT NULL default '0',
  KEY `user_id` (`user_id`),
  KEY `notify_stat` (`notify_status`)
);


marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by marian0810 » Mon Aug 24, 2009 8:20 pm

bob_raid wrote:Can anyone here guide me how to start with the below SQL?
http://www.phpbb.com/community/viewtopi ... 0&t=588697


I'm having another issue that showed up when I turned debug on....

http://img132.imageshack.us/img132/8027/debugz.jpg
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1610: Undefined variable: edit_rsvps
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1610: Undefined variable: edit_rsvps
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3830: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3832: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3833: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3834: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
This happens:
- only with debug turned on.
- only on the "Manage event registration" tab.
- only when you've registered to an event, it doesn't happen when the list is empty.
- in both templates
- in both languages

What could it be?
You and me, time and space. You watch us run!

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

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by alightner » Mon Aug 24, 2009 8:32 pm

marian0810 wrote:
bob_raid wrote:Can anyone here guide me how to start with the below SQL?
http://www.phpbb.com/community/viewtopi ... 0&t=588697


I'm having another issue that showed up when I turned debug on....

http://img132.imageshack.us/img132/8027/debugz.jpg
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1610: Undefined variable: edit_rsvps
[phpBB Debug] PHP Notice: in file /includes/functions_calendar.php on line 1610: Undefined variable: edit_rsvps
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3830: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3832: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3833: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3834: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
This happens:
- only with debug turned on.
- only on the "Manage event registration" tab.
- only when you've registered to an event, it doesn't happen when the list is empty.
- in both templates
- in both languages

What could it be?
It's just an uninitialized variable I missed by cloning code... that section is unused as the if statement always evaluates to false... go to functions_calendar.php and on line 1610 you'll see:

Code: Select all

				if( $edit_rsvps === 1 )
				{
					$events['U_EDIT'] = $edit_rsvp_url . $row['rsvp_id'];
				}
Comment out or remove those lines.
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.

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by marian0810 » Mon Aug 24, 2009 8:38 pm

Thank you, that worked :D Any ideas about the multiple registration?
You and me, time and space. You watch us run!

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

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by alightner » Mon Aug 24, 2009 8:46 pm

marian0810 wrote:Thank you, that worked :D Any ideas about the multiple registration?
I'll have to play around with it.
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.

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by marian0810 » Mon Aug 24, 2009 8:52 pm

Thanks a lot! Didn't mean to sound impatient, sorry :oops:
You and me, time and space. You watch us run!

bob_raid
Registered User
Posts: 166
Joined: Thu Jan 17, 2008 12:53 am

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by bob_raid » Tue Aug 25, 2009 2:22 am

marian0810 wrote:
bob_raid wrote:Can anyone here guide me how to start with the below SQL?
http://www.phpbb.com/community/viewtopi ... 0&t=588697
Thank you. :)

lupo87
Registered User
Posts: 25
Joined: Mon Aug 17, 2009 4:18 pm

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by lupo87 » Tue Aug 25, 2009 9:51 am

i installed the mod,but when i open my forum i get white page lol o_O
any idea?

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

Re: [Beta] phpBB Calendar 0.1.0 (alightner)

Post by alightner » Tue Aug 25, 2009 12:01 pm

lupo87 wrote:i installed the mod,but when i open my forum i get white page lol o_O
any idea?
troubleshooting tip #7 wrote:Be careful when hand editing any of the files. You must use a proper text editor - especially one that supports UTF-8 without bom formatting for the language files. If you have a simple white space before the starting <?php in a file you may see strange errors, so the white space and character encoding you get from your text editing program are very important. I believe notepad is a common cause of problems like these. Textpad is an inexpensive editor that you may find useful: http://www.textpad.com/ I've also heard that there is a free editor called notepad++ (not to be confused with notepad) that will work well if you specify the proper settings when saving the 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.

Locked

Return to “[3.0.x] Abandoned MODs”