Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - problem with posting
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

problem with posting

 Post Reply Post Reply Page  <123>
Author
nousha View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2003
Location: Egypt
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nousha Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 9:22am
Originally posted by india india wrote:

** How did you do that ? plz explain. i tried and i could not get it working

well i used the upload without component mod - u can search 4 it - it's somewhere in the forum



Edited by nousha
Back to Top
nousha View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2003
Location: Egypt
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nousha Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 9:35am
Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 9:38am
Originally posted by nousha nousha wrote:

Originally posted by india india wrote:

** How did you do that ? plz explain. i tried and i could not get it working

well i used the upload without component mod - u can search 4 it - it's somewhere in the forum

i have seen that link but i could not get it working.

plz explain how u configured it. and who is ur webhost ?

Back to Top
nousha View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2003
Location: Egypt
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nousha Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 9:58am

my webhost is: www.domaindlx.com - my forum version: 7.01

the steps I made r as following:

1. I downloaded this file

2. i uploaded those two files: clsField.asp and clsUpload.asp in the functions folder (forum folder)

3. i didn't actually use the other files in the zip in anything

4. i followed the instructions mentionend in the link i gave u (i use Editplus as an editor and I think u should also use an editor that displays the line numbers as any mistake will make it not work)

here r the instructions:

Find these files and edit them like so:

-----------------------------------------------
upload_configure.asp (inside the admin folder)
-----------------------------------------------

On line 264, find this:
Code:

        <option value="AspSimple"<% If strUploadComponent = "AspSimple" Then Response.Write(" selected") %>>AspSimpleUpload</option>


Below that, insert this:
Code:

        <option value="none"<% If strUploadComponent = "none" Then Response.Write(" selected") %>>No Components</option>


-----------------------------------------------
functions_upload.asp (inside the functions folder)
-----------------------------------------------

On line 1, before the <% symbols, create a blank line and insert this:
Code:

<!--#INCLUDE FILE="clsUpload.asp"-->



On line 71, find these lines:
Code:

     'Select which upload component to use
     Select Case strUploadComponent



Below those, insert this:
Code:

           '******************************************
           '*** Pure ASP Upload (no components) ****
           '******************************************

           'Pure ASP (no components)
           Case "none"

                'Create upload object
                Set objUpload = New clsUpload

                With objUpload

                      'Grab the file name
                      strNewFileName = .Fields("file").FilePath

                      'Remove the path from the file name
                      strNewFileName = Right(strNewFileName, Len(strNewFileName)-InStrRev(strNewFileName, "\"))

                      'Replace spaces with underscores
                      strNewFileName = Replace(strNewFileName, " ", "_", 1, -1, 1)

                      'Append the username to avoid duplicate filenames
                      'strNewFileName = strLoggedInUsername & "_" & strNewFileName

                      'Check the file size
                      lngErrorFileSize = fileSize(.Fields("file").Length, intMaxFileSize)

                      'Check the extension
                      blnExtensionOK = fileExtension(strNewFileName, saryFileUploadTypes)

                      'If the file is OK save it to disk
                      If lngErrorFileSize = 0 AND blnExtensionOK = True Then

                           'Save the binary data to a file
                           .Fields("file").SaveAs Server.MapPath(strFileUploadPath) & "\" & strNewFileName

                         &nbs
Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 10:35am

Nousha, which folder did u configure upload too ?
What upload path u set in admin area ?

Did u create upload folder ?
Did u give them write permissions ? If yes how ?
and to match with upload folder, did you change anything in any file ???

thx

Back to Top
nousha View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2003
Location: Egypt
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nousha Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 2:11pm

i didn't actually create upload folder

u know there's an upload folder already - i didn't use that upload2 in the zip file or anything

i did nothing but uploading the clsField.asp and clsUpload.asp in the functions folder (forum folder) and edited the files mentioned above

luckily that my host does't require me to give write permissions as there are already

Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post Posted: 23 December 2003 at 1:35am
Originally posted by nousha nousha wrote:

u know there's an upload folder already - i didn't use that upload2 in the zip file or anything

Thanks 4 ur reply.
If im not wrong, Windows webhosts give read n write permissions by default bcuz CHMOD does NOT work on their servers.
What path did u give 2 upload folder i n admin area ?

Back to Top
Zagury View Drop Down
Newbie
Newbie


Joined: 23 December 2003
Location: Israel
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Zagury Quote  Post ReplyReply Direct Link To This Post Posted: 23 December 2003 at 9:05am

What you mean when you say; enable the RTE ??

and sorry about my english.. i am an isreali

Back to Top
 Post Reply Post Reply Page  <123>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.