MyBB Central

Full Version: Modded Download Section with MYPS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
First Post Updated with working version.
Do not download it from somewhere else cause it probably won't work =P
Thanks Lex, do we just upload these overwriting the old files or do we have to deactivate the old version, upload the new files, then reactivate?
Awesome. Gonna use this myself actually.
Xtreme2damax Wrote:Thanks Lex, do we just upload these overwriting the old files or do we have to deactivate the old version, upload the new files, then reactivate?

Just overwrite the files and activate the upgrade_ds.php file
It seems even this modified version still has that auto-renaming issue with files.

Is there anyway to have files retain their original filename once uploaded, say if you upload file x.zip it retains the name of file x.zip rather than being renamed to 17827382.zip for example?

The latter is quite unattractive and confusing, it would be nice to have file keep their name once uploaded.
I've never mentioned anywhere it would change the filename to a 'proper' name ... =P
But could be done; aint such a big change.
But there's one side effect; what if 2 downloads have the same name ? And you delete one ... the second one will also be deleted; with the way its coded now that can never happen =P
LeX- Wrote:I've never mentioned anywhere it would change the filename to a 'proper' name ... =P
But could be done; aint such a big change.
But there's one side effect; what if 2 downloads have the same name ? And you delete one ... the second one will also be deleted; with the way its coded now that can never happen =P

Couldn't a check be implemented, so if someone tries to upload a file with the same name it would return an error "File already exists, please rename the file" or something similar?

As for the deletion issue, can't files be assigned a file id or some sort, so if you delete one the other isn't deleted?

But it a check is implemented if the file exists and gives an error if it = true, that would take care of the second issue as well as they wouldn't be able to upload another file with the same name.
Files should be like Mybb where they are given a special attachment name on upload and on download given their correct name. This is how it's more secure. Knowing the file name is just one way for people to circumvent your download system.
labrocca Wrote:Files should be like Mybb where they are given a special attachment name on upload and on download given their correct name. This is how it's more secure. Knowing the file name is just one way for people to circumvent your download system.

That sounds even better, not sure why I didn't think of that. Tongue
o man are all plugins for subscribers?
Pages: 1 2
Reference URL's