Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 11:38

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 25. Aug 2009, 19:37 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
Hi!

I would like to change the structure of my gallery. I need to move one section so that it appears within a new gallery.

I have the xml files set up so they are written to directories which as you say should make this kind of move easier. My concern is the thumbnail cache which is located in caches folder which has the image path "hard coded" into the filename.

Is there a way to change the structure of the galleries without having to recreate the entire thumbnail cache? Or, am I wrong in assuming this will happen?

The thing is I have over 15000 images and it took a long time to create the thumbnails the first time :shock:

If there is no way to avoid recreating thumbnails when you move directories around, maybe you could consider this a feature request to treat thumbnails the way XML files are with the option for them to reside in the folders with the images.

Thanks,

T.


Top
 Profile  
 
 Post subject:
PostPosted: 25. Aug 2009, 23:31 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Please update to 1.7.8

Then set
$autocreate_folder_id=true;

Then TWG is not using the foldername for the xml files and the cache anymore but the string inside folder.id (which is created automatically when you access the folder).

After folder.id is created you can move the folder somewhere else and the xml files still work becuase in the auomatically created folder.id files is the current folder name.

I recommend to make a backup of the xml files because I just added this in 1.7.8. I alredy made a lot of test and they work fine but you should always make a backup before doing changes like this.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Aug 2009, 20:08 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
Is there something I can to do to force the creation of the folder.id files or do I have to navigate into each folder to do it?

If I have to physically access each folder would I be better off just recreating the thumbnail cache from Admin?

Thanks,

T.


Top
 Profile  
 
 Post subject:
PostPosted: 26. Aug 2009, 22:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Please update again - the folder.id stuff was using the wrong file names and therefore comments where not found anymore.

About the xml.
set
$precache_xml_data=true;

Then TWG tries to precache 30 xml files at once at each request.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 12:36 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
Hi Michael,

I finally had a chance to work with this again. I updated to 1.7.8 (downloaded on Sept 7) and added the following to my config:


    $autocreate_folder_id=true;
    $precache_xml_data=true;


For some reason, it was wanting to create cache for all of my images so I went ahead and cleaned the cache and allowed it to start over - I'm about half way through creating new cache images.

Looking around in the folders that have been visited from my browser I don't see any folder.id files. Is there something I need to do to create these, or am I missing something?

T.


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 12:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
can you check if your image folders are writeable?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:00 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
The folders have "drwxr-xr-x" permissions. It might be limited, but the xml files are being written OK, so I'm guessing they are writable by the script.

T.


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
are the xml files written to the image folders? below the pictures folder?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:21 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
Yes, I have set:
    $store_xml_in_picfolders=true;


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
then folder.id is not used because it does not make sense - if you already have the xml files in the image folders you can move the folders around how you like.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:42 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
The original concern was with linking back to the thumbnail cache files when a folder is moved. Similar to what I am doing with the XML files.


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you are right - I was totally of topic - for thumbnails this does not exist - They are recreated automatically.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 13:59 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
This would make a nice feature request then: handling thumbnails the same way as XML files in the folders with the originals.

I started my web gallery last year. We are now in a new season and I decided to add a "year" level to it. I ended up moving 15000 files and now all the thumbnails need to be recreated. It would have been nice if the thumbnails could have moved with the originals. It seems that this would make more sense as far as the directory structure goes as well.

Thanks for looking into this Michael. It's a great product with a lot of potential for more greatness :)

T.


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 14:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you can set $use_cache_with_dir = true;

Then the cache is generated in folders. You then move simply the whole folders and you are done.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2009, 14:43 
Offline

Joined: 9. Feb 2009, 18:16
Posts: 80
Location: Rochester, MN USA
I saw that one while going through the config file. It makes sub-directories in the regular cache folder doesn't it?

If this is the case and I move the files, do I just rename the folders in the cache tree?

By the way, I've been moving the stuff using FTP and terminal sessions. Would it make a difference if I were using TWGXplorer or the flash uploader?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 70 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy