|
|
|
|
|
Myiasis
Full Member
  
Posts: 178

I'm a llama!
|
 |
Re:[Beta] Calendar Mod
« Reply #35 on: May 01, 2002, 10:34:58 PM » |
|
Quote from: opus on May 01, 2002, 10:06:38 PMGreat job Aaron! I have been looking for something like this for a while for my site. I had not even thought about making it a part of the board.
It works great but I would like to see one enhancement. I would love to add holidays without having to have a message attached. If there is already a way and I have not seen it please let me know.
Thanks!
Scott 
Hrm, that's a good idea, I wouldn't mind seeing that either. I'd be really simple to add, but some sucker would need to provide a list of holidays. I'll add that with some of the more prominent holidays. The holidays might be slighly american biased. What I'll probably do is add another table: <prefix>calendar_holiday and you can just add/remove rows from that table to make them show on the calendar. Will be easy to patch in if you are already running the calendar, just a few changes to Calendar.php. That's actually only gonna work for fixed holidays. Some of them float around... Easter? I think that's one of them. I'm not sure how to represent those. I can do something like if you enter a holiday and only provide a month and a day (no year) it will assume that holiday always happens on the same date. If you enter a year along with it, it will only display for that specific year, but you'd have to add the holidays by hand each year to make them show up, or preload the table with a few years worth of data for those particular holidays. Any thoughts on floating holidays?
|
|
|
Logged
|
|
|
|
|
|
Myiasis
Full Member
  
Posts: 178

I'm a llama!
|
 |
Re:[Beta] Calendar Mod
« Reply #38 on: May 02, 2002, 05:06:20 AM » |
|
I put up version 1.1 of the Calendar mod. The updated version is available at the same link: Calendar ModThere are instructions in the Readme.txt on how to update from version 1.0 to 1.1. There isn't that much to do: Replace Calendar.php, couple changes to ModSettings.php, add the prompts to <language>.lng and the database changes. Changes: Added a title to the calendar so it won't show up as the URL in the browser's title bar. Changed the way the Current Day is displayed. Does it like vBulletin does it. This looks differnet in all the browsers. Looks good in IE, looks sorta right in Netscape, but the colors are a little dark. In Opera it appears as a black outline around the day. Removed all the prompts from the source and placed in language file. Added some color selections to the Mod Settings screen. Added holidays. There are a bunch of sample holidays in the Readme.txt file. By default there is no prompt in the calendar for the holidays (like "Events:" or "Birthdays:"), but if you want one, you can add it in the <language>.lng file (there's a comment in the .lng file). Used vorapoap's idea to use short month names in the Prev/next links.
|
|
|
Logged
|
|
|
|
|
|
|
|
|
|