Top

CalliCalendar

Please Register to submit score.
Average Score  7.3
Scores Submitted  3
Date Added  Aug 22, 2007
Last Updated  Sep 10, 2007
Tags  big  box  calendar  dialog  large 

Introduction

This is a calendar dialog script. You open the channel popup menu, click 'CalliCalendar' enter a year, which will open the Calendar, months are arranged into tabs, each with a respective amount of buttons, indicating the dates within that month. Click a date to open a second dialog, where you can enter information etc for that day, and click submit. This info is written to an .ini file. A file is created for each year, and they are divided into sections, named after the months, and each month has a list of items, indicating the dates, and each value is the information entered for that day. To determine whether the 29th of February is to be shown, I wrote an identifier called $leapyear (Usage: $leapyear(year) ). The identifier is included. There is a function called Auto-Alert that will automatically bring up the box for the current date when mirc is loaded (initialization script warning should be turned off for convenience), if this option is enabled, it can be changed from the channel menu. There is a 5-Day-Calender part, that will have buttons for the next 5 Days, so you can check upcoming dates. On the main Calendar, days that there is information written for will have an asterisk(*) symbol, so you will know which days you have things scheduled for, without clicking all the buttons.

Any feedback will be greatly appreciated and any ideas for improving will be considered.

I hope you like it.

In order to add the 5-Day-Calendar i added the $specday identifier, if no parameters are provided, it will return the name of the current day(exactly like $day), but if a parameter is provided, N days will be added, and it will return that day, for example, if the day is Friday, $specday(1) will return 'Saturday', $specday(-1) will return 'Thursday' and $specday(4) will return 'Tuesday'. I also added $mdays() which will return the amount of days in the month N (the month must be provided as a number from 1-12) in year M. (In the format of $mdays(N,M))

Grab the Code

Comments

  (24)  RSS
mountaindew
Comments: 1,422
 
mIRC Snippet:  CalliCalendar
Posted on Aug 22, 2007 2:44 pm
good job on the dialog

but when i put stuff in it, how do i see it?
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 22, 2007 2:47 pm
You can click the same button and it'll come up again
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 22, 2007 2:56 pm
Fixed a bug whereby the year had to be 4 digits long (don't know why you would want any other year, but who am I to tell you what to do)
mountaindew
Comments: 1,422
 
mIRC Snippet:  CalliCalendar
Posted on Aug 22, 2007 3:04 pm
i think you should add something to show all upcoming events

May 21: Go to this place
June 27: Visit Grama

you know what im saying? cuz a calenders so u dont forget, so u may forget which date to click!
napa182
Comments: 797
 
mIRC Snippet:  CalliCalendar
Posted on Aug 22, 2007 4:44 pm
Nice work looks good
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 2:08 am
Good Idea Mountaindew, I'll try to add something like that.
Olliegod
Comments: 77
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 3:17 am
As far as determining if it's a leapyear, you can use the if-then-else operator // For example: if (4 // %year) return $true
The // operator determines if $v2 is a multiple of $v1. Also I think there would be a more efficient way of displaying the buttons for the days of different months, Such as creating 31 buttons and having them all hidden, then using a drop menu to select a month and then unhiding the correct number of buttons. This would save alot of code in the dialog.
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 3:53 am
I have changed $leapyear and added a 'Done' Button. I have also added a function where the current day's dialog will appear when mIRC is loaded (The Initialization script warning should be turned off for convenience). The auto-alert option can be turned off from the channel menu. I hope to add an alert system that will tell you your events for the next few days at some point. As for shortening the code, I personally prefer the tabs, but I agree that the code is too long, I have an idea involving creating the tabs but not specifying a tab for the controls, but instead hiding/showing the necessary buttons when a tab is clicked. This way I will only need the 31 buttons but will keep the tabs, I will try to implement this at some point.
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 5:32 am
I did it, so now the code is considerably shorter, yet works and looks the same as before.
mountaindew
Comments: 1,422
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 11:27 am
godd job, i think you should add a tab though, that shows all of the upcoming events, not just tell you when it's the day :P
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 23, 2007 1:34 pm
Yes, thanks for your idea, I am currently working on an addition to facilitate that.
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 24, 2007 8:54 am
5-Day-Calendar has been added.
T7Davey
Comments: 73
 
mIRC Snippet:  CalliCalendar
Posted on Aug 24, 2007 9:39 am
Nice!
T7Davey
Comments: 73
 
mIRC Snippet:  CalliCalendar
Posted on Aug 25, 2007 5:38 am
Why not make it when you submit something, on the main calender under the number have something like: Schedule or something. Could be very useful. :)
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 26, 2007 7:12 am
Updated again, now all the days with information written for will have a little asterisk(*) next to the number. I also discovered a spelling mistake in the names of the files, it wrote them as CalenderYEAR instead of CalendarYEAR. I corrected this but all the Calendar files will have to be corrected (in the mIRC directory).
T7Davey
Comments: 73
 
mIRC Snippet:  CalliCalendar
Posted on Aug 26, 2007 8:27 am
Good work :) Works with a charm
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 26, 2007 1:22 pm
XD Thanks
T7Davey
Comments: 73
 
mIRC Snippet:  CalliCalendar
Posted on Aug 31, 2007 2:21 am
One thing, the script floods me when I open the 5-Day Calaner.
Quote:

hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Aug 31, 2007 9:03 am
Yes sorry about that, I forgot to take it out (i put it in for testing ). I have removed it now.
Akishoot
Comments: 134
 
mIRC Snippet:  CalliCalendar
Posted on Sep 2, 2007 1:13 pm
Ohh I like this one. :) Nice work Callison1 :)
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Sep 2, 2007 1:34 pm
Thanks
Callison1
Comments: 130
 
mIRC Snippet:  CalliCalendar
Posted on Sep 10, 2007 9:33 am
Fixed a bug where at certain points, if the day number only had 1 digit it would appear as 01st for example, so the wrong dialog would open.
dataprofile
Comments: 43
 
mIRC Snippet:  CalliCalendar
Posted on Sep 10, 2007 10:15 am
Nice job on this. I really could make use of this. But, how about redesigning the dialog a bit? Instead of having all of those buttons, you could perhaps make a list for each one?
LordHawk
Comments: 18
 
mIRC Snippet:  CalliCalendar
Posted on Dec 28, 2007 2:56 pm
i think the code is nice the way it is. However I would add a Feature for people to be able to display what is in the calendar. I run an online magic the gathering league and i think the calendar is nice for us to input our tourneys we will be running. If you dont mind i would like to make a few edits.

Please Register or Login to start posting comments.
Bottom