Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Image files uploads and post links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Image files uploads and post links

 Post Reply Post Reply
Author
jkiester View Drop Down
Newbie
Newbie


Joined: 13 June 2007
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote jkiester Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2009 at 1:21pm
Yes but they can always delete them using FTP
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2009 at 1:35pm
Good point Wink

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 LOL


Edited by MrTWS - 25 March 2009 at 1:41pm
Back to Top
jkiester View Drop Down
Newbie
Newbie


Joined: 13 June 2007
Location: United States
Status: Offline
Points: 35
Post Options Post Options   Thanks (0) Thanks(0)   Quote jkiester Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.