Forums / Cotonti / General / PFS subfolders

booka
#1 2010-03-30 06:23
How we can implement that?
booka
foxhound
#2 2010-04-03 21:12
Just enable it in your main settings in the admin panel? Its only possible to start using on a new site, if you already uploaded files to your PFS you should not ebale it anymore as far as I know.


[edit]
Administration panel / Configuration / Personal File Space ---> Folder storage mode :
<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
This post was edited by foxhound (2010-04-03 21:18, 13 years ago)
GHengeveld
#3 2010-04-04 04:56
I think he means having folders inside folders. This is only possible with the pre-alpha version of PFS v2 (see branches).
booka
#4 2010-04-04 17:10
Thanks Koradhil. Any release forecast?
booka
GHengeveld
#5 2010-04-04 18:34
None at the moment, sorry.
If you're any good with PHP you can try implementing subfolders in the existing PFS. You'll need to add a column in the sed_pfs_folders DB table named pff_parentid (or something similar). Then modify the PFS core to show an 'add folder' form even when inside a folder. This form should contain a hidden field with the current folder ID as its value. In the PHP you can process this form like a normal 'add folder' but you'll have to include the hidden field's value an set it as the pff_parentid.
Then finally you'll have to edit the PFS core so in root it only shows folders without a parentid (or parentid = 0) and show subfolders when inside a folder (WHERE pff_parentid = $currentfolderid).
booka
#6 2010-04-04 19:39
Thanks... But I don't want to use any core hack for a reason (damn Oliver...)
And I'm not so skilled with PHP to do that the way it can be included into release (((
booka