![]() |
|
how display the last zenphoto video in the index - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: how display the last zenphoto video in the index (/thread-2380.html) Pages:
1
2
|
how display the last zenphoto video in the index - antonionardelli - 2008-03-09 hi all, i'd like to display in the index the last zenphoto video. how display the last zenphoto video in the index - acrylian - 2008-03-09 Try our functions guide: http://www.zenphoto.org/documentation/Zenphoto/_template-functions.php.html#functionprintLatestImages how display the last zenphoto video in the index - antonionardelli - 2008-03-09 hi acrylian, thanx for your support.i'm not expert with php. then the player js and then the video and player code how display the last zenphoto video in the index - acrylian - 2008-03-09 You don't need to change those parts you posted. The player is already in zenphoto, no need to call it directly. Zenphoto currently supports Flash Video (.flv), Quicktime (.mov) and 3GP (.3gp). zenphoto is not able to generate a thumbnail of a video, you have to do that manually: http://www.zenphoto.org/support/topic.php?id=2022&replies=3. The printLastestImages functions prints thumbnails of the latest uploade images. It does not make any difference between images and movies. Just place how display the last zenphoto video in the index - antonionardelli - 2008-03-09 Thanks again acrylian, i know that zenphoto supports flv mov and 3gp, i'd like to display the latest video in another page that isn't in the zenphoto directory. how display the last zenphoto video in the index - acrylian - 2008-03-09 Sorry, I just overread that detail with the index.php! Probably this could be helpful for you: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin I don't know of a way to have the flv player directly on index.php and taking care of the latest stuff from zp. But I haven't tried or thought about that. You probably will have to add that player and the movie manually (which comes from here by the way: http://www.jeroenwijering.com/?item=JW_FLV_Media_Player) to your site. how display the last zenphoto video in the index - antonionardelli - 2008-03-09 don't worry acrylian. how display the last zenphoto video in the index - BertSimons - 2008-03-10 you can put this code on your index.php it will show the latest 5 videos; `` and if it is not on your zenphoto index off course follow the zenphoto as a plugin guide how display the last zenphoto video in the index - antonionardelli - 2008-03-10 Hi BertSimons! how display the last zenphoto video in the index - BertSimons - 2008-03-10 code with link, sorry for the bad paste earlier, checked this one `` how display the last zenphoto video in the index - antonionardelli - 2008-03-10 Hi BertSimons, i'm near the solution now!!! [/code] how display the last zenphoto video in the index - BertSimons - 2008-03-10 Antonio, replace $imageURL = str_replace("video",'video/albums',$imageURL);` how display the last zenphoto video in the index - antonionardelli - 2008-03-11 Hi Bert, thank you so much for your support!! how display the last zenphoto video in the index - acrylian - 2008-03-11 The latest stuff is fetched by ID, since that is the unique value that is automatically assigned when uploading anything. So it follows the upload order, not any dates. how display the last zenphoto video in the index - BertSimons - 2008-03-11 antonio, what you can do is hack your template-functions.php and around line `case "latest":
to `case "latest":
this works for my images... how display the last zenphoto video in the index - antonionardelli - 2008-03-11 Hi boys how display the last zenphoto video in the index - BertSimons - 2008-03-11 Antonio you can change this in the template functions; after the lines: $sortorder = "images.id"; break; ` add: `case "date": $sortorder = "images.date"; break;` so the sort part in the getImageStatistic looks like: `switch ($option) {
` then on the page where you want the latest video in the code from above use:
by this the function getImageStatistic($number, "latest"); stays intact wherever used on your site. how display the last zenphoto video in the index - BertSimons - 2008-03-11 acryllian.. I believe dates are fetched from the exif or not? Is it an idea to add this the template-functions getimageStatistic in the build? `case "byimagedate": $sortorder = "images.date"; break;` to get an getImageStatistic(50,"byimagedate") show the latest 50 pics in ordere the were shot or am i missing something? how display the last zenphoto video in the index - acrylian - 2008-03-11 Bert, that date option makes absolutly sense. Consider it done...:-) Just to explain why it is missing since I did that function: I do not take photos myself, I am mainly an illustrator and designer, therefore I tend to forget that people want to use the date a photo is taken and not the upload. how display the last zenphoto video in the index - BertSimons - 2008-03-12 thanks acryllian , just saw it's in the build already Antonio Acryllian added the sort by 'image date' for the to the getImageStatistic() function by adding a case 'latest-date'to the nightly build so you don't have to mess with the templates function complete code is now ` ` |