Contact Lifestream



Easily Simple Calendar

ES Calendar: One of those small but vital components that can help make a page really great. While there are more advanced scripts out there, none are as stylish and easy to use and integrate. I have been using the script myself for some time now. But I kind of forgot to check for updates and obviously I was thrilled to see that the script had already progressed to v4, adding events, sql support, overLib popups and a higher degree of customization.

So far I have only replaced the calendar on some of the pages because there is a slight problem with browsing the months. I.e. the back and forward buttons in the demo (features that I’d like to have but could easily remove of course) rely on sending php variables in the URL like “index.php?mo=3&yr=2004“ for example. And that only works properly if the URL ends in ”file.ext“ or ”/“. So what I did was to read the PHP_SELF and figure out a way to add a trailing slash when needed. Obviously that makes an URL like ”…/index.php“ become ”…/index.php/“ but that is really no problem.
A much bigger problem is with those pages that already have links that include variable data. Like the Nucleus archive (”index.php?archivelist=1“). I’m gonna have to clean that up without adding too much code, avoid unnecessary slashes and append variables like ”index.php?archivelist=1&mo=3&yr=2004“. Shouldn’t be that hard. The ”?” in the url is a dead giveaway.



OpenDNS

Use OpenDNS

Worthy Causes