Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-04-2010, 12:59 AM   #1
Fully Optimized
 
dude_56013's Avatar
 
Join Date: Jul 2007
Posts: 4,262
Angry Server folder location being added in front of external links in page!

I'm stumped, guys.

This is the first website that I've done where I've tried to actually separate each page into its own folder, so there was a learning curve as to how to link everything together. Well, I've got it all worked out internally, but now when I try to link to an external link, it's adding the server folder location in front of itHere's an example of the page I'm talking about.So, I want to link to LINK but instead it's auto-adding crap in front of it so that when you click it's trying to go to LINK which is obviously not what I want it to do! Argh. If you need me to upload the code, let me know, but I'm assuming you can just go and view the source.

Also, yes, I know the CSS for the links looks stupid..I haven't changed it yet. Trying to get it WORKING before I get to the looks. FML. This is what happens when you haven't coded a site for a while.

EDIT-LINKS REMOVED to prevent spam on the site.
__________________

dude_56013 is offline   Reply With Quote
Old 10-04-2010, 01:49 AM   #2
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Server folder location being added in front of external links in page!

Take the Quotation marks out of the external links (E.g Photobucket) and that should fix it. In other words;

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">  <html>  <head>            <titlePhotos First Presbyterian Church of Blue Earth </title>    <link rel="SHORTCUT ICON" href="/favicon.ico">  <link rel=stylesheet href="/styles.css" type="text/css">  <SCRIPT language="JavaScript"> <!-- if (document.images) {   pic1= new Image(1000,86);    pic1.src="banner.jpg";    } //--> </SCRIPT> </head>   <body>        <div id="container">                <div id="header"><img src="/banner.jpg" border="0" usemap="#Map">       <map name="Map"><area shape="rect" coords="850,60,928,85" href="/links/links.html" target="_self" alt="Links"><area shape="rect" coords="731,60,850,85" href="/contact/contact.html" target="_self" alt="Contact"><area shape="rect" coords="527,59,731,85" href="/announcements/current.html" target="_self" alt="Announcements"><area shape="rect" coords="416,59,527,85" href="/history/bio.html" target="_self" alt="History"><area shape="rect" coords="321,59,417,85" href="/events/calendar.html" target="_self" alt="Events"><area shape="rect" coords="199,59,321,85" href="/missions/missions.html" target="_self" alt="Missions">         <area shape="rect" coords="0,59,80,85" href="/index.html" target="_self" alt="Home">         <area shape="rect" coords="80,59,199,85" href="/ministry/sundayworship.html" target="_self" alt="Ministry">       </map> </div>           <div id="subheader">     <span class="sh"><a href="/events/calendar/">Calendar</a> | <a href="/events/photos/">Photos</a></span></div>         </span>      <div id="content">              <span class="b">Photos</span>      <p>      Photos are currently being archived in a Photobucket page for ease of use/access. The Photobucket page can be found <a href=http://s772.photobucket.com/home/pc1be/allalbums target=”_blank>here</a>. Simply click into the appropriate album. Please be patient as we work to upload photos from past events.   If you are looking for the 2010 Denver “Mile High” Mission Photos, they are located in a separate Photobucket account with photos from the other two church groups that joined us at DOOR. The photos can be found <a href=http://s902.photobucket.com/home/DenverDOORAug2010/allalbums target=”_blank”>here</a>.      If you have photos to be uploaded to the Photobucket account, please contact Zac by visiting the <a href=”/contact/contact.html“>contact page</a>. Please do NOT email him photos without first contacting him.        </div>           <div id="footer" class="footer">Copyright 2010. First Presbyterian Church of Blue Earth. <span class="r"><a href="http://www.zacscomputers.com" target="_blank" alt="Zac's Computer Sales">Designed by Zac's Computer Sales</a></span></div>             </body>  </html> 
__________________

Neodude112320 is offline   Reply With Quote
Old 10-04-2010, 02:09 AM   #3
Fully Optimized
 
dude_56013's Avatar
 
Join Date: Jul 2007
Posts: 4,262
Default Re: Server folder location being added in front of external links in page!

Have I told you I love you Neo?

I've been meaning to....

FML. I should have just come here right away. I learned to put quotes around EVERYTHING in high school programming (this was very basic and many many years ago). Bad habits stick. Thanks dude. I appreciate it!
dude_56013 is offline   Reply With Quote
Old 10-04-2010, 02:26 AM   #4
Bogan
 
Neodude112320's Avatar
 
Join Date: Feb 2006
Location: Australia
Posts: 8,471
Send a message via MSN to Neodude112320
Default Re: Server folder location being added in front of external links in page!

Haha No Worries, i thought that may be it, i guess it solved your issue
Neodude112320 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0