I added a calendar to my "badges" menu on the top left. This is a JavaScript-based calendar that I obtained from Matt Kruse's JavaScript Toolbox. I don't know if I'm satisfied with the green background on the "cal" image, but it'll have to do for now. I've noticed a couple of issues in Safari (too far down and too the right, and doesn't go away like it should), but it seems to work pretty good in IE/Mozilla. I tried disabling dates > today, but couldn't get it to work (yeah, I tried the code from Matt's site).
I don't know if it's worth the effort of talking to Roller's CalendarModel to get the actual days that somethings been posted. However, it would probably be fairly easy to generate a JavaScript array for the current month, rather than an HTML-based <table>.
If you're interested, here's how you can add this sucker to your Roller weblog:
1. Add the following code to the <head> of your template.
<script type="text/javascript" src="pathToScript.js"></script>
<script type="text/javascript">
var cal = new CalendarPopup("calDiv");
cal.setReturnFunction("showDate");
document.write(cal.getStyles());
// Function to get input back from calendar popup
function showDate(y,m,d) {
var day = y+LZ(m)+LZ(d);
location.href = "$ctxPath/page/$userName/" + day;
}
</script>
2. Add an empty, invisible div anywhere w/in the <body> of your template (I put mine at the bottom).
<div id="calDiv"
style="position: absolute; visibility: hidden"></div>
3. Add a link (can contain an image) to invoke the calendar popup.
<a href="?" name="calAnchor" id="calAnchor"
onclick="cal.showCalendar(this.id); return false">
Calendar</a>
You can download the calendar.js file from this site, but please don't link to it - I have enough bandwidth problems as is (and I'm going to move it to a new theme name). Enjoy!
I spotted some cool DHTML-enhanced themes on FreeRoller today: My own confusion and A Corporate Eejit. Nice work gents - maybe we should add these suckers to the stock list of themes. These themes are a great example of how customizable Roller is and how it's just HTML, so pretty much anything is possible (that is possible on a web page). I'd be willing to bet you could even use Flash and use the RSS Feed for your XML input.
I'm thinking about adding a small DHTML enhancement to Roller. Basically, I'd like to show
users a small picture of the theme (using these pictures) when signing up. Let me know if you think this is worth the effort and if so, I'll create a JIRA issue (uh oh, looks like we lost our bug database!).
According to the struts-user mailing list, the Struts Dev Team is going to try and release 1.1 Final this weekend! Sweet!
From: Ted Husted
Subject: Re: [ANNOUNCEMENT] Struts 1.1 Release Candidate 2 released
Date: Wed, 25 Jun 2003 03:30:47 -0700
-------------------------------------
Just a note on the RC2 status.
Martin posted the release vote for FileUpload on Monday, and there
are already 3 binding +1s. <yeah!/>
We've one outstanding Bugzilla ticket against RC2, which we should
be able to either resolve or postpone. Given the imminent release
of FU 1.0, I plan to post the Struts 1.1 Final Release vote
tomorrow, so that we can roll it out on June 29. <double-yeah!/>
-Ted.
This doesn't mean much to me since the current RC2 release works fine for me (if I didn't, I'd use a nightly). However, it's cool that this is finally being released. It's too bad it took so long - such is the nature of open source - I probably won't release struts-resume 1.0 until 2004. And who knows when Roller 1.0 will be released...