| Author |
Topic Search Topic Options
|
jkiester
Newbie
Joined: 13 June 2007
Location: United States
Status: Offline
Points: 35
|
Post Options
Thanks(0)
Quote Reply
Topic: Image files uploads and post links Posted: 24 March 2009 at 6:19pm |
We have an active community posting images using our contstruction and RC play sets (some are quite impressive BTW) and have just realized that if the user deletes the images they've uploaded using File Manager, the images are removed from the post too (naturally upon a moment's consinderation) but we then lose valuable content, maybe just because they are tired of scolling throught a long list of images.
We want to maintain the integrity of the posted images. Are there ANY solutions to this issue already in WWF that we can look in to? I hate the idea of modifying the code because of the work involved with future upgrades. Image link rewrites? Admin locking/hiding images in File Manager? We are open to all suggestions at this point. We are on version 9.51 and using File System Object and Persits AspUpload.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 7:36am |
|
You would need to modify the code to prevent users deleting images and files.
The simplest way would be to edit the file_manager.asp file and delete line 379 that has the link to delete the file.
|
|
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 12:40pm |
|
If they were to do this though Bruce, would that also not render their own admin and moderator team unable to delete the images and files too?
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 1:21pm |
|
Yes but they can always delete them using FTP
|
|
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 1:35pm |
Good point  I just wondered if it was possible to add some code like If blnAdmin Then let them see the button Else Response dont let them see the button Obviously the code (or lack of it above) is not right, but when I'm a brighter person I might have a better answer
Edited by MrTWS - 25 March 2009 at 1:41pm
|
|
|
 |
jkiester
Newbie
Joined: 13 June 2007
Location: United States
Status: Offline
Points: 35
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 3:47pm |
Thanks for the discussion on this. However, this was started by a frequent contributor being tired of scrolling past all their files in the list so removing the ability to delete files doesn't address this user's issue.
Just thinking outloud, ideally, we could "archive" images to a new location not under the user's control and have the image links to the post re-written to the file's new location.
Any other ideas?
|
 |
123Simples
Senior Member
Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2009 at 4:01pm |
|
Each user is allocated a specific uploads folder to where their images that they upload are then stored, and obviously then when they either post an image, or check their file manager, their uploads appear in their folder
They can only obviously as Bruce gain access to that folder by virtue of the fact they are logged in, and then yes they will see the "list" of all the files they have uploaded
Since each post then say this user has added images to, if you right hand click the image, you may notice that the properties will tell you something like:
http://www.yourforum/forum/uploads/108/107.jpg
The 108 in this example is their upload folder, so if the file was moved or archived, then the link would be looking in the wrong place. You would near enough have to manually go through every image posted and edit the link to point to its new location
|
|
|
 |