The TestGallery plugin for Freenet 0.7
Loading the plugin
Go to the FProxy plugins page, select the TestGallery plugin from the drop-down box and click the Load button.
Using the plugin
The VISIT link on the FProxy plugins page takes you to the start page for the TestGallery plugin.
Visit galleries by going to:
http://127.0.0.1:8888/plugins/plugins.TestGallery/<key of the index>
for example:
http://127.0.0.1:8888/plugins/plugins.TestGallery/CHK@sTcjGeT~bWxycEvhidh7QYh9J9fBT6YjiXrfkzsC5fQ,~dt~6lS7idVfF09oqnzMI~nXo8V-HN4T6Y7FisfyWDU,AAEA--8
(fixme: the above link gives me freenet.client.FetchException: Data not found ??)
Creating your own galleries
Instructions for creating a new gallery.
(fixme: link above doesn't work? data not found error)
As the link above doesn't work anymore I'll give an overview. I also don't think the description for visiting galleries is valid anymore but I won't remove them.
The TestGalleryPlugin takes two parameters:
- the URI to the file with the image list ("uri", e.g. CHK@.../imgkeys.txt)
- the page of the gallery ("page"): each page consists of 24 images (6*4) ... above 24 it'll create more pages
The image list (a simple text file) contains the gallery title (first line) and the URIs of the images (beginning from line two). Valid optional prefixes for the URIs are "freenet:" and "URI: ".
As an example (e.g. imgkeys.txt):
my gallery CHK@.../pic1.png freenet:CHK@.../pic2.png URI: CHK@.../pic3.png
For testing purposes for embedding in a freesite you can create a form like this:
<form accept-charset="UTF-8" enctype="multipart/form-data" action="/plugins/plugins.TestGallery.TestGallery" method="GET"\><br> <input name="uri" type="text" value="USK@.../testgallerypics/1/keys.txt"><br> <input name="page" type="text" value="1"><br> <input type="submit" value="Show gallery"><br> </form>
For single click embedding you can use:
<form accept-charset="UTF-8" enctype="multipart/form-data" action="/plugins/plugins.TestGallery.TestGallery" method="GET"> <input name="uri" type="hidden" value="USK@.../testgallerypics/1/keys.txt"> <input name="page" type="hidden" value="1"> <input type="submit" value="Show page 1"> </form>
Freesite Example