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)
 DR: Relative URLs...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

vince
Starting Member

1 Posts

Posted - 15 September 2000 :  18:54:19  Show Profile
I am working with my site and tried to do a
<!--#INCLUDE FILE=forum/default.asp--> the page comes up but the graphic links are all broken and so are all the links. since all the links in the snitz forums uses just like <A HREF=file.asp> it uses the current dir(in this case the root dir). So was thinking about maybe putting an option in like 'Append virtual path' or something so that on all HREF's and IMG SRC='s it appends the virtual path or the full url to it. what do you think?

SPulley
Starting Member

USA
46 Posts

Posted - 18 September 2000 :  19:26:01  Show Profile  Visit SPulley's Homepage  Send SPulley an AOL message
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
I am working with my site and tried to do a
<!--#INCLUDE FILE=forum/default.asp--> the page comes up but the graphic links are all broken and so are all the links. since all the links in the snitz forums uses just like <A HREF=file.asp> it uses the current dir(in this case the root dir). So was thinking about maybe putting an option in like 'Append virtual path' or something so that on all HREF's and IMG SRC='s it appends the virtual path or the full url to it. what do you think?


<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I include a new file on the top of my page just above inc_top.asp. See my page for a look. To keep all my links and images the same without having to redo all my links and such, I include a line in the config.asp that says:

strRelurl = "../"

Then when I want to link out to my images dir, I type
<pre id=code><font face=courier size=2 id=code>
img src="<%=strRelurl %>images/image.gif">
</font id=code></pre id=code>

You can also use this in links. This makes it so that you can include the same file any number of directories deep and not have to rewrite the file everytime.


Have fun and be good!!

Shad Pulley
shadstrains@mylargescale.com
www.mymodelrr.com/forum
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 19 September 2000 :  01:25:37  Show Profile  Visit gor's Homepage
Adding

<pre id=code><font face=courier size=2 id=code>
<BASE HREF="http://yourserver.com/forum/">
</font id=code></pre id=code>

in inc_top.asp would also fix this because it translates all the relative urls.


<b>Pierre Gorissen </b><img src="http://www.homepages.hetnet.nl/~pgoris01/burnout.gif" border=0>
<font color=purple><font size=1>A fool learns from experience... a wise man learns from others...</font id=size1></font id=purple>
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07