[00:01] Jyhem "File galleries" → "List galleries" → "Create" [00:15] robertokir joined #tikiwiki [01:06] rsevero Jyhem: I mean the file storage on the filesystem. I would like that TikiWiki would do the subdirectories creation automatically. Is it possible? [07:33] gour joined #tikiwiki [11:23] jonnyb joined #tikiwiki [13:16] mose Jyhem: nan, c'est juste que I'm in progress of upgrading my tiki1.9 farm to php7 [13:16] mose works quite fine [13:28] robertokir joined #tikiwiki [13:41] Jyhem What ??? tiki1.9 on php7? Can't work, PHP lost compatibility. Surey you also upgrade to modern Tiki versions? [13:41] Jyhem s/Surey/Surely [13:41] mose yeah but all my custom styles won't work on new tiki [13:42] mose of course it didn't work I patched like a bithc [13:42] mose not that much of a work, just had to remove the `=& new` and all the split/ereg/preg_replace with /e [13:43] mose all in all it works fine for most features [13:43] mose (also updated adodb and smarty to newer versions for more mitigation) [13:44] mose (and switched to mysqli) [13:44] mose it's like I have been forking a damn old shit [13:47] mose Dernière mise à jour CVS: Vendredi 26 Octobre, 2007 [23:59:54] [13:47] mose hahaha [13:53] Jyhem :-) [13:53] Jyhem No "array()" → "[]" issues? [13:54] mose actually no [13:54] mose but some vars changed like I had to change a few [13:55] Jyhem Ohhh, someone rewrote them all. I thought is was required now. Good for you. [13:55] mose like :%s/global \$\$\(.*\);/global \${\$\1};/ [13:55] mose array() works fine in php7 [13:56] Jyhem good to know [13:56] Jyhem I also have a tiki1.9 but it runs on php5.6 (I set my server to support multiple php versions) [13:57] mose maybe I should push my changes somewhere on github, just for educational purpopses [13:57] Jyhem bbl (hungry) [14:02] mose but my tikis 1.9 are mostly for archives, so it just barely works when visiting them, not sure editing anything won't blow up [14:24] Jyhem rsevero: Tiki does not do that. It even anonymizes file names as a security measure. So that nobody can access the file by bypassing the tiki permission checking in case you have this directory under the webroot [14:26] Jyhem So this directory is basically just a database alternative for storage. Nothing more. [14:26] Jyhem Do you hit a filesystem limit on number of files in a directory? [14:27] Jyhem Tiki is all about adding new features for new use cases :-) [15:05] rsevero Jyhem: I've got no problems with filenames being anonymized. My problem is to avoid an issue I had with a previous Drupal installation where uploaded files all ended i the same "storage" directory and after some months I had more than a thousand files on the same directory and even listing the directory started to get slow. [15:07] rsevero Jyhem: It wad not a hard limit but it started to get slow and messy. In Drupal I found an option to make it create subdirectories so I would not have one huge directory. [15:07] rsevero Any ideas on how to implement something like that in TikiWiki? [15:08] RadoS joined #tikiwiki [15:27] Jyhem I never gave it much thought. What did the Drupal subdirectories look like? dates? strings matching the start of the filename? [15:45] Jyhem in 15 minutes: https://tiki.org/Roundtable-Meeting-2019-07 [15:45] Jyhem Everybody is welcome [16:00] jonnyb polom, on my way! :) [16:12] rsevero Jyhem: In Drupal I could set the subdirectories structure using printf-like placeholders for date, time, type of content/page, categories, etc. [16:24] rsevero Jyhem: If I would like to implement such feature in TikiWiki, what would I have to do? I just read some TikiWiki documentation. IT seems that this "set personalized subdirectory strcture for files storage" woudln't be neither a module nor a plugin. Is that right? What should I create? [16:40] Jyhem Sorry, attending https://tiki.org/Roundtable-Meeting-2019-07 right now. Later [18:16] robertokir joined #tikiwiki [19:45] robertokir joined #tikiwiki [19:47] Jyhem_laptop_ joined #tikiwiki [23:26] Jyhem rsevero: It looks like a new preference. https://dev.tiki.org/hello-world#To_introduce_a_new_feature_or_a_new_preference [23:27] Jyhem Obviously, the tricky part it to not break existing installations. [23:29] Jyhem Does Drupal also anonymize file names? allowing so much flexibility in the filesystem makes it sound like they expect to navigate the file system and see meaningful stuff there (instead of hashed filenames) [23:31] Jyhem I would have imagined selecting how deep the subdirectories should be and then put all files starting with aa* in a/a/ until z/z/ for filenames like zz* [23:31] Jyhem For an example of 2 levels of subdirectories. [23:32] Jyhem That would spread the files evenly and adress the use case you mentioned