Changing folder of a category

Support zu den Modifikationen (MODs) von Entwickler OXPUS für das phpBB 3.0.x
Antworten
gloplug
Beiträge: 9
Registriert: Do 9. Jun 2011, 22:57

Changing folder of a category

Beitrag von gloplug »

Oxpus,

I believe i found a slight issue!

Ok I changed the folder for a category and i had already read that when u do this all the downloads are moved to the new category and the database updated to reflect the new location. Well it does the database part of it but doesnt actual move the files. So now any existing downloads in this category are now broken. Also if you try to edit the downloads in that category now it states that the file cant be found (cause it never moved it).

I found if i change the category of a download to a different category it does move the file into the correct folder of the new category... and then i can change the folder of the old category and move the file back all is good. a little extra legwork.

Also if I upload a large file via FTP it shows in the toolbox as "unassigned" and the toolbox states that i can assign a unassigned download to a category in the toolbox.... i have found no way to so this.
I have however found in the "manage downloads" i can add a file manually there providing i know the exact path and filename. So i got the large file all set. This isnt really a problem but the language in the toolbox maybe needs to be corrected.... To be honest it looks like it actuall missing a "assign selected files to category" "X" "submit.... or something along those lines?
im using the newest version

dave
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Changing folder of a category

Beitrag von oxpus »

First of all two questions:
Which settings do you have entered in the paths of the old and new category (please post detailled and exactly the path settings!)?
And will the permissions of the folder in the new category on CHMOD 0777 to enable PHP to move the files to?
In the mod itself is no issue on moving files if all other settings and permissions are correct.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
gloplug
Beiträge: 9
Registriert: Do 9. Jun 2011, 22:57

Re: Changing folder of a category

Beitrag von gloplug »

Ok not sure u understood me. maybe not explain well enough

If i want to move a file to a different Category i can simply edit the Download details to the new Category and it moves the file in the filesystem.... So thats telling me that the permissions should be fine.??
BTW all the subfolders of the /dlmod/downloads folder are 777

If i go into a Category and change the Path to a different subfolder

eg

"attachments/" to: "electrical/"

Then the files are not moved although the database entries are changed and the downloads are dead

Here are a few pics to try and explain
Dateianhänge
dlmodss2.jpg
dlmodss2.jpg (60.89 KiB) 3535 mal betrachtet
dlmodss.jpg
dlmodss.jpg (102.89 KiB) 3535 mal betrachtet
gloplug
Beiträge: 9
Registriert: Do 9. Jun 2011, 22:57

Re: Changing folder of a category

Beitrag von gloplug »

From reading this thread is why i am lead to beleive that this should work
http://phpbb3.oxpus.net/viewtopic.php?f=5&t=332
this is your quote
To move the files to the new place just change the path in the category.
The script will move all files of this category automatically to the new place.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2719
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: Changing folder of a category

Beitrag von oxpus »

Oh, sorry, I don't read your first post very well:
You have changed the path for the files directly on edit a category?
At this point there will no file be moved!
The linked topic that you've quoted don't mean to change the path of the downloads in the category to move the files, but change it to reassign the files to the category path.
For now you can do the following workaround:
Create a new (temporaly) category with the path that you wants.
Copy the permissions from the "old" category to the new one.
Then move all files from the old category with the moderator panel to the new one.
This will move the files correctly!
And then change the path in the old category and move the files back.
THis method is currently the only one to move files error free between categories with different paths.

At least I'll put your problem to the todo list for the next release.
It's really interrested to move the files, too, if ad admin will change the path in a category...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten