Jump to content


[Snippet] calSnippet


  • You cannot reply to this topic
29 replies to this topic

#21 cathode

    Loves Etomite Forums!

  • Staff
  • 648 posts
  • Gender:Male

Posted 28 March 2007 - 04:29 PM

View PostOliver, on Mar 28 2007, 12:15 PM, said:

I was able to test the changes Cathode suggested and after validating added a few more. Also updated the comments. I've uploaded a newer version. You can get it here

I have been fiddling with this today, trying to figure out php :) no luck yet. I'll report back if I can make some worthwhile changes.

#22 Stevio

    Etomite Forum Newbie

  • Member
  • 26 posts

Posted 05 June 2007 - 01:49 PM

View PostToni, on Mar 22 2007, 11:42 AM, said:

@Oliver

do you want to get the modified code?

Now it works perfect on one of my (german) websites.

CU
Toni

I would like to have the modified code. I tried myself the set locale and changing the ". date" into ". strftime" but it fails for me.
Thanks :)

#23 bigSlim

    Etomite Forum Newbie

  • Member
  • 28 posts

Posted 29 June 2007 - 03:14 PM

Hi all,

Love this snippet its perfect for what im looking to do!

One thing though? Are we any further forward with allowing the calendar to show events spanning over more than one day?

I know theres a temp solution with using the weblinks but the thing is, I have an event that runs over a month and a half and it seems my client would have to put in 45 separate weblinks for it show the duration of the event :(

Would appreciate an update on this, if anyone has one...

Thanks in advance!

bS

#24 mike_e

    Etomite Forum Newbie

  • Member
  • 42 posts

Posted 11 September 2008 - 01:20 AM

I'm trying to get this snippet working. It seems to be pretty easy but I'm still having problems. I get the following error.

Fatal error: Cannot redeclare error() (previously declared in /home/content/m/t/m/mtmadmin/html/CHILL/index.php(508) : eval()'d code:93) in /home/content/m/t/m/mtmadmin/html/CHILL/index.php(508) : eval()'d code on line 93

Any help would be greatly appreciated.

Thanks Mike.

#25 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 11 September 2008 - 05:49 AM

This needs a logic wrapper for a function which is declared earlier in the snippet but is used at line 93. Find the function mentioned here and then wrap it in a
if(!function_exists('function_name_here')){
function function_name_here{
...this is the function code...
}
}
This will allow multiple uses on a page without the re-declaration errors- although I'm not familiar with this snippet and I can't say why you get the error and others don't- but I would definately be looking at this too.

#26 mj187

    Etomite Forum Newbie

  • Member
  • 5 posts

Posted 19 November 2009 - 09:32 PM

I know this has not been added to for over 2 years, but I have just added this snippet. However I have events in the folder in November 2009, but the calendar just shows up with October 2009 and does not move forwards (or backwards)..

On the off chance, any ideas what could cause this??

Many thanks!



#27 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 19 November 2009 - 10:10 PM

View Postmj187, on 19 November 2009 - 09:32 PM, said:

I know this has not been added to for over 2 years, but I have just added this snippet. However I have events in the folder in November 2009, but the calendar just shows up with October 2009 and does not move forwards (or backwards)..

On the off chance, any ideas what could cause this??
I just checked the demo calendar link provided by cathode on the first page of posts and t appears to be working as expected... I'd have to download and install to test further...

Do you have a link to the calendar in question...???

#28 mj187

    Etomite Forum Newbie

  • Member
  • 5 posts

Posted 23 November 2009 - 10:33 PM

View PostRalph, on 19 November 2009 - 10:10 PM, said:

I just checked the demo calendar link provided by cathode on the first page of posts and t appears to be working as expected... I'd have to download and install to test further...

Do you have a link to the calendar in question...???


Thanks for your reply - http://www.uckfieldf...ndex.php?id=653.

It shows November, but does not move forwards..

#29 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 23 November 2009 - 11:15 PM

mj187, two things to try, both related to caching... Are you using a non-cacheable snippet call for the calendar...??? [!calSnippet!] bypasses caching whereas [[calSnippet]] makes the snippet cacheable... Dymanic snippets should use non-cacheable snippet calls... If that doesn't work then make sure the document itself is not set to be cacheable...

#30 mj187

    Etomite Forum Newbie

  • Member
  • 5 posts

Posted 24 November 2009 - 07:19 PM

View PostRalph, on 23 November 2009 - 11:15 PM, said:

mj187, two things to try, both related to caching... Are you using a non-cacheable snippet call for the calendar...??? [!calSnippet!] bypasses caching whereas [[calSnippet]] makes the snippet cacheable... Dymanic snippets should use non-cacheable snippet calls... If that doesn't work then make sure the document itself is not set to be cacheable...


Thanks Ralph, did both things you suggested and it is working fine now!

Thanks again for your quick support.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users