Daily Comic Plugin
A plugin that show daily comic from some urls.
It accept four parameters:
- delim : optional, used to seperate the strings that don't need be converted into Date Format, e.g. !
- urlPattern : core parameter, give the url pattern for the daily comic. Use delim to seperate the strings needn't be converted by Date Format. e.g. !http://images.ucomics.com/comics/ga/
!yyyy!/ga!yyMMdd!.gif! The strings used as Date, see the Java API doc about SimpleDateFormat.
- altName : optional, as the alt name of the comic, when the comic isn't available.
- timeZone : optional, used to get the right comic
for examples:
[{org.simon.jspwiki.plugin.DailyComicPlugin delim='!'
urlPattern='!http://images.ucomics.com/comics/ga/!yyyy!/ga!yyMMdd!.gif!'
altName='Garfield' timeZone='America/Los_Angeles'}]
To see the result, visit http://blogsite.3322.org:8080/jspwiki/Wiki.jsp?page=SimonLei
.
It's a jspwiki in Chinese.
Discussion
I tried to insert this plugin, but I just got an external class not the image itself. Is further step required? I am using the brushed metal plugin.- You need to compile the DailyComicPlugin.java into a Java class file. Then copy that file to your <wiki>/WEB-INF/classes directory. --DaveWolf
How can I install this plugin and where is the class or jar file ???
This page was under so much spam load, I made it edit-authenticated only.
-- JanneJalkanen, 25-Jun-06
I've uploaded a DailyComicPlugin.jar file with the following changes:
- Instead of just creating a link, it puts the (linked) image in-line.
- If there is not a comic for that day, it finds the most recent and displays it (up to 10 days back).
-- DaveWolf
Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
jar |
DailyComicPlugin.jar | 4.9 kB | 1 | 07-Feb-2007 20:05 | DaveWolf | Enhanced to find the most recent comic, if one the the current day doesn't exist |
java |
DailyComicPlugin.java | 2.7 kB | 1 | 04-Jun-2004 09:48 | SimonLei |