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

RedLeader
New Member

USA
85 Posts

Posted - 23 May 2005 :  20:56:07  Show Profile  Visit RedLeader's Homepage  Send RedLeader an AOL message  Reply with Quote
A long night staring at code... nevermind. My Devtools are playing tricks on me and reloaded my config file before it was saved.<
Go to Top of Page

lcamara
Starting Member

USA
10 Posts

Posted - 14 June 2005 :  13:58:32  Show Profile  Reply with Quote
I'd like to add more icons for file types, (specifically .xls & .dwg). What files do I need to modify (I know I can add more lines for the icons, but where do I need to add the icon-to-file-extension map)?<

Edited by - lcamara on 14 June 2005 13:59:03
Go to Top of Page

Sonic
New Member

Germany
82 Posts

Posted - 17 July 2005 :  14:48:56  Show Profile  Visit Sonic's Homepage  Reply with Quote
i've found a little bug in the script

--> the error appears if someone like to upload a file without a extention
then it comes a error message from the iis

--> solution
search in the file --> outputfile.asp
follow lines:

if filename = "" then
response.redirect "pop_upload_new.asp"
else
extension = LCase(Mid(filename,InStrRev(filename,".")))
end if
----------------------------------------------------------
replace with: ( red marked )

if filename = "" or InStr(filename, ".") = 0 then
response.redirect "pop_upload_new.asp"
else
extension = LCase(Mid(filename,InStrRev(filename,".")))
end if

sorry for my bad english :-)<

ich finds genial...
bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag

Edited by - Sonic on 17 July 2005 16:07:28
Go to Top of Page

lcamara
Starting Member

USA
10 Posts

Posted - 17 August 2005 :  23:22:07  Show Profile  Reply with Quote
FYI, I created a combined mod & add-on (see http://www.snitzbitz.com/mods/details.asp?Version=All&mid=199) that includes some of the fixes posted in this forum.

lcamara's CAD Mod 1.0 (and proeder's File Attachment Mod 1.2 CAD Add-on)<
Go to Top of Page

Sonic
New Member

Germany
82 Posts

Posted - 18 August 2005 :  04:15:44  Show Profile  Visit Sonic's Homepage  Reply with Quote
wow good work
i've just modificated my code and it works fine thx a lot<

ich finds genial...
bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag
Go to Top of Page

Sonic
New Member

Germany
82 Posts

Posted - 20 August 2005 :  10:41:17  Show Profile  Visit Sonic's Homepage  Reply with Quote
litte mod:

- to prevent leachers to steal image / file link
- protect file path

file path on server looks like:
--> c:\wwwroot\page\files\ds9f7sda9f70asd5\username
you can change the save folder in the admin pannel

user only see this link of a image / file:
http://aspire/page/pages/getfile.asp?view=image&FName=admin/4.jpg
http://aspire/page/pages/getfile.asp?view=file&FName=admin/abc.zip

if someone copy the link in the browser he only get the:
http://aspire/page/img/page/leacher.gif <-- leacher image not the file or folder

little bug i know is:
disallow txt or pdf files because they will open directly in the browser.
so users know the save folder!!!


download:
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=199

demo view from GMT+1 18:00 till 22:00
www.sonic-aug24.mine.nu/page/

user: 123
pw: 123

to see --> upload a jpg file oder zip and look in the preview window after the image link of your file
or copy the link and open it in your browser

------------------------------------
i want to expand this mod to the photo gallery so no one can get the photo directory<

ich finds genial...
bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag

Edited by - Sonic on 20 August 2005 10:42:28
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 21 August 2005 :  03:19:34  Show Profile  Visit hans_'s Homepage  Reply with Quote
Thanks for links Sonic<
Go to Top of Page

kbudgie
Starting Member

14 Posts

Posted - 24 August 2005 :  19:42:45  Show Profile  Visit kbudgie's Homepage  Reply with Quote
I love this mod!! Thanks Proeder<
Go to Top of Page

Barry Ferguson
Starting Member

Australia
16 Posts

Posted - 24 August 2005 :  20:34:01  Show Profile  Reply with Quote
I did a clean install and received this error on the forth line:

INSERT INTO FORUM_CONFIG_NEW (C_VARIABLE,C_VALUE) VALUES ('STRALLOWATTACHMENT','1')
INSERT INTO FORUM_CONFIG_NEW (C_VARIABLE,C_VALUE) VALUES ('STRUPLOADURL','')
INSERT INTO FORUM_CONFIG_NEW (C_VARIABLE,C_VALUE) VALUES ('STRUPLOADURL','')
-2147467259 | Field 'FORUM_CONFIG_NEW.C_VALUE' cannot be a zero-length string.
________________________________________

Dropping Table..

Table does not exist
________________________________________

Creating table(s)...
CREATE TABLE FORUM_UPSIZE( ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , UPLOAD_VAR varchar NULL , UPLOAD_VALUE int NULL )
Table created successfully
________________________________________

Creating table(s)...
CREATE TABLE FORUM_CONFIG_EXTENSION( ID int IDENTITY (1, 1) PRIMARY KEY NOT NULL , EXTENSION text (15) NULL )
Table created successfully
________________________________________

Adding new records..
INSERT INTO FORUM_UPSIZE (UPLOAD_VAR,UPLOAD_VALUE) VALUES ('STRTIMEOUT','3600')
INSERT INTO FORUM_UPSIZE (UPLOAD_VAR,UPLOAD_VALUE) VALUES ('STRUPLOADFILESIZE','100000')

Value(s) updated successfully
________________________________________

If there were errors please post a question in the MOD Implementation Forum at
Snitz Forums

Can anyone advise please

<
Go to Top of Page

Sonic
New Member

Germany
82 Posts

Posted - 25 August 2005 :  12:38:55  Show Profile  Visit Sonic's Homepage  Reply with Quote
enter this in the alternate db mod
-->

INSERT INTO FORUM_CONFIG_NEW (C_VARIABLE,C_VALUE) VALUES ('STRALLOWATTACHMENT','1')
INSERT INTO FORUM_CONFIG_NEW (C_VARIABLE,C_VALUE) VALUES ('STRUPLOADURL','/files/')

after that edit in the admin attachment the path of the uploaded files

<

ich finds genial...
bei uns ist es ratzekuz dunkel und bei dene alle heller nachmittag
Go to Top of Page

chf
Starting Member

6 Posts

Posted - 30 September 2005 :  20:50:09  Show Profile  Reply with Quote
I'm doing a clean install and get this error:

Adding new records..
INSERT INTO FORUM_UPSIZE (UPLOAD_VAR,UPLOAD_VALUE) VALUES ('STRTIMEOUT','3600')
INSERT INTO FORUM_UPSIZE (UPLOAD_VAR,UPLOAD_VALUE) VALUES ('STRUPLOADFILESIZE','100000')
INSERT INTO FORUM_UPSIZE (UPLOAD_VAR,UPLOAD_VALUE) VALUES ('STRUPLOADFILESIZE','100000')
-2147217865 | [MySQL][ODBC 3.51 Driver][mysqld-4.0.24-max-log]Table 'test.FORUM_UPSIZE' doesn't exist

Please help.
<
Go to Top of Page

chf
Starting Member

6 Posts

Posted - 03 October 2005 :  14:07:25  Show Profile  Reply with Quote
Any ideas? :)<
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 03 October 2005 :  15:37:56  Show Profile  Visit modifichicci's Homepage  Reply with Quote
Try this dbs
Attachement Insert
[INSERT]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#('STRALLOWATTACHMENT','1')
(C_VARIABLE,C_VALUE)#('STRUPLOADURL','attach')
[END]
[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]

In red are the changes, the dir of upload has to be set as your dir is. I have written attach but it can be what you want.
This has worked on mysql 4.0.25 try and say something
<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

chf
Starting Member

6 Posts

Posted - 03 October 2005 :  17:05:18  Show Profile  Reply with Quote
modifichicci, thank you for your reply!

I used your dbs and installation finished succesfully!

There was one section though saying:
--------------------------------------------------------------------------------

Dropping Table..

Table does not exist
--------------------------------------------------------------------------------

Now the problem is when I click "Reply to Topic" or "New Topic" it gives "the page cannot be displayed" page.

I don't have a write access for anonymous users on the "attach" folder yet. Could it be a reason?

Thank you for your help!<
Go to Top of Page

chf
Starting Member

6 Posts

Posted - 04 October 2005 :  12:04:02  Show Profile  Reply with Quote
I reinstalled post.asp file and it's working now!

!!!!!!!!!!!!!!!!!!!<
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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07