I have completed the first step of modifying smcCal for tighter integration into Coranto, and easier manipulation with CSS.
My edits were:
Adding Dale Ray's mystyle modifications to index.cgi
Updating and rewriting table output to current CSS standards
Removing all redundant style references, such as font attributes.
All style changes now can be handled in the CSS, which can be found in cal_head.tpl (for the regular calendar aoutput), and sample_small.shtml for the small calendar.
Feel free to check out the final results here:
And you can view the code on the Coranto Addons CVS, at:
http://corantoaddons.cvs.sourceforge.ne ... ns/smcCal/
I'm certain to have missed something, so if anyone wants to take a look, go ahead. I plan to do so in the next day or so, then modify the readme.txt, as well as the credits.
One remaining thing I'd like to do, but not sure how to, is to pull the formats of the "upcoming events" output and place them into config_main.pl. This way, a user can modify those outputs, as he/she sees fit.
Dale recommends <li> in his tutorial, and that's the best option, but there are bound to be others, and other needs.
I tried adding this to config:
- Code: Select all
# Style for Dale Ray's Mystyle modification --currently not working
$mystyle_format = '<tr>\n",
and replacing the print code in index.cgi, but couldn't get it to work. Is this because I can't pass variables through the config_main.pl? If this is the case, how can I go about this...
Edit for BUG REPORT:
I'm not sure if it's just my install, but I didn't modify any code here, so I'm confused.
I have on my page, a small calendar, and an upcoming events listing. When I click the link to check out next month on the small calendar, my events listing is replaced by a large calendar.
Conversely, On a page with the large calendar, when I go to another month, every instance of calendar is changed to the large calendar.
Anyone with any ideas?
Click on the small calendar link above to see this bug in action.