Closed (fixed)
Project:
Event
Version:
5.x-2.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2005 at 03:30 UTC
Updated:
27 Dec 2005 at 00:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commentedwow, big enough screen shot, had to do some scrolling on my little laptop ;)
just to double check the basics:
* you created the database tables
* you enabled the event module
* you've gone to /admin/node/configure/types and chosen to "show in event calendar" for your sample event node
you mentioned trying it with the page node. can you enable the basicevent module, allow it to be shown in the calendar and see if that works?
Comment #2
drewish commentedso i don't cause undue confusion, that should have been table, not tables.
Comment #3
Waldemar commentedI experience the same problem. Will try debugging and post again if I can find anything.
Comment #4
gte451f commentedThe basic event has the same problem, though I noticed that when I try to create a "Basic Event" and haven't set it to show up in the calendar I get a message telling me to fix that.
Here is a screen shot of creating a new basic event.
Comment #5
Waldemar commentedThe error has to do with the last checkin on node.module (Rev 1.559), as node_invoke_nodeapi($node, 'form'); is gone now. (The CVS Comment : obliterate nodeapi op form in favor of the forms API's way of doing things. Tested with help from webchick.).
I'll try to fix it and submit a patch if I have time to...
Comment #6
Waldemar commentedAlso see: http://drupal.org/node/39778
Comment #7
Waldemar commentedThe following should fix JUST THE APPEARANCE of the date fields. The execution and validation of the form is not done correctly, but I don't have time to fix those today :)
Comment #8
Waldemar commentedSorry about this, ignore the file before. That should be the right one.
Comment #9
drewish commented[Can we try to keep the title set to something useful?]
Waldemar, good catch. I tried to make some improvements on your patch. I updated hook_nodeapi() to accept the current parameters. That then caused some tweaking to get the previewing and ical items working. right. I also removed some duplicate tests and tried to streamline it a bit.
Comment #10
drewish commentedRe-rolling to make sure it applies cleanly.
Comment #11
drewish commentedLooks like I lost a line on that last patch.
Comment #12
drewish commentedIt looks like drumm committed part of this. I've rerolled my patch to get the rest.
Comment #13
drewish commentedhold off on that last patch it lost
$node = $form['#node'];which is kind of important.Comment #14
drewish commentedOkay, here's a new patch based on drumm's changes.
It looks like the hook_nodeapi's execute op is now submit so the patch changes that. I've also added a weight to the timezone so it sinks below the end date.
Along with the previous changes:
* updated hook_nodeapi() to accept the current parameters...
* ...resulting tweaks to get the ical items working
* combined validate and execute cases to get previewing working
Please try it out.
Comment #15
Waldemar commentedThanks a lot for the patch! It works fine so far, but the dates one sets in the node don't get updated (instead the current date and time is taken). I fixed this by adding the following lines:
to the top of the event_nodeapi cases 'insert' and 'update'. (The modified node seems to be reset for each case...)
Comment #16
drewish commentedWaldemar, you shouldn't need those extra lines. Can you make sure that you're running the latest version of Drupal from CVS?
Comment #17
drummLooks like a good code cleanup +1 (watch out for the DOS line endings when you apply this)
I do see an extra line of commented debug code which should be removed:
Comment #18
killes@www.drop.org commentedremoved debug code, committed.
Comment #19
drewish commenteddrumm, good call on that debug code. i pulled that, clarified a comment or two, and removed a duplicate test in the event_nodeapi 'delete' case.
Comment #20
killes@www.drop.org commentedPlease re-roll. :p
Comment #21
drewish commentedah, never mind. i'll roll the comment fixes into a patch with some others i've collected.
if you wanted to remove that extra test around the delete case, that'd be good.
Comment #22
drewish commentedsince you asked ;)
Comment #23
killes@www.drop.org commentedThanks. Neil will look at the other two pendign patches later.
Comment #24
(not verified) commented