Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I click on an event and it comes up in a colorbox window, then I close the colorbox popup window and return to the calendar. But now the calendar is duplicated on the page. Actually, every time I click on an event it adds another instance of the calendar to the main page -- so I might have multiple calendars trailing each other. Why is this happening? Do you have any solutions?
Here is a screenshot showing one calendar with the top of the next one below it.
Comment | File | Size | Author |
---|---|---|---|
#6 | fullcalendar-1039912-D6.patch | 749 bytes | tim.plunkett |
#4 | fullcalendar-1039912-4.patch | 732 bytes | tim.plunkett |
screenshot_30.jpg | 236.29 KB | tchopshop |
Comments
Comment #1
tim.plunkettWhen Colorbox closes, it re-runs the fullcalendar script.
We need to add a .fullcalendar-processed, and check for it.
Comment #2
tchopshop CreditAttribution: tchopshop commentedDo you think the multiple instances of Full Calendar on a page are what would be causing a "slow script" error in my browser? Because that has happened to me several times, forcing me to have to force quit my browser, since it completely stalls trying to run the javascript.
Comment #3
tim.plunkettVery likely, especially if you have a lot of nodes.
This will be backported rather quickly, but the development is happening in D7 at the moment.
Comment #4
tim.plunkettWow D7 is awesome, it includes the once() library.
This is going to be a pain to backport.
Comment #5
tchopshop CreditAttribution: tchopshop commentedThank you for all your work...
How long do you think I need to wait for this backport? (I'm not a programmer, or I would help you!!!)
I really don't want to have to go back to the regular calendar module... but my client's site goes live at the end of this month.
Comment #6
tim.plunkettLess than an hour is pretty good...
Comment #7
tchopshop CreditAttribution: tchopshop commentedWow! you are an amazing man!
Comment #8
aspilicious CreditAttribution: aspilicious commentedBoth are rdy to go!
Comment #9
tchopshop CreditAttribution: tchopshop commentedYou are so quick!
But maybe I am doing something wrong...
I applied the patch, but it is still doubling the calendar on the page. Is there some secret configuration I'm missing now?
And maybe I'm mistaken, is this patch attempting to solve the doubling problem, or another issue with colorbox (like showing the full page instead of just the content)? I had solved that problem by creating a blank page template for colorbox that only showed content, with no page surround.
Comment #10
tim.plunketttschopshop:
The full page part is being handled in #910494: Colorbox version and settings.
Once you apply the patch, and clear the cache, this should work.
Can you try it again and make sure?
admin/settings/performance to clear the cache.
Comment #11
tchopshop CreditAttribution: tchopshop commentedYes, I definitely cleared the cache... several times...
Do you want me to give you any more info? I wonder if it's some other conflict.
:(
Comment #12
geerlingguy CreditAttribution: geerlingguy commentedFixed the problem for me - applied the patch to the latest FC stable release (D6 branch), cleared all caches, and the problem went away completely.
Comment #13
tchopshop CreditAttribution: tchopshop commentedMaybe I should start again with a new installation. But I'm just double checking in case I missed something... do I just apply the patch from #6 by itself, or do I apply this patch in addition to another one (like the one from #4)?
Comment #14
aspilicious CreditAttribution: aspilicious commentedonly 6 is needed. Do you have an online link to the calendar?
Comment #15
tchopshop CreditAttribution: tchopshop commentedHi there, I'm testing it locally. But maybe I will move it to the test server, if it comes down to that. But here's some more information -- the version I'm applying it against is from some time in the fall -- November, I think.
And when I update the code to the most recent version to get the file to which the patch applies, all our events disappear as soon as the fullcalendar script executes.
In November when we implemented Full Calendar we patched the module to support repeating events, color-coding, and our simplified template for Colorbox (because we couldn't use the module with it bringing in a full page inside the Colorbox). All those patches no longer work with a new version of the code.
Not sure what to do next, but maybe I should set up a new trial site with new code, to see if we can get the functionality we need, before attempting to bring it into our system.
thank you for your help, I hate to be such a burden....
Comment #16
tim.plunketttchopshop, have you ever been on Drupal IRC? Sign on tomorrow if you can and ping me, timplunkett.
Repeating dates and color-coding are both currently possible, and the simplified Colorbox is coming soon.
This is why you never hack a module! :) Feature requests are your friend.
Comment #17
tim.plunkettCommitted to all three branches.
http://drupal.org/cvs?commit=489484
http://drupal.org/cvs?commit=489486
http://drupal.org/cvs?commit=489488
Comment #18
tchopshop CreditAttribution: tchopshop commentedthank you for helping Tim!