Search…

X3 Photo Gallery Support Forums

Search…
 
lowray1975
Experienced
Topic Author
Posts: 137
Joined: 26 Jul 2008, 08:04

XML API

23 Dec 2008, 21:35

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. :)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: XML API

23 Dec 2008, 22:10

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
 
lowray1975
Experienced
Topic Author
Posts: 137
Joined: 26 Jul 2008, 08:04

23 Dec 2008, 23:26

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...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

24 Dec 2008, 07:02

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
 
lowray1975
Experienced
Topic Author
Posts: 137
Joined: 26 Jul 2008, 08:04

24 Dec 2008, 09:17

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...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

25 Dec 2008, 00:14

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).
 
lowray1975
Experienced
Topic Author
Posts: 137
Joined: 26 Jul 2008, 08:04

26 Dec 2008, 09:57

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.