A few questions.

I don't say that this need to be added to futuristic ZENphoto releases, but I could need it for my gallery. But no, I won't link it because of the NSFW content.

Anywhom, there are a few things I like to change that I need help with.

1) On the frontpage, where the albums are listed. Why can't the "random image" have an url to it that goes directly to the exact photo?

2) Are there possible to skip "albums", and use pictures only? You can, if possible, skip the first question.

3) 10 latest comments on the frontpage / sort by comments in general.

4) Random image (for possible frontpage, with direct link to exact picture)

5) Sort by rating, when rating is used.

6) Tracker-cookie to remember the last page you where watching (got alot of pictures).

Thats my questions for now -- if anyone know, just tell me where to begin and what's needed to be done to the file(s).

// dosky

Comments

  • #1. It can. Infact it does in the efferevescence+ theme
    #2. There are several people who have been working in this. I don't know the status of their efforts. But, yes, you can go directly to a picture from the gallery album thumbnail. It is just a matter of changing the link that is generated.
    #3. Sorry, what are you meaning here?
    #4. Same as #1 isn't it?
    #5. Could be provided, but currently it is not.
    #6. Could be done in the theme. No plans for this in zenphoto.

    Best place to begin is with the themeing guide resouces like this are listed here: http://www.zenphoto.org/support/topic.php?id=3760
  • 1) Thanks.

    2) Ok, but do you know any proper way?

    3) I want to have a list of the 10 latest comments on the fronpage, even if I use album(s) or image(s) in index.php

    And also, I want to be able to sort the pictures after ratings (or maybe just have a top 10 list of pictures)

    4) Yes and no, the thumbnail is pretty small. But somehow there could be better if it could be just one random picture each day -- like "picture OF the day".

    5) Would it be hard to do ?

    6) Any ideas on how I could do it ?

    (Yes, I need help making it -- that is why I ask. And as I said before, this ain't a tread to ask if you can imply the features to ZENphoto. It should be as little and perfect as it is today.)

    // dosky
  • acrylian Administrator, Developer
    2) Since this is not the standard way Zenphoto works, you will have to do a little work to get that working. You need some knowledge of webdesign and php to achieve this. Please consider a forum search, there is at least one thread where this was discussed and with some ideas how to do (I don't have the link at hand).

    3) http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintLatestComments

    4) Well, you can change everything and make a custom function with a bigger thumbnail.

    5) This would surely require core changes which is not recommended to do yourself because of problems with updates. You can open a feature request ticket, although we of course can't promise when or if we included that.

    6) No, sorry.
  • #2. Please review the code in efferevescence+ to see how it does this.

    #3. Sorting images by rating could be done in the theme. However, it sounds like you are not very familiar with PHP. That being the case, you would have a lot of learning to do first.

    #5, #6. Again, you will probably have some learning to do to do these things.
  • I know the basics of html/php, but something just goes over my head.

    printLatestComments(int $number, [string $shorten = '123']);

    How do I actually use this to not get an error code ?
  • Hmm, if you don't know how to use functions in PHP I would suggest that your knowledge is somewhat below the basics. Perhaps one of these resources would be useful to you http://www.google.com/search?sourceid=navclient&aq=t&ie=UTF-8&rlz=1T4ADBR_enUS220US220&q=PHP+tutorial+w3
  • I know how to use functions in PHP, but whatever I did with printLatestComments();, the site came up with errors. Unexpected variable or something (din't write it down).
  • acrylian Administrator, Developer
    The righ usage is within html <?php printLatestComments(10, 123); ?> That prints the latest 10 and the comment iteself shortened to 123 characters.

    Please also visit our user guide and read for example http://www.zenphoto.org/2008/04/how-to-read-the-zenphoto-functions-guide/
Sign In or Register to comment.