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 Download Lib Mod 1.0
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

proeder
Junior Member

Australia
230 Posts

Posted - 17 February 2004 :  21:48:23  Show Profile  Visit proeder's Homepage

  • Zip Updated 20.02.2004: Bug in dbs File

  • Zip Updated 21.02.2004: Bugs in error listings



Hi,

as all the available download libs and filesharing mods did not satisfy me enough, I built something on my own. It works very well for me and if somebody is interested in using it itself - feel free to do so!

With this only admins or moderators can be authorised to make downloads available. You would define a main downloadfolder in which you would create different categories, for each of them a subfolder will be created. You may
  • upload files with your browser
  • replace existing files with the browser (e.g. you built a new version of a mod
  • delete files
  • set downloads online / offline


All file operations are made by the script, so be carefull what you are doing - deleting a downlodd will delete the file as well!
I prepared a demosite btw. on which you can checkout all this. Admin login is available.

Eval Forum

The mod comes in german and english version, included are readmes and dbs files.

Have fun.

Dowload dierctly here: Download Mod

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com

Edited by - proeder on 09 May 2004 05:53:09

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 18 February 2004 :  04:20:14  Show Profile
Another easy to install mod there Proeder..

Only issue is a missing & in inc_header.asp modification.

'##################### proeder's download mod: Link to filelibrary.asp ##################################
if strAllowDownloads = "1" then
Response.Write " <a href=""filelibrary.asp""" & dWStatus("Downloads") & " tabindex=""-1""><acronym title=""Downloads"">Downloads</acronym></a>" & vbNewline
" |" & vbNewline
end if
'###########################################################################################################

Cheers,

David Greening
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 18 February 2004 :  06:14:05  Show Profile  Visit proeder's Homepage
I am quite sure, that this won't be the last issue... Everything seems to work fine right now, but as I had a lot of trouble getting all the uploads / replace / delete operations to work without errors I am quit sure, that someone will run into a problem I was not aware of (There are so many cases you would have to think of...)

Let's have a look if that was the last &
The one you mentioned was actually the same than in the attachment mod

Zip updated.

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 18 February 2004 :  15:52:30  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Is this tested with MySQL? I got an error when running the dbs, it said that the FORUM_UPSIZE already existed. Checked in phpmyadmin and it's not there =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 18 February 2004 :  17:21:52  Show Profile  Visit proeder's Homepage
No this is not tested with MySQL Unfortunately I do not have the knowledge to do so; just glad that it works with SQL Server as well as with Access.

Your post does make me suppose you are running the board on a non windows server? I mentioned that shortly in the readme, maybe I need to make that more clear: I do not think that this mod will run on any other machine than a windows server as the script takes advantage of some windows file operations scripting options.

But anyways, I do not see any reason why it should recognize the table upsize while it's nt there...? Which dbs did you run?

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 19 February 2004 :  22:15:04  Show Profile
I always get "invalid string in filename" regardless of what file I use. I assumed that it may refer to a filename with a space in it but not the case, still get same results when I try a file with no space. I'm using Windows Server 2003 so the space shouldn't be an issue.

Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 19 February 2004 :  22:43:19  Show Profile  Visit proeder's Homepage
Yeah I had that problem too once. You might have a username with a space in it? I ask because the script actually renames the file by putting the username before it; test.zip would become admin_test.zip for example.

Look in lib_upload.asp for
filename = author & "_" & filename
and comment that line out.

If that does not help, look for
if not IsValidString(trim(filename)) then
  AllowExpression=false
else
  AllowExpression=true
end if
right after that write
AllowExpression=true

If that solves your problem, there is something in the isValidString function which does not allow your file. Let's first see what happens.
You're sure you're talking about the filename?

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2004 :  03:40:08  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
proeder: I have just changed hosts, will try this mod again (now on a windows server) I tested both dbs-files.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 20 February 2004 :  04:14:40  Show Profile  Visit proeder's Homepage
quote:
Originally posted by tribaliztic

proeder: I have just changed hosts, will try this mod again (now on a windows server) I tested both dbs-files.



There is a bug in the dbs which I did not recognize with Access but with SQL Server. Maybe that will solve your problem too. I updated the Zip right now, please doownload it again.

The upgrade dbs is only helpful if you have installed my attachment mod as it will not create the upsize table.

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2004 :  06:44:17  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Okay, will try this out right away =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2004 :  07:11:54  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
installed! =) This is working with MySQL =)
But I get the same error as CareFree when trying to upload a file. No space, no strange characters or anything. "error.gif" for example, I'm logged in as super-admin.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 20 February 2004 :  07:20:47  Show Profile  Visit proeder's Homepage
Is that a server error or an error which is created by the script? Also did you try to turn off the isvalidstring function as I told Carefree?

If there is a problem with the function that would interest me as well...

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2004 :  07:34:53  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
It's your error in german/english. Also, I have to select the text in the errormsg, otherwise it don't show. It's the same color as the background.
I'll try that isvalidstring-stuff now =)

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 20 February 2004 :  07:48:29  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
This is the errormsg:
Dateigrösse - You did not provide a filesize
Beschreibung - You did not provide a description
Invalid string in filename Please do not use one of the following characters:
"!#$%^&*()=+{}[]|\;:/?>,<'@
Please do not use spaces in filenames!

tried adding the "AllowExpression=true" with no luck.

Also, what syntax should I use in the "filesize" box? "32kB" or "32000"(bytes) or something else?

EDIT: No luck with commenting out the "filename = author & "_" & filename" either.

/Tribaliztic
- www.gotlandrace.se -

Edited by - tribaliztic on 20 February 2004 07:56:58
Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 20 February 2004 :  16:46:20  Show Profile
I also get these errors (in english of course). Mind you they are in the same color as the backgound so it makes it harder to read.
quote:
Originally posted by tribaliztic

This is the errormsg:
Dateigrösse - You did not provide a filesize
Beschreibung - You did not provide a description
Invalid string in filename Please do not use one of the following characters:
"!#$%^&*()=+{}[]|\;:/?>,<'@
Please do not use spaces in filenames!

tried adding the "AllowExpression=true" with no luck.

Also, what syntax should I use in the "filesize" box? "32kB" or "32000"(bytes) or something else?

EDIT: No luck with commenting out the "filename = author & "_" & filename" either.

I have also tried the work arounds, but sinply find by not using any other characters other than Letters, numerics and a spaces, it works fine.

I was looking for for an answer before making it available to members.

Cheers,

David Greening
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 20 February 2004 :  20:37:41  Show Profile  Visit proeder's Homepage
I have to apologize; the latest bugfix was more or less a bugadd. But I've foud the errors. Give me a few hours, I am goin to update the zip this afternoon.

Looking for german Snitz forum? Suchst Du ein deutsches Snitz Forum?
Hier findest Du eins...

Hosting with ASP Support available: http://www.sharepointing.com
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07