| Author |
Topic Search Topic Options
|
puerileboy
Newbie
Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Topic: attach files from localhost Posted: 24 March 2005 at 9:39am |
Hi there, i have searched through and found nothing like this. When I am logged into WebWizForum on my local computer (i.e. http://localhost/forum) when i try to attach a file to a post i can then access it personally from there, however no one else who logs in can access it, as the link for the attachment is http://localhost/forum/uploads/some_file_i_uploaded . Is there any way i can modify something to resolve this? I do not know if it helps (or hurts) i am using ASPSmartUpload
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 March 2005 at 11:25am |
|
The simplest way to resolve this would be that you also need to connect to your site through the domain name.
|
|
|
 |
puerileboy
Newbie
Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 24 March 2005 at 7:14pm |
Yes that would be best, unfortunately ... i have the machine nat'ed on a subnet behind a router, and it won't let me connect back to my own machine via the domain name (if i try i get a domain name not found and when i try to use the ip address it connects direct into the router admin). My only solutions thus far is to: remote desktop into another machine off my subnet, then connect back in, but that is WAY cumbersome, or use a proxy server, but that also is very slow.
Thanks though Borg, i wish it were that simple *sigh*
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2005 at 4:32am |
|
The only other way is to mod the forum to filnd any occureneces of 'http://locahost' and change it to your own sites domain.
You may then have a problem if anyone actually posts 'http://locahost',
but unless you run a support forum like this I doubt anyome would be
typing that in.
The page to mod would be the post_message.asp page and to use the
'Replace' method to replace 'http://locahost' with your domain name.
|
|
|
 |
puerileboy
Newbie
Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2005 at 11:26am |
Okay, it took me a few minutes to think this out, but i understand now what you are saying. I haven't ever writen in ASP before (except to really mess up good code before  ) but i think i get the idea, and will educate myself on 'Replace' . Thanks BoRg!
|
 |
dj air
Senior Member
Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 March 2005 at 11:37am |
|
the replace function can be
strMessage = replace(strMessage, "http://localhost", "http://www.mydomain.com")
a good site to have bookmarked is www.devguru.com
has a list of all the functions (built in) and examples.
|
 |
puerileboy
Newbie
Joined: 24 March 2005
Location: United States
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Posted: 27 March 2005 at 11:04am |
Wow.. after reading your post DJ Air i went looking into the code in post_message.asp .. and noticed there was already an entry similar for the bad word filter, which got me thinking .. i could just create a bad word out of ' http://localhost' and create a subsitute of the correct 'http://myownrealdomainname.com'
tried it .. worked like a charm! thanks!!!
|
 |