<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Changing the image path</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Changing the image path]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 09 Apr 2026 06:46:00 +0000</pubDate>
  <lastBuildDate>Mon, 11 Oct 2004 13:18:37 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=12119</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Changing the image path : Hi, I actually get an identical...]]></title>
   <link>https://forums.webwiz.net/changing-the-image-path_topic12119_post67301.html#67301</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=17855">Alski</a><br /><strong>Subject:</strong> 12119<br /><strong>Posted:</strong> 11&nbsp;October&nbsp;2004 at 1:18pm<br /><br /><P>Hi,</P><P>I actually get an identical problem using Netscape.&nbsp; The problem is not the hard coding (although it might be if I migrate servers), it's the directory structure my hosts have set up.</P><P>This may only affect ASPWebhosting customers.<BR><BR>I think I've got two options:</P><P>i) change the link code BEFORE it get's entered into the Message field, or,</P><P>ii) change the body of the message before it gets served with a Replace function</P><P>What I've now (partially) done is the latter:</P><P>In forum_posts.asp I've added two lines where line 782 was:<BR><BR><FONT color=#0000ff><FONT color=#666666>'this next line adjusts the image code so that it works in ASPwebhosting's virtual directory call</FONT><BR>strMessage = Replace(strMessage,"files/mydomain","files")</FONT></P><P>so when the page is served, the correct code needed for my hosts is used and the image displayed</P><P>I've also adjusted post_preview.asp so that at line 148 it now reads:</P><P>&lt;%<BR><FONT color=#666666>'this next line adjusts the image code so that it works in ASPwebhosting's virtual directory call</FONT><BR><FONT color=#0000ff>strMessage = Replace(strMessage,"files/mydomain","files")<BR></FONT>%&gt;</P><P>So that people can see the image in their preview also.</P><P>What I still need to work out how to do is&nbsp;replace the paths in both the edit_post.asp and again in the forum_posts.asp files so that the images are displayed as the posts are being edited or written.</P><P>Cheers,<BR>Ali</P>]]>
   </description>
   <pubDate>Mon, 11 Oct 2004 13:18:37 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/changing-the-image-path_topic12119_post67301.html#67301</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the image path : The forum code tries to enter...]]></title>
   <link>https://forums.webwiz.net/changing-the-image-path_topic12119_post67261.html#67261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=1">WebWiz-Bruce</a><br /><strong>Subject:</strong> 12119<br /><strong>Posted:</strong> 11&nbsp;October&nbsp;2004 at 3:57am<br /><br />The forum code tries to enter a relative path, but allot of browser like IE automactically change the path to the full URL.<br><br>This means that you would need to change the behaviour of the browser, which would not be possiable.<br>]]>
   </description>
   <pubDate>Mon, 11 Oct 2004 03:57:43 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/changing-the-image-path_topic12119_post67261.html#67261</guid>
  </item> 
  <item>
   <title><![CDATA[Changing the image path : Hi, I am able to upload images...]]></title>
   <link>https://forums.webwiz.net/changing-the-image-path_topic12119_post67256.html#67256</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=17855">Alski</a><br /><strong>Subject:</strong> 12119<br /><strong>Posted:</strong> 11&nbsp;October&nbsp;2004 at 12:47am<br /><br /><P>Hi,</P><P>I am able to upload images with no problems to:</P><P><A href="http://www.mydomain/files/mydomain/admin/foobar.gif" target="_blank">http://www.mydomain/files/mydomain/admin/foobar.gif</A>&nbsp;</P><P>The folder my hosts have set up with RWD permissions is "files" and so this is correct and uploads correctly.&nbsp; However, the image doesn't display on the forum at all as it outside of my "sites" folder.</P><P>But my hosts (ASPwebhosting) have created a "virtual directory call" so that <A href="http://www.mydomain/files/admin/foobar.gif" target="_blank">http://www.mydomain/files/admin/foobar.gif</A>&nbsp;works fine.</P><P>I notice that the Message field in the tblThread table contains the top url structure, but I need to alter it to the lower url structure, preferably before it get's entered into the database.</P><P>I'm using the Persits AspUpload component.</P><P>Is it functions_upload.asp or upload_images.asp I need to alter?</P><P>Cheers,<BR>Al</P>]]>
   </description>
   <pubDate>Mon, 11 Oct 2004 00:47:24 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/changing-the-image-path_topic12119_post67256.html#67256</guid>
  </item> 
 </channel>
</rss>