Advertisement:

Author Topic: Calendar mods  (Read 219508 times)

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #20 on: July 07, 2006, 09:30:47 AM »
Nope. And I don't know if there ever will be one - those who I've asked for help seem to have forgotten....

cheers,
Chris

Did anybody make a mod pkg for this? I'd like it if it exists.

Thanks,
Allison


Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Calendar mods
« Reply #21 on: July 07, 2006, 09:52:05 AM »
Chris,

I have not forgotten. I have just been overwhelmed with a case of "life" (who would've thunk it)

My real-life boss is on leave, so I am holding down both her job as well as all my own tasks... :(
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #22 on: July 08, 2006, 09:31:10 AM »
:)... I'm always amused by folks who discover just how hard "life" really is. I have a wife, three kids (one still at home) and a grandkid, I'm the PM of seven programmers (i.e. seven egos) on a project that debuts at the NAMM show on the 14'th, I haven't seen a vacation in years and I never miss a New Moon weekend with my astro buddies. Don't talk to me about "life".... :)

Psst: old school organizational tip: Get yourself some of those small pocket sized spiral-bound notebooks (the paper kind, not electronic). They come in packs of 10 for about 3 bucks. Write it down and you'll be amazed at how much more you accomplish. I stopped trusting my memory after enjoying the 70's a bit too much...

cheers,
Chris

Chris,

I have not forgotten. I have just been overwhelmed with a case of "life" (who would've thunk it)

My real-life boss is on leave, so I am holding down both her job as well as all my own tasks... :(

Offline cyberbillp

  • Newbie
  • *
  • Posts: 6
Re: Calendar mods
« Reply #23 on: August 07, 2006, 08:24:13 PM »
I don't have a "mod" package for my code. I'll make the code available to anyone that wants to make a "mod" package....

Chris

Hi Chris,

Is your mod for recurring calendar events available for 1.1 RC2?

This is all I need, I don't need the additional stuff in kindred's mod (also yet to be released)

Cheers
Richard
Sydney, Australia

I'd like to try and make a package from your code. Where can I get your post.php and calendar.php files?

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #24 on: August 09, 2006, 10:11:56 AM »
Check your PM's....

I'd like to try and make a package from your code. Where can I get your post.php and calendar.php files?

Offline satterwc

  • Newbie
  • *
  • Posts: 3
  • Gender: Male
    • Angry Dragon Guild (World of Warcraft)
Re: Calendar mods
« Reply #25 on: August 25, 2006, 01:04:20 PM »
I keep doing a search on the forums here every couple of weeks in hopes that this has been packaged by someone. The lack of recurring events is killing me since we schedule daily activites, some that happen every week. Arrggh!! ;)

Will a small donation help get this moving?

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #26 on: August 26, 2006, 07:07:49 AM »
I understand. I have gotten numerous requests for this feature via email, but so far no one has stepped up to the plate... Send a note to the SMF development staff - maybe they will get involved if they know there are enough folks out there that want this type of mod?

cheers,
Chris

I keep doing a search on the forums here every couple of weeks in hopes that this has been packaged by someone. The lack of recurring events is killing me since we schedule daily activites, some that happen every week. Arrggh!! ;)

Will a small donation help get this moving?

Offline farzad

  • Semi-Newbie
  • *
  • Posts: 72
Re: Calendar mods
« Reply #27 on: August 30, 2006, 02:43:25 PM »
why chris's modifications wouldnt be built into the default build is beyond me.

:(

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #28 on: February 02, 2007, 04:23:13 PM »
Good news, and more good news:

1) I have updated my repeating events and moon phase code (for the Calendar) to support SMF 1.1.1.

2) I finally sat down and wrote a mod package for this! It needs beta testing - anyone?

cheers,
Chris Curran
 

Offline ooop

  • Semi-Newbie
  • *
  • Posts: 49
Re: Calendar mods
« Reply #29 on: February 02, 2007, 05:20:07 PM »
sure - i'm free to test it (inside and out) --- where should i begin?

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #30 on: February 03, 2007, 12:31:50 AM »

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #31 on: February 03, 2007, 11:19:28 AM »
I uploaded the mod to the system last night:

http://custom.simplemachines.org/mods/index.php?mod=655

It awaits approval from those who do that sort of thing here....

cheers.
Chris

Offline ooop

  • Semi-Newbie
  • *
  • Posts: 49
Re: Calendar mods
« Reply #32 on: February 03, 2007, 02:43:46 PM »
GREAT WORK!!!

I've just been checking it out just a little (so far).
on the surface it functions near 100%...

one issue is while this mod is installed, when entering to edit an existing event > the edit form does not reflect original dates - and so dates need to be re-entered upon every edit (not the case without this mod)

there seems to be some other issues too, but i gotta double check 'em
- like at sometime existing events that were spanned lost their span somehow (during unistall or reinstall)
- we probably can swing more efficient use of DB while installed
- i also wonder about leaving the DB modified after uninstall (not the best thing)
- questionable if such is a real "issue" (i can't reproduce such easially - maybe such is due to my own customizations) but one time the moon cycles were mixed in with upcoming posted events on the board index (didn't look good)

[ click for full size ]

note: this issue might be an effect caused by an interaction with some not fully dev'ed mods that i'm currently working on < reason why i use multible test beds - i'm checking to see if i can get this effect on a default smf install (so far - so good)...

the "issue" i mentioned above sorta intergrates with a new feature request and the following feature request below - it might be nice to have the option to display current month moonphases in its own stat box on the board index (homepage)

basically the mod does two unrelated things > makes events repeatable and displays moon phases - i think once installed displaying moonphases should be optional - i know it was one of the driving factors behind the mod's creation, but the repeatable aspect is strong enough - the repeating event aspect is inheirently optional (during post creation) so that's fine...

now consider this is feedback after a quick look (on a few test beds) - i'll be looking much deeper into this in the coming days (weeks, months ;) ) - i'm also gonna check out what other calender mods do (danny just came out with one) and see if any have some stuff here or there that might help - finally, all this stuff is right up my alley, so when i mention "issues" or "feature request" i mean either i or we can look into such, i'm not passing all the work back to you - unless you're greedy :)

ooop

Edit to post: modified to include image of effect on info center
« Last Edit: February 03, 2007, 03:24:03 PM by ooop »

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #33 on: February 03, 2007, 03:10:07 PM »
GREAT WORK!!!

Thanks!

Quote
one issue is while this mod is installed, when entering to edit an existing event > the edit form does not reflect original dates - and so dates need to be re-entered upon every edit (not the case without this mod)

I just checked my virgin install and it seems to be working as I expect. All previously entered dates show up as I expect them too.

Quote
- like at sometime existing events that were spanned lost their span somehow (during unistall or reinstall)

I tossed out that "span" logic as it is outdated in this methodology. Yea, it probably breaks old events, but I didn't care. :)

Quote
- we probably can swing more efficient use of DB while installed

Huh? Like what?

Quote
- i also wonder about leaving the DB modified after uninstall (not the best thing)

SOP. Read this: http://www.simplemachines.org/community/index.php?topic=117819.0

Quote
- one time (and i can't reproduce such easially) the moon cycles were mixed in with upcoming posted events on the board index (didn't look good)

Not sure what you mean here....

Quote
the last issue i mentioned above sorta intergrates with a new feature request and the following feature request below - it might be nice to have the option to display current month moonphases in its own stat box on the board index (homepage)

I don't disagree, however, this is the first mod I've ever packaged up, and as you will note, it's HUGE! As you'll also note, I've asked for help with packaging this mod for close to a year now and no one ever stepped up to the plate, so I had to plow through it last night guessing at what the best practice was...

Quote
basically the mod does two unrelated things > makes events repeatable and displays moon phases - i think once installed displaying moonphases should be optional - i know it was one of the driving factors behind the mod's creation, but the repeatable aspect is strong enough - the repeating event aspect is

:) I can see how most would consider it "unrelated"..... The reality is that I needed to upgrade our astro club forum from RC2 to 1.1.1, and I didn't want to hand code it (yet again). So, I sat down yesterday and gutted through the mod process. Since our club is an "astro" club (see my homepage), the Moon Phase status is darn near as important to us as the repeating events! I live for New Moon weekends!

Breaking this mod into two separate packages is probably the right thing to do at some point, but right now since I'm rowing alone, it's going to be one package.

Quote
so when i mention "issues" or "feature request" i mean either i or we can look into such, i'm not passing all the work back to you - unless you're greedy :)

The more the merrier.... I'm a (recently) retired programmer and way past caring about "glory". I really don't want to get bogged down with a lot of feature requests that I don't have time for. Having time for my family and telescopes is what I care about.

cheers,
Chris

 
« Last Edit: February 03, 2007, 03:13:57 PM by Chris Curran »

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #34 on: February 03, 2007, 04:03:14 PM »
ooop,

One feature that is not included in this mod is "exceptions". For example, our astro club has regular meetings on the fourth Fri of every month, *except* in Nov and Dec. I have some prelim code for this, but it's not in the mod. Let me know if you need something to do... :)

Chris

Offline ooop

  • Semi-Newbie
  • *
  • Posts: 49
Re: Calendar mods
« Reply #35 on: February 03, 2007, 05:57:41 PM »
Re: "exceptions" and other stuff i had mentioned...

yeah - i saw all the neglect you had experienced on this project, kinda tragic - however, i personally don't forget/neglect things so easily and so > yeah, you can kinda think of me as on your team now - and not sooo "relaxed"...

i'll return shortly to address a few more of the things you touched on, but actually, i wanted to bring up another feature request (and don't forget, all my feature requests i will attempt to fulfill personally ;) ) - i thought of mentioning this in my last post > basically i think an added feature of a different kind of "exception" would really add to this mod's flexibility > a kinda "repeat template" where once a repeat item has been added then each appearance of such can be individually appended/edited...

example:
if say each monday there was a lecture listed - then each individual listing can be uniquely appended to display lecture's topic, speaker, and what not:

Feb  4 - Lecture: How SMF was started
Feb 11 - Lecture: Who's who in SMF team
Feb 18 - Lecture: SMF features
Feb 25 - Lecture: How to break SMF

anywho - how to figure out how to do stuff like that (AND make such user friendly) is one of my strengths (spelling isn't ;) ) - i'll look into the type of "exceptions" you mentioned as well...

and yeah i saw that within the Mod Guidelines
Quote
Must leave nothing more behind on uninstall then language strings, database tables, and database rows
still don't like it - but it's not really a big issue - just wondered...

lot's more to cover -- i'll be back - soonish - perhaps by monday i'll even have solutions for some things...

just mainly wanted to express i'm not likely to leave you/project high and dry.
« Last Edit: February 03, 2007, 06:17:34 PM by ooop »

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #36 on: February 03, 2007, 06:56:10 PM »
Quote
Feb  4 - Lecture: How SMF was started
Feb 11 - Lecture: Who's who in SMF team
Feb 18 - Lecture: SMF features
Feb 25 - Lecture: How to break SMF

Currently, 'calendarInsertEvent()' (in Sources/Calendar.php) writes a single record to the db. Let the user click something that tells the code to write a record for each event to the db....


I added two options that control the display of the Moon Phase. Look under 'Features and Options', 'Layout and Options' in admin.

The updated package is here: http://www.planetcurran.com/smf/repeatEvents_1_1.zip

Uninstall 1.0 first..... Good thing the db doesn't get reset when you uninstall - you'd lose any repeating events you've already entered!

cheers,
Chris
 

Offline ooop

  • Semi-Newbie
  • *
  • Posts: 49
Re: Calendar mods
« Reply #37 on: February 03, 2007, 07:00:33 PM »
OK - just tripled checked, on a 2nd virgin install....

while this mod is installed, when entering to edit an existing event > the edit form does not reflect original dates - and so dates need to be re-entered upon every edit (not the case without this mod)

note event date of Feb 7

when i click the red asterisk to edit the event i get the following

notice how it reflects earliest date of smf's default install > January 1st 2004 - instead of event's actual date of Feb 7 2007

this effect takes place on 'one time events' (have not checked other type of events yet) - this effect is caused by the mod.

i shall get to the bottom of this effect ;)

Offline Chris Curran

  • Jr. Member
  • **
  • Posts: 195
  • Gender: Male
    • Home
Re: Calendar mods
« Reply #38 on: February 03, 2007, 07:05:19 PM »
this effect takes place on 'one time events' (have not checked other type of events yet) - this effect is caused by the mod.

i shall get to the bottom of this effect ;)

I just tried to dup and it still works fine here.... I wonder what we're doing diff.... After you enter the event, can you please chk the db raw to see if it's being written to the db correctly?

Chris
 

Offline ooop

  • Semi-Newbie
  • *
  • Posts: 49
Re: Calendar mods
« Reply #39 on: February 03, 2007, 07:15:00 PM »
ahh - i didn't see your last post up there
LOL! > "you'd lose any repeating events you've already entered!" < yeah, i thought bout that - my "wonderings" are pretty unfounded > given the size of smf's DB - but if it was more complex then such would be an issue...

i'll check out 1.1, thx ;)

i'm gonna PM you info to my default install so you can check out the effect i speak of (went up minutes ago) -- gimme a few minutes to type the PM > i type slow...