![]() |
|
deleteAlbum help - 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: deleteAlbum help (/thread-6925.html) |
deleteAlbum help - breglis - 2010-04-15 Hi, I try this:
It does seem to clear the content of gallery but leave gallery itself alone Thanks deleteAlbum help - sbillard - 2010-04-15 Quote:$_zp_current_album = new Album($_zp_gallery, "/gallery"); I don't know where you have put this code. Generally the $_zp_current_album variable and the next_album() loop are used only on the front end. I am not so sure it is a good idea to put such deletion code on your font end pages--no telling who might visit that URL and zap your gallery (presuming the code actually worked.) So probably what you want is: deleteAlbum help - acrylian - 2010-04-16 Why don't you just use FTP to delete the required albums? deleteAlbum help - breglis - 2010-04-16 thanks, but it is actually a subgallery called 'gallery' I would like to clean out deleteAlbum help - Blue Dragonfly - 2010-04-16 Are you wanting the gallery to be deleted just so it gets re-created in a different order? Surely there must be a more efficient way to do this. Are you trying to change the order that the dynamic sub-albums are displayed in, or the order of the images in each dynamic album? I wouldn't think re-creating the albums would actually change the order. Perhaps adding an Image Display Order option for "Random" would be a better, more efficient route to take. Especially if you want to preserve database information on those images, such as descriptions, ratings, and comments. deleteAlbum help - sbillard - 2010-04-16 Deleting the albums and recreating them will likely have no impact on the order that they appear in. If it is just ordering that you are concerned with, set the sort order to what you want. You can even set it to manual and change the
Absolutely no need to delete anythign unless you really want it gone. In that case it would make no sense to recreate it. BTW, the moral of this thread--always ask about what you want to accomplish, not some substep in the process you have come up with. deleteAlbum help - Blue Dragonfly - 2010-04-17 Looks like this might become a feature request for a random gallery order, or a gallery shuffling plugin :-) Though if breglis wants it only changed every 24 hours, that would have to be implemented as well - perhaps allowing some keywords in a configurable random seed field, such as the current date, so the random number generator sequence would be the same for that period. Of course, that would require not using the newer, crypto-safe RNGs or hardware RNGs. Alternately, an options table value could store the date of the last reordering. deleteAlbum help - breglis - 2010-04-17 yea this is partly of what I am trying to do. check out my breadcrum select box here : http://www.bregler.net/gallery and then choose 'CHINA' this will then show all images with China but then the breadcrumb select also offers all remaining tags to further limit I created this SQL : SELECT count( * ) AS hitcount, t3.name, t4.name this will create a random order if DB the old album is deleted from DB first. Otherwise deleteAlbum help - acrylian - 2010-04-17 Please open always a ticket if you really want to make a feature suggestion, otherwise we really forget about such things even for consideration. |