Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Modify RTE FILE BROWSER
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Modify RTE FILE BROWSER

 Post Reply Post Reply Page  12>
Author
Alessandro1983 View Drop Down
Newbie
Newbie


Joined: 06 December 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alessandro1983 Quote  Post ReplyReply Direct Link To This Post Topic: Modify RTE FILE BROWSER
    Posted: 18 April 2008 at 1:51pm
Hi i want to modify the path of the blank box in the page of the upload image (RTE_popup_adv_image.asp)
The blank box depend by the file RTE_FILE_BROWSER in this file there is the path of the uploaded file! /uploads/public
but i want to change this path with only /public general public folder!
the forum is in the folder http:www.mysite.com/forum
and i want to change the path into
http:www.mysite.com/public
it's clear??
how can i do this change??
please help me because this is veri important for me!
thanks
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 1:55pm
Such a change would not be possible without coursing all sorts of problems. The public directory needs to be a sub domain of teh forum.
Back to Top
Alessandro1983 View Drop Down
Newbie
Newbie


Joined: 06 December 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alessandro1983 Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 2:03pm
in aruba windows i can only upload image in general public folder
so i HAVE TO change the path
please can you tell me how can i change...if there are some problems after this is problems of mine
Back to Top
Alessandro1983 View Drop Down
Newbie
Newbie


Joined: 06 December 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alessandro1983 Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 2:14pm
there is.....
in setup_option_inc.asp :
***********************
'Upload folder path, DO NOT CHANGE as it may break your forums upload tools
Dim strUploadFilePath
strUploadFilePath = "uploads" 'This is the upload folder
***********************
and in RTE_FILE_BROWSER there is :
************************
'If file or image uploads are enabled then see if the user has an upload folder already
If blnAttachments = True OR blnImageUpload = True Then
 'Check the user has an upload folder, if they have uploaded annything
 blnUploadFolderExsist = userUploadFolder(strUploadFilePath)
 
 'If an upload folder doesn't exsist for the user then they just browse the public folder
 If blnUploadFolderExsist = False Then strUploadFilePath = strUploadOriginalFilePath & "/public"
 
 
'Else if image uploads are not enabled just display the empty upload folder to the user
Else
 strUploadFilePath = strUploadOriginalFilePath & "/public"
End If 
***********************
i've try to change strUploadFilePath by setup_option_inc.asp with mysite.com but in the page RTE_POPUP_ADV_IMAGE.asp there is the path Path: mysite.com/1
 
why when i change the strUploadFilePath the scipt put the number 1 after mysite and not put /public ??
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 5:07pm
This change carries a big warning in capitals not to change it:-

Quote 'Upload folder path, DO NOT CHANGE as it may break your forums upload tools


You should change it back to the default upload folder or you WILL have problems.

Also, it is not possible to use a web address to upload files to, if you could upload files to another site using 'myside.com' it would make things very easy for hacker to deface websites.
Back to Top
Alessandro1983 View Drop Down
Newbie
Newbie


Joined: 06 December 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alessandro1983 Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 6:03pm
ok but i want only general public folder as the upload folder img....it's possibile??
at my own risk
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2008 at 10:41pm
This is not an easy task. Are you sure you can overcome the problems that will rise? Here is some guidelines:

1. You need to upload files using the PHYSICAL path
                    - OR -
You will have to enable parent path for the site on the server



WWF uses Server.MapPath method to upload files. This will not come in handy when you are uploading files with parent path disabled.

Lets assume that you have enabled parent paths. If WWF's default upload directory is http://[www.domain.com]/forum/uploads and you want to upload files to http://[www.domain.com]/public

Change this line
strUploadFilePath = "uploads" 'This is the upload folder


into
strUploadFilePath = "../public" 'This is the upload folder



CAUTION! This method might result in crashing your forum! There might some other scripts, those used to format posts needed to be edited ..and truely I do not know about the WW RTE. It might also crash.


Originally posted by Alessandro1983 Alessandro1983 wrote:

ok but i want only general public folder as the upload folder img....it's possibile??
at my own risk
Back to Top
Alessandro1983 View Drop Down
Newbie
Newbie


Joined: 06 December 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alessandro1983 Quote  Post ReplyReply Direct Link To This Post Posted: 19 April 2008 at 8:19am
thanks for the answere but i 've try to do what yoy have write me...(modify only this line strUploadFilePath = "../public" 'This is the upload folder) but the answere of the server is this :
 
Server.MapPath() error 'ASP 0175 : 80004005'

Disallowed Path Characters

/forum/RTE_file_browser.asp, line 199

The '..' characters are not allowed in the Path parameter for the MapPath method.

 

why?

Back to Top
 Post Reply Post Reply Page  12>

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.