Author |
Topic |
squab
Starting Member
France
1 Posts |
|
stwilson
Junior Member
USA
385 Posts |
Posted - 25 August 2004 : 04:18:48
|
Does anyone know where I can get this MOD? Proeder's site has been unreachable? If not, what is the best file attachment MOD for Snitz?< |
Shannon RidingArizona.com |
|
|
tilson
Starting Member
5 Posts |
Posted - 25 August 2004 : 15:17:56
|
if these mods are open source then maybe Snitz should require all mods to have a project on sourceforge.net. This will prevent the "lost mods" scenario. When a sourceforge project owner gives up they can recruit a new leader to carry the flag for the mod.< |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Jezmeister
Senior Member
United Kingdom
1141 Posts |
Posted - 25 August 2004 : 21:52:31
|
quote: Originally posted by tilson
if these mods are open source then maybe Snitz should require all mods to have a project on sourceforge.net. This will prevent the "lost mods" scenario. When a sourceforge project owner gives up they can recruit a new leader to carry the flag for the mod.
the majority of mods are just things people wanted to make for their own forums, made them and posted them so other people could use them as well - if mod authors were forced to create sourceforge projects ill bet 90% wouldnt post the mods! maybe encourage more people to post them on places like SnitzBitz tho.< |
|
|
samyot
Junior Member
Canada
242 Posts |
|
Classicmotorcycling
Development Team Leader
Australia
2084 Posts |
|
rabufo
Junior Member
Italy
328 Posts |
Posted - 24 November 2004 : 07:02:30
|
Thank you very much, Classic, I really was looking around for it!
Now, I need to disable the function allowing any user to delete files from his own directory, leaving of course that function for admin only. I know that I'd edit myfiles.asp file, but really I don't know where...can anyone kindly help, please?
There is also another problem: also when I upload a .jpg file, it appears the code [img]icon_paperclip.gif Download Attachment: [url="...... and not the one needed to show the picture in the post. Shouldn't it be automatic, the recognizing of an image file??? (BTW, the "Show images in post" option is on, and I already used Mike's attachment mode without that problem).
Hope someone will help...... Thank you< |
Edited by - rabufo on 24 November 2004 10:37:26 |
|
|
samyot
Junior Member
Canada
242 Posts |
|
smoutc
Starting Member
4 Posts |
Posted - 25 November 2004 : 12:24:27
|
quote: There is also another problem: also when I upload a .jpg file, it appears the code [img]icon_paperclip.gif Download Attachment: [url="...... and not the one needed to show the picture in the post. Shouldn't it be automatic, the recognizing of an image file??? (BTW, the "Show images in post" option is on, and I already used Mike's attachment mode without that problem).
I just downloaded this mod from classicmotorcycling's link, and had the same problem with images never showing as images in posts. The problem is in the outputfile.asp module. It sets ImageFileType=False, but never does the subsequent check to see if the file is actually an image or not. All I did was add a couple lines to the outputfile.asp file to check for this. I changed the section that looked like this:
'##### Check for allowed extensions strSQL = "SELECT EXTENSION FROM " & strTablePrefix & "CONFIG_EXTENSION WHERE " & vbNewLine strSQL = strSQL & "EXTENSION = '" & extension & "' " set rsExt = my_Conn.Execute (strSQL) if rsExt.EOF or rsExt.BOF then AllowFile=false else AllowFile=true end if
to this
'##### Check for allowed extensions strSQL = "SELECT EXTENSION FROM " & strTablePrefix & "CONFIG_EXTENSION WHERE " & vbNewLine strSQL = strSQL & "EXTENSION = '" & extension & "' " set rsExt = my_Conn.Execute (strSQL) if rsExt.EOF or rsExt.BOF then AllowFile=false else AllowFile=true select case extension case ".jpg", ".jpeg", ".gif", ".png" ImageFileType=True end select
end if
Another problem I noted with this module is that it does not allow spaces in the filenames, but the original Mike's File attachment mod always did. At the bottom of the outputfile.asp is the "isValidString function", which is where it checks the filename for invalid characters. I just put a ' in front of the three lines related to checking for spaces to remove this restriction, and the mod seems to still work fine. I was unclear why this change was made. (Do certain browsers or OS's have trouble handling file downloads with spaces in the name??)
The final question I have is the original post made reference to images being "thumbnailed" in the My Files page. It doesn't seem to do this, so I am wondering if the download from classicmotorcycling's link is not the most recent version.
Proeder??< |
|
|
amirh
Starting Member
2 Posts |
Posted - 11 December 2004 : 09:43:17
|
Yhe link is dead , can someone please send a working link ?< |
|
|
rabufo
Junior Member
Italy
328 Posts |
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 11 December 2004 : 10:28:01
|
Another link: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=199
If you add this in outputFile.asp select case extension
case ".jpg", ".jpeg", ".gif", ".png", ".bmp"'##Image File extensions
ImageFileType=true
case else'##Downloadable file extensions
ImageFileType=false
end select
select case extension
case ".jpg"
iconimage = strImageUrl & "fileicons/jpg.gif"
case ".gif"
iconimage = strImageUrl & "fileicons/gif.gif"
case ".bmp"
iconimage = strImageUrl & "fileicons/bmp.gif"
case ".zip"
iconimage = strImageUrl & "fileicons/winzip.gif"
case ".rar"
iconimage = strImageUrl & "fileicons/rar.gif"
case ".txt"
iconimage = strImageUrl & "fileicons/txt.gif"
case ".doc"
iconimage = strImageUrl & "fileicons/word.gif"
case ".pdf"
iconimage = strImageUrl & "fileicons/pdf.gif"
case".mid"
iconimage = strImageUrl & "fileicons/mp3.gif"
case ".mp3"
iconimage = strImageUrl & "fileicons/mp3.gif"
case else
iconimage = strImageUrl & "fileicons/icon_paperclip.gif"
end select just before '###### Check for invalid chars in filename you can have image displayed and a specific file icon in front of the file name. It's better to change also the script moving iconimage after Download Attachement Better layout!< |
Ernia e Laparocele Forum di Ernia e Laparocele Acces - MySql Migration Tutorial Adamantine forum |
Edited by - modifichicci on 11 December 2004 10:29:47 |
|
|
amirh
Starting Member
2 Posts |
Posted - 12 December 2004 : 09:00:31
|
Hi ,
Insert problem in the DB is caused by wrong table definition. Please chenge the nvchar 1 to nvchar30 .
Amir
< |
|
|
Trefenwyd
Starting Member
Italy
31 Posts |
Posted - 29 December 2004 : 22:39:13
|
hi proeder, thanks for this mod.
i got the same problem (images not displayed in the post), tried the fix suggested above, but the url in the code is not correct. when i upload an image to post I got this code:
Insert Image:
http://ravencup.raven-distribution.com/forum/photos/uploaded/tay/2004123044952_IMG_0104.JPG" border="0">
87.41 KB
i have the "http://ravencup.raven-distribution.com/forum/" added (its the forum folder)...and it should not be there!
any ideas?
thanks a lot!< |
Edited by - Trefenwyd on 29 December 2004 23:04:29 |
|
|
Topic |
|