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 | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

proeder
Junior Member

Australia
230 Posts

Posted - 19 May 2004 :  19:17:54  Show Profile  Visit proeder's Homepage  Reply with Quote
Obvously another bug I did not realize. There is a varchar definition missing in the dbs script.

As you know propably already have the records in CONFIG_NEW you may fire up the following code in the 'Alternative Mod Setup' Page


[DROP]
UPSIZE
CONFIG_EXTENSION
[END]
[CREATE]
UPSIZE
ID
UPLOAD_VAR#VARCHAR (20)#NULL#
UPLOAD_VALUE#int#NULL#
[END]
[CREATE]
CONFIG_EXTENSION
ID
EXTENSION#VARCHAR (15)#NULL#
[END]
[INSERT]
UPSIZE
(UPLOAD_VAR,UPLOAD_VALUE)#('STRTIMEOUT','3600')
(UPLOAD_VAR,UPLOAD_VALUE)#('STRUPLOADFILESIZE','100000')
[END]


This will drop and create all the tables again - now with the correct varchar value. Shold work like this.

Sorry for any inconveniance...
<

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

proeder
Junior Member

Australia
230 Posts

Posted - 19 May 2004 :  19:19:20  Show Profile  Visit proeder's Homepage  Reply with Quote
FatherFrench: I'm gonna try to look into this 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

wchyrchel
Starting Member

6 Posts

Posted - 19 May 2004 :  20:37:57  Show Profile  Reply with Quote
Limit uploads to Moderators and Admins

I saw in a previous reply that someone was able to limit the uploads to Moderators and Admins only. Does anyone know how to do that?

Thanks for the help!<
Go to Top of Page

wchyrchel
Starting Member

6 Posts

Posted - 19 May 2004 :  20:44:08  Show Profile  Reply with Quote
Sorry, one more.

In the My Files area or even in a post if I click on the file to view or display it, I receive an page cannot be displayed error. Any idea's?<
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 19 May 2004 :  23:52:28  Show Profile  Visit proeder's Homepage  Reply with Quote
Download Add-On

Okay, as some people had the idea to restrict attachments a bit more here is my proposal:

  • activate attachments globally on the board will only give admins the possibility to allow attachments in a forum
  • admins or mods need to activate attachments explicitely (?)in their forums

  • even if attachments are not allowed in a specific forum, admins and moderators will still have the ability to attach files


Please donwload the add-on and try implementing it, if it works for you too, I am going to include that in the mod and re-release it.
It is quit a bit coding, but it worked fine for me.
In the download included are two additional files: post.asp and post_info.asp which you might use directly if you did not make any further changes to your files.

Please let me know how it works.

Download Add-On

I think this is better than allowing attachments in private forums or where ever as this gives you full control over where attachements are possible and where not.<

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 19 May 2004 23:55:27
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 19 May 2004 :  23:57:03  Show Profile  Visit proeder's Homepage  Reply with Quote
@wchyrchel: How does the link to the attachment look like? Looks the path ok?<

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

wchyrchel
Starting Member

6 Posts

Posted - 20 May 2004 :  14:46:47  Show Profile  Reply with Quote
Sorry Proeder, can't seem do download the add on. I keep getting a page cannot be displayed error. This is the url, http://www.sharepointing.com/download/allow_attachments_per_forum.zip

Thanks for the quick reply though. I will be glad to implement the change as soon as I can download it!<
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 22 May 2004 :  01:03:58  Show Profile  Visit proeder's Homepage  Reply with Quote
Sorry, I had some major server problems... Link is now working again!<

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

hkozlovsky
Starting Member

17 Posts

Posted - 24 May 2004 :  17:05:21  Show Profile  Reply with Quote
Proeder - I noticed that you state the last change to this zip was made on 5-9-04. I noticed no timestamp on any files beyond 5-2-04.

I tried installing and encountered a number of errors in test. I want to be sure before I pursue again that the zip I downloaded was the latest and greatest without any known bugs.

Is all ok with this zip? If yes I will try again and let you know what I encounter.

Thank you.<
Go to Top of Page

FatherFrench
Starting Member

6 Posts

Posted - 26 May 2004 :  03:41:12  Show Profile  Reply with Quote
Hi Proeder,
I have updated your mod and its looking good, but, the dropdown for allowing attachments in the forums keeps re-setting back to not allowed, bar this is all seems to work fine, any ideas?
Kindest regards.<
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 26 May 2004 :  04:31:02  Show Profile  Visit proeder's Homepage  Reply with Quote
Must have forgot to pull the value from db - I'll look into that.<

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

proeder
Junior Member

Australia
230 Posts

Posted - 26 May 2004 :  04:40:17  Show Profile  Visit proeder's Homepage  Reply with Quote
Hm... it does not behave like that in my testforum. Did you use the attched post.asp or did you follow you the readme?<

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

proeder
Junior Member

Australia
230 Posts

Posted - 26 May 2004 :  04:42:36  Show Profile  Visit proeder's Homepage  Reply with Quote
hkozlovsky: I think the latest update was regarding the download link; the zip which you can download from the link should be the latest.

But be aware that I am rigth before releasing a new version with enhanced features in the next few days.<

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

Spiff
Starting Member

USA
1 Posts

Posted - 26 May 2004 :  23:58:33  Show Profile  Reply with Quote
After realizing (not mentioned in the instructions) to add code to POST.ASP from either POST.DEUTSCH.ASP or POST.ENGLISH.ASP, and ignore the supplied (and buggy) POST.ASP, the mod went in without a hitch. It's a very nice enhancement.

I do have a question though...

Have I overlooked an admin option somewhere that deletes uploaded files??? I could delete the files manually, but that doesn't clean up DB entries and eventually the tables would become huge even if the upload directories were empty.

Thanks.<
Go to Top of Page

proeder
Junior Member

Australia
230 Posts

Posted - 27 May 2004 :  01:39:44  Show Profile  Visit proeder's Homepage  Reply with Quote
Spiff:

You may delete files when you're logged in as admin and go to myfiles.asp. You are right that this does not delete the links in the regarding posts.

I am working on a new release which will store information to attachments in a database field rather than just writing a link in the post to it.
<

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 13 Previous Topic Topic Next Topic  
Previous Page | Next 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.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07