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)
 Mike's File Attachment Mod for Snitz
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 15

Six
Starting Member

10 Posts

Posted - 15 October 2002 :  22:18:18  Show Profile
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
Go to Top of Page

goldfish
New Member

82 Posts

Posted - 16 October 2002 :  12:26:55  Show Profile
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
Go to Top of Page

Gooey
New Member

55 Posts

Posted - 17 October 2002 :  08:07:33  Show Profile
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
Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 17 October 2002 :  11:19:46  Show Profile  Visit Ez4arab's Homepage
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
Go to Top of Page

Moggster
Starting Member

7 Posts

Posted - 17 October 2002 :  18:30:59  Show Profile
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
Go to Top of Page

webbee
Junior Member

100 Posts

Posted - 25 October 2002 :  09:11:57  Show Profile  Visit webbee's Homepage  Send webbee an AOL message  Send webbee a Yahoo! Message
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
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 01 November 2002 :  18:34:47  Show Profile
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
Go to Top of Page

be4you
New Member

61 Posts

Posted - 04 November 2002 :  19:03:44  Show Profile  Visit be4you's Homepage
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

Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 05 November 2002 :  00:08:50  Show Profile
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
Go to Top of Page

be4you
New Member

61 Posts

Posted - 05 November 2002 :  07:01:36  Show Profile  Visit be4you's Homepage
Thanks!

Found and change it!!
Go to Top of Page

be4you
New Member

61 Posts

Posted - 05 November 2002 :  13:19:45  Show Profile  Visit be4you's Homepage
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
Go to Top of Page

titanium
Starting Member

6 Posts

Posted - 05 November 2002 :  17:00:52  Show Profile
I'm with barky81 on this one ...

My writeable folder is located OUTSIDE of my forum directory.

Any solutions?

Thanks in advance!
Go to Top of Page

barky81
Junior Member

USA
166 Posts

Posted - 05 November 2002 :  23:27:27  Show Profile
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!

Go to Top of Page

DJ5A
Junior Member

163 Posts

Posted - 06 November 2002 :  17:49:33  Show Profile
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
Go to Top of Page

suhern
Junior Member

186 Posts

Posted - 08 November 2002 :  12:02:25  Show Profile
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"
Go to Top of Page
Page: of 15 Previous Topic Topic Next Topic  
Previous Page | 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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07