PDA

View Full Version : snippets: offset functionality possible?


okapi
16th of July 2004 (Fri), 12:36
a question related to the snippets code:

is there maybe an easy way to put an offset functionality to the snippets code?

what i mean is the following: for example, i want to call not the latest, but maybe just the "before latest" or the "before before latest" photo as text (or as thumb or microthumb) with the snippets code.
is this difficult to do, or is there maybe just a small code snippet to add or to change...?
sorry, i hope i'm not bugging you with my snipptes-questions ;)

kd6lor
16th of July 2004 (Fri), 13:29
Not an answer to your question, but while I think the idea of a snippet is cool, I am at loss for a practical application. What do you do with snippets?

I played with them a bit to test how they work, but that's about it.

Paul

Pekka
16th of July 2004 (Fri), 18:53
a question related to the snippets code:

is there maybe an easy way to put an offset functionality to the snippets code?

what i mean is the following: for example, i want to call not the latest, but maybe just the "before latest" or the "before before latest" photo as text (or as thumb or microthumb) with the snippets code.
is this difficult to do, or is there maybe just a small code snippet to add or to change...?
sorry, i hope i'm not bugging you with my snipptes-questions ;)

You can get latest photos by specific amount in snippets as they are now, as in

get=latest_photos&amount=3

Or then again I'm may not be sure what you are exactly asking :)

okapi
17th of July 2004 (Sat), 15:38
pekka, thank you for your reply,
what i mean is: i don't want to call the three latest photos, but i want to call one photo as text, which is NOT the very last photo, but the one before the last, for example. or the second before the last...

when you take a look at my start page maybe you will know what i want to do: there you can see my three latest photos as images. below the very last photo (on the left) i have put a text link (called by snippets). now i would like to have corresponding links below the other two photos. but how to call it? this is what i meant with "offset functionality"...

okapi
23rd of July 2004 (Fri), 05:44
may i ask you again...

could this (maybe) easily done:

calling the latest minus 1 or the latest minus 2 photo as image or as text by the snippets code?