Member
Member
turbo_t   2010-03-04, 15:05
#1

hello,

first of all, i'm really impressed by what you all have created, zenphoto is great!

i'm using it as a backend for my flash-portfolio (photographer) - i've simply modified the rss.xml a little to output a simpler xml file that flash can handle easy.
i'm afraid i'm not really a good programmer, so i hope i can find some help here:
i'd like to sort the images manually, just like the default frontend of zenphoto does. is there an easy way of getting the rss.php modified to do that instead of sorting by date/id?

cheers,
torben

Administrator
Administrator
acrylian   2010-03-04, 15:37
#2

Thanks!

Well, the rss feeds are not setup for taking care of the sorting as they are for the latest entries. You would have create a customized rss feed using the object model framework to achieve this.

You could also look at the efferescence+ theme that uses also the flash script simpleviewer for one of its personalities using an xml file if I am correct.

Member
Member
turbo_t   2010-03-04, 15:55
#3

ok, i'll have a look at that theme. it's not possible to add a case for $sortorder in image_album_statistics.php for "manual", is it?

Administrator
Administrator
acrylian   2010-03-04, 16:16
#4

Possible is everything, it's code, but "manual" does not make sense regarding statistics, don't you think?

You can do everything you want with the object model framework but it will be a little work to do

Member
Member
turbo_t   2010-03-04, 16:40
#5

i just found that the rss.php calls image_album_statistics.php for the sorting:
$result = getImageStatistic($items,getOption("feed_sortorder"),$albumfolder,$collection);

so i thought there might already be an option i could use to get my manual sorting that i'm doing in the admininterface of zenphoto instead of "feed_sortorder", without having to get too deep in the code.

it's too complicated for me, to get the efferescence+ theme to do what i want :/
i'm trying to figure out where zenphoto stores the manual sorting and then how to implement it in my custom rss.php

Administrator
Administrator
acrylian   2010-03-04, 16:57
#6

[i]$result = getImageStatistic($items,getOption("feed_sortorder"),$albumfolder,$collection);[/i]
Yes, but these function do not know of "manual" sorting for said reason. Please visit the function documentation to see what is available.

As said the easiest and best is to use the object model framework to create a custom rss feed.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.