Page 1 of 1
XML API
Posted: 23 Dec 2008, 21:35
by lowray1975
Would it be possible to add the thumbnail path to the XML that is outputted by the rndimg interface?
Working on creating a Wordpress plugin.

Re: XML API
Posted: 23 Dec 2008, 22:10
by mjau-mjau
lowray1975 wrote:Would it be possible to add the thumbnail path to the XML that is outputted by the rndimg interface?
hmm, can't you just use the information you have? rndimg output is like this:
https://www.photo.gallery/mygallery/?a=r ... pictures1/
NAME attribute is already there, you already have the PATH, and thumbnails are created with "tn_"+filename.
PATH+"tn_"+NAME
Posted: 23 Dec 2008, 23:26
by lowray1975
I absolutely could, although because the "tn_" is user selectable it could change. The best thing to do is first call the rndimg interface and then with that information call the thumbnail interface, although I'm worried that about latency...
Posted: 24 Dec 2008, 07:02
by mjau-mjau
You are creating a module separate from Imagevue I presume? The "tn_" values are actually hard-coded into the flash gallery, and I would have to change that if someone changes the thumbnails extension. Don't really know why the option is there, but I guess someone might eventually find a reason ...
You could of course load the config file and read the extension from config ... ?a=config
Posted: 24 Dec 2008, 09:17
by lowray1975
Very true, I guess I could do that in the admin side of things becuase latency isn't really that big of an issue there...
Just trying to make the plugin as quick as possible...
Posted: 25 Dec 2008, 00:14
by mjau-mjau
Is it a Flash module? I am very interested in separate modules built on the imagevue backend API. You can certainly create many different flash gallery applications, from small visual slideshow toys, to advanced galleries(like imagevue x2).
Posted: 26 Dec 2008, 09:57
by lowray1975
Oh no, not a Flash module. For some reason I could never wrap my head around Flash programming. Don't know why now that I think about it...
Anyway, I'm creating a WordPress plug-in that will allow the display of random images from certain directories in WordPress widgets.