by Jackanape » Thu Aug 02, 2007 6:37 pm
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:
REGULAR CALENDAR
SMALL CALENDAR
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",
"<td class=\"smc\">$date</td>\n",
"<td class=\"smc\">$title</td>\n",
"</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.
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
-Robert A. Heinlein