Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 proeder's File Attachment Mod 1.0
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 13

Nick Feakes
New Member

99 Posts

Posted - 06 January 2013 :  09:52:29  Show Profile  Reply with Quote
I have this mod installed and it works perfectly. I want to prevent members deleting their images. I see there is a comment in myfiles.asp (line 301 in mine) that says "edit this to only allow admins to delete files". What changes do I need to make?
Nick
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 06 January 2013 :  10:49:15  Show Profile  Reply with Quote
The versions at SnitzBitz do not have that comment. You should post a link to a copy of your "myfiles.asp" in .txt format for us to look at.
Go to Top of Page

Nick Feakes
New Member

99 Posts

Posted - 06 January 2013 :  11:04:43  Show Profile  Reply with Quote
OK - answered my own question.
If anyone else is interested, find the following in myfiles.asp

If Usefile <> "select" then
response.write " <td bgcolor=""" & strPopupTableColor & """>" & vbNewline & _
" <INPUT TYPE=""submit"" NAME=""enter"" value=""delete"" onclick=""JavaScript:window.location=('myfiles.asp?DeleteFile=true&FileToInsert=" & Name & "');"">" & vbNewline & _
" <br></td>"
else
response.write "<td width=200 & bgcolor=""" & strPopupTableColor & """></td>"
end if

Put
IF AdminAllowed Then

End if

Around those lines.
Nick
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 06 January 2013 :  11:17:03  Show Profile  Reply with Quote
Glad you got it sorted.
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07