| Author |  Topic  | 
              
                | SixStarting Member
 
 
 
                10 Posts | 
                    
                      |  Posted - 15 October 2002 :  22:18:18   
 |  
                      | quote:Originally posted by goldfish
 
 ** WARNING - PEDANT AT WORK **
 
 Outputfile.asp
 
 Line 79 - Received is spelt wrong ('i' before 'e' except after 'c', as my Mum always taught me....
  ) 
 Sorry...
 
 Simon
 
 
 
 Mum? your not from PA are you Simon
  
 Questions;
 Snitz 3.4.03
 I installed the file attachment mod so that it creates user dir.
 
 On my test IIS server it works.
 it is storing the file in this dir
 example: forum\data\username\smile.gif
 
 My hosted site uploading files doesn't work.
 Users and Admin can upload photos but cant upload files.
 I have emailed my provider asking that the read\write permission
 on the uploads dir be enabled. ISP emailed me and said it was done.
 But it still doesn't work.
 
 Confused on where the files should be going I thought it was going to the uploads dir.
 
 Is the uploads dir for photo album mod, and the
 wwwroot\forum\data\ <--- for the Insert a file feature?
 
 Or is this still a permissions issue with my provider?
 
 Thanks in Adv
 Six
 
 
 |  
                      | Edited by - Six on 15 October 2002  22:19:00
 |  
                      |  |  | 
              
                | goldfishNew Member
 
  
 
                82 Posts | 
                    
                      |  Posted - 16 October 2002 :  12:26:55   
 |  
                      | quote:Originally posted by Six
 
 Mum? your not from PA are you Simon
  
 
 Not quite...  if I told you I could see Big Ben and the Thames from my office, would that be a clue...
  
 Simon
 |  
                      |  |  | 
              
                | GooeyNew Member
 
  
 
                55 Posts | 
                    
                      |  Posted - 17 October 2002 :  08:07:33   
 |  
                      | quote:Originally posted by Ez4arab
 
 I have problem in the mod that is
 
 - Separate Folders (Directory) or for each Member that's Uploaded Pics!
 
 I am using Arabic version and the users used Arabic names in my forum. When they upload the files the URL gives wrong because the Arabic URL not accepted.
 
 My idea is to convert the user name directory to he's member ID. this will be batter for other lang.
 
 
 
 
 Sounds like a mighty fine idea to me...
 |  
                      | Edited by - Gooey on 17 October 2002  08:07:54
 |  
                      |  |  | 
              
                | Ez4arabJunior Member
 
   
 
                479 Posts | 
                    
                      |  Posted - 17 October 2002 :  11:19:46     
 |  
                      | do you think i need to change this code only if i change this code it will be ok
 i donot test this code to give member_ID instate of username.
 
 
 "<input type=""hidden"" name=""memberName"" value=""" & strDBNTUserName & """>" & vbNewline & _
  membername = UploadRequest.Item("memberName").Item("Value")
  subfolder = subfolder & "/" & membername
 
 which value i can put here =""" & strDBNTUserName & "
 
 
  membername = UploadRequest.Item("memberName").Item("Value")
  subfolder = subfolder & "/" & membername |  
                      | Ez4arab web site Ez4arab |
 |  
                      | Edited by - Ez4arab on 17 October 2002  11:25:15
 |  
                      |  |  | 
              
                | MoggsterStarting Member
 
 
 
                7 Posts | 
                    
                      |  Posted - 17 October 2002 :  18:30:59   
 |  
                      | Very nice work on this mod!  even though I have a hard time convincing my host to allow Inetuser upload so is there a way to modify the script and gain access through a FTP connection instead? 
 Maybe this next one should be easier...
 There is a cgi-data folder among the web folders that should have read/write enabled by default. How can I make som ajustments to the server path so it points to this folder instead, maybe something like \..\..\cgi-data ?
 
 thx
 
 |  
                      | Edited by - Moggster on 25 October 2002  00:42:34
 |  
                      |  |  | 
              
                | webbeeJunior Member
 
   
 
                100 Posts | 
                    
                      |  Posted - 25 October 2002 :  09:11:57     
 |  
                      | I can see this mod has evolved quite a bit. Does anyone have the code available for 3.3? I would like to install it on my forum and is seems like a lot of you have tweaked it along the way. Could I get a final copy if that even exists? |  
                      | garnold@teamfatbastard.net
 
  |  
                      |  |  | 
              
                | barky81Junior Member
 
   
 
                USA166 Posts
 | 
                    
                      |  Posted - 01 November 2002 :  18:34:47   
 |  
                      | I used hosted space (not my own server) that supports the filesystemobject, but my writeable cgi-bin folder is located OUTSIDE of my forum directory, and therefore I need to edit this Mod's code. 
 I need help finishing my editing of this piece of the code in
 outputFile.asp 
 Note that I have changed this part:
 
 
 'Create FileSytemObject Component
  Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
  memberPath = (Server.MapPath("/cgi-bin/uploaded") & "\" & membername)
    If not ScriptObject.FolderExists(memberPath) then  
	 	ScriptObject.createFolder(memberPath)
  	end if  
 It now uses the cgi-bin folder present in my hosted space (and which already has write permissions) for uploads. I have verified that it actually creates the necessary member subfolder if it does not already exist...
 
 However, I also need to edit this additional code to also use the correct path. Any suggestions?
 
 
 
  'Create and Write to a File
  pathEnd = Len(Server.mappath(Request.ServerVariables("PATH_INFO")))-14
  Set MyFile = ScriptObject.CreateTextFile(Left(Server.mappath(Request.ServerVariables("PATH_INFO")),pathEnd) & SUBFOLDER & "\" & filename)
 Even better, anyone seem an upload script that includes a user configurable upload directory?
 |  
                      | Edited by - barky81 on 04 November 2002  03:39:25
 |  
                      |  |  | 
              
                | be4youNew Member
 
  
 
                61 Posts | 
                    
                      |  Posted - 04 November 2002 :  19:03:44     
 |  
                      | Have some problems showing the pic 
 I get this mes: Download Attachment:  volvo2.jpg
 9.18 KBnow
 
 The pic doesn’t show. looks like the automatic url is wrong (in red)?
 b]Download Attachment:[/b] url="http://forum.snitz.com/forum/uploaded/be4you/2002114163249_volvo2.jpg
 
 
 --------------------------------------------------------------------------------
 
 If I follow this link I get the pic: http://www.be-4-you.com/forum/uploaded/be4you/2002114174025_volvo2.jpg
 
 
 |  
                      |  |  | 
              
                | ClassicmotorcyclingDevelopment Team Leader
 
      
 
                Australia2085 Posts
 | 
                    
                      |  Posted - 05 November 2002 :  00:08:50   
 |  
                      | Have you gone to your admin pages and changed the url of your forum? It looks like you are using the default url of your forums DB. Under "Main Forum Configuration" what do you have for the "Forum URL" in you Administration page? I would say that you have http://forum.snitz.com/forum/. Am I correct? Change the to http://www.be-4-you.com/forum/.  
 quote:Originally posted by be4you
 
 Have some problems showing the pic
 
 I get this mes: Download Attachment:  volvo2.jpg
 9.18 KBnow
 
 The pic doesn’t show. looks like the automatic url is wrong (in red)?
 b]Download Attachment:[/b] url="http://forum.snitz.com/forum/uploaded/be4you/2002114163249_volvo2.jpg
 
 
 --------------------------------------------------------------------------------
 
 If I follow this link I get the pic: http://www.be-4-you.com/forum/uploaded/be4you/2002114174025_volvo2.jpg
 
 
 
 |  
                      | Cheers,
 
 David Greening
 |  
                      |  |  | 
              
                | be4youNew Member
 
  
 
                61 Posts | 
                    
                      |  Posted - 05 November 2002 :  07:01:36     
 |  
                      | Thanks! 
 Found and change it!!
  |  
                      |  |  | 
              
                | be4youNew Member
 
  
 
                61 Posts | 
                    
                      |  Posted - 05 November 2002 :  13:19:45     
 |  
                      | Now the upload works but the pic don't show: --------------------------------------------------------------------------------
 
 Download Attachment:
  volvo.jpg 19.61 KB
 --------------------------------------------------------------------------------
 
 If you click on the link the pic opens in a new window but the pic don't open in the forum.
 
 Anyone??
 |  
                      | Edited by - be4you on 05 November 2002  13:20:21
 |  
                      |  |  | 
              
                | titaniumStarting Member
 
 
 
                6 Posts | 
                    
                      |  Posted - 05 November 2002 :  17:00:52   
 |  
                      | I'm with barky81 on this one ... 
 My writeable folder is located OUTSIDE of my forum directory.
 
 Any solutions?
 
 Thanks in advance!
 |  
                      |  |  | 
              
                | barky81Junior Member
 
   
 
                USA166 Posts
 | 
                    
                      |  Posted - 05 November 2002 :  23:27:27   
 |  
                      | File Lister actually has an Admin interface where you can spec your path to your writeable directory. 
 
 quote:Originally posted by titanium
 
 I'm with barky81 on this one ...
 
 My writeable folder is located OUTSIDE of my forum directory.
 
 Any solutions?
 
 Thanks in advance!
 
 
 |  
                      |  |  | 
              
                | DJ5AJunior Member
 
   
 
                163 Posts | 
                    
                      |  Posted - 06 November 2002 :  17:49:33   
 |  
                      | Hello: 
 More Questions?
 Please Bare with me on this? :)
 
 Is there a way they could Delete Old Files?
 
 Is there a Way to Prevent Linking to these Files from other Web Sites?
 
 How Hard would it be to Place a Limit on how many Pics they can have in their Folder?
 
 Is there a Way to View the Filenames that are already Loaded, So they can get the Path again to that Uploaded File?
 
 I'm Happy with the Mod, Just Of Course Wanting it a Little Easier on Me! :)
 |  
                      | Thank You for Your Time!!!!!
 DJ5A
 |  
                      | Edited by - DJ5A on 07 November 2002  00:00:58
 |  
                      |  |  | 
              
                | suhernJunior Member
 
   
 
                186 Posts | 
                    
                      |  Posted - 08 November 2002 :  12:02:25   
 |  
                      | Help please. 
 I am using this mod and I want to modify it such that it will put the resulting url into a text field call "url". This is the javascript line I used in the outputfile.asp
 
 
 window.opener.PostTopic.url.value=window.opener.PostTopic.url.value + "\n\nDownload Attachment: [url=\"<% =strForumURL %><% =SUBFOLDER %>/<% =filename %>\"] <% =oldfilename %>[/url]
<% =strFileSize %>"; 
 The file is uploaded successfully but I am getting java script error "null or not an object"
 
 |  
                      |  |  | 
              
                
                |  Topic  |  |