![]() |
|
nightly build fixes - 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: nightly build fixes (/thread-3046.html) Pages:
1
2
|
nightly build fixes - bill61 - 2008-06-06 hi developers is there any plan to get things like the bellow to be fixed in the current " nightly build "? 1- in this example page : http://mediabox.alankabout.com/Videos/Amazing%20Things/ the same thing apply om mp3 files as well. 2- also is it possible to get the flv thumbnail in the next edition as well ? thanks nightly build fixes - acrylian - 2008-06-06 1 - You can (and have to) do that easily yourself in your theme: Same for mp3 albums of course. Since you can have mixed albums with all types, Zenphoto does not make any difference on the item type. 2 - What flv thumbnail do you refer to? If you mean the preview thumbnail, that is already in the nightly. nightly build fixes - bill61 - 2008-06-06 hi in my album.php i have this:
so the changes should be in this code? if yes how? in regards to #2 example video page: http://demo.xpoze.org/video.html my video page: http://mediabox.alankabout.com/Videos/Amazing%20Things/The%20most%20serious%20incidents%20filmed%20globally/ thanks nightly build fixes - acrylian - 2008-06-06
nightly build fixes - bill61 - 2008-06-06 hi acrylian so u are talking about this part in the "album.php file" where getNumImages() correct? nightly build fixes - Mammlouk - 2008-06-07 bill61, I'm quite busy this morning and don't have time to look at this right now, but if no one else takes care of it by tonight I will look at it and post some code for you. -Jeremy nightly build fixes - bill61 - 2008-06-07 hi Mammlouk thanks a lot. regards nightly build fixes - Mammlouk - 2008-06-09 Finally had a minute to look at this. I would put all of your video album names into an array and then check for the current album title with in_array as follows $number = getNumImages();
} in_array is case sensitive so make sure you enter the names of your video albums appropriately. nightly build fixes - bill61 - 2008-06-09 hi Mammlouk thanks for that i could not do it for some reason. i tried few tests but it did not work regards nightly build fixes - Mammlouk - 2008-06-09 It's my fault, I accidentally left an endig brace off. Just add another closing brace after the if/else statement like this: $number = getNumImages(); That should fix you up. Let you know if you have any more problems. nightly build fixes - bill61 - 2008-06-10 hi Mammlouk thanks for the reply may be what i am looking for is slightly diff from what u post. what i like to have is this: also if the album contains "mp3 or mp4 " than it should show instead of : "(# photos)" it should show "(# audio or audios)" i am not sure if this can be done because i have no exp with php at all. the question is : how or is it possible zenphoto can recognize diff files? logicly speaking it should but logic and programming are two diff things. hope i am clear regards nightly build fixes - Mammlouk - 2008-06-10 hi bill61, I completely understand what you are trying to do, although I didn't realize you wanted it for audio also. If you want it to be completely automated then you are out of luck for a reasonably quick solution. Using the method I provided is relatively easy, the only work you have to do is fill the array of video directory names and one for audio directory names similarly. Where it says: $videoarr = array("Videos1", "Videos2", "Videos3"); The values there get replaced by whatever your Video Album Names are. I know this is not quite as automated as you like, but for now it is the simplest solution. If I have enough time next week after some changes I thought of for the Google Checkout/Cart I might get to looking at it more, but I cannotmake any promises so please do not count on it. -Jeremy nightly build fixes - bill61 - 2008-06-10 hi Mammlouk thanks again ok, now this is the piece of code i have in album.php already: ................................. ............................... so it should be like this ???????: ................................. also, lets assume the actual "flv" name is : so for example : $videoarr = array("Videos1", "Videos2", "Videos3"); will be: ????? regards nightly build fixes - acrylian - 2008-06-10 The easiest would be to "mark" the video or mp3 albums using the custom data field that each album has. Fill in for example "mp3" or "video" and then check that with a if/else construct. nightly build fixes - bill61 - 2008-06-10 hi acrylian the thing is i am using " custom data field " for "General Views" and "Adult Viewers Only" hope developers can come with something more appropriate in regards to this issue nightly build fixes - acrylian - 2008-06-10 It's not really an issue. Then I would suggest you use another field you maybe don't use currently or simple check using getAlbumTitle(). nightly build fixes - bill61 - 2008-06-10 hi acrylian the zenphoto have "album.php" "image.php" but why not : "video,php" and "audio.php" ??? may be it will be the appropriate thing i guess nightly build fixes - acrylian - 2008-06-10 I don't see any reason for that. Why should Zenphoto treat albums differently just because there are videos or audio files? Also you can have albums with all types of supported files. I gave you two not to hard suggestions, here is a third easy one: Use the album theme feature to achive a difference like "videos" instead of "photos" for specific albums. nightly build fixes - bill61 - 2008-06-10 hi acrylian do u mean create another 2 php files in the theme "in this case default" and rename them to : "video,php" and "audio.php" than inside the file code change to "videos" instead of "photos" and so on ?? nightly build fixes - Mammlouk - 2008-06-10 bill61, You have it very close. The only thing is that the things you put in the array are going to be the appropriate album names, not the actual filenames. Another way to tag your folders without having to go bakc an edit the php to add every new one would be to name them with "_vid" and :"_aud" at the end of the album titles. Thne you have something we can check for in the album title. If that is something you are interested in instead I can throw together an example for it. |