It's actually two plugins.
One that checks if there's a picture named "current.jpg" or
"current.png" in $BLOGDIR, moves it to $BLOGDIR/images/ and
creates a thumbnail in $BLOGDIR/images/small/.
And one that's called for every entry and creates some HTML code
to display the image in the var $NB_Picture.
It's highly "optimized" for my page atm, but changing the code
should not be too hard (if necessary, don't know how well it fits
into other pages). I'll make it more generic sometime. Promised. :)
You can take a look at the result at
http://cgi.ethz.ch/~scdaniel/weblog/index.php?
section=151&permalink=2004-06-25T20_57_22
Tested with nanoblogger 2.8.
Nobody/Anonymous
None
None
Public
|
Date: 2004-11-21 10:44 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| picture.tar.bz2 | the two plugins | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| File Added | 109009: picture.tar.bz2 | 2004-11-16 20:22 | npfdd |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use