Author |
Topic |
RedLeader
New Member
USA
85 Posts |
Posted - 23 May 2005 : 20:56:07
|
A long night staring at code... nevermind. My Devtools are playing tricks on me and reloaded my config file before it was saved.< |
|
|
lcamara
Starting Member
USA
10 Posts |
Posted - 14 June 2005 : 13:58:32
|
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 |
|
|
Sonic
New Member
Germany
82 Posts |
Posted - 17 July 2005 : 14:48:56
|
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 |
|
|
lcamara
Starting Member
USA
10 Posts |
|
Sonic
New Member
Germany
82 Posts |
Posted - 18 August 2005 : 04:15:44
|
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 |
|
|
Sonic
New Member
Germany
82 Posts |
Posted - 20 August 2005 : 10:41:17
|
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 |
|
|
hans_
Junior Member
Czech Republic
161 Posts |
Posted - 21 August 2005 : 03:19:34
|
Thanks for links Sonic< |
|
|
kbudgie
Starting Member
14 Posts |
Posted - 24 August 2005 : 19:42:45
|
I love this mod!! Thanks Proeder< |
|
|
Barry Ferguson
Starting Member
Australia
16 Posts |
Posted - 24 August 2005 : 20:34:01
|
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
< |
|
|
Sonic
New Member
Germany
82 Posts |
Posted - 25 August 2005 : 12:38:55
|
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 |
|
|
chf
Starting Member
6 Posts |
Posted - 30 September 2005 : 20:50:09
|
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. < |
|
|
chf
Starting Member
6 Posts |
Posted - 03 October 2005 : 14:07:25
|
Any ideas? :)< |
|
|
modifichicci
Average Member
Italy
787 Posts |
Posted - 03 October 2005 : 15:37:56
|
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 |
|
|
chf
Starting Member
6 Posts |
Posted - 03 October 2005 : 17:05:18
|
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!< |
|
|
chf
Starting Member
6 Posts |
Posted - 04 October 2005 : 12:04:02
|
I reinstalled post.asp file and it's working now!
!!!!!!!!!!!!!!!!!!!< |
|
|
Topic |
|