Print Page | Close Window

Image files uploads and post links

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=27164
Printed Date: 02 April 2026 at 8:34pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Image files uploads and post links
Posted By: jkiester
Subject: Image files uploads and post links
Date 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.



Replies:
Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: 123Simples
Date 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?


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: WebWiz-Bruce
Date Posted: 25 March 2009 at 1:21pm
Yes but they can always delete them using FTP

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: 123Simples
Date 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


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: jkiester
Date 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?


Posted By: 123Simples
Date 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


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net