Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Oct 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Folder confusion

    Hi,

    I would appreciate some help. Here's my dilemna. I am doing a website for a mortgage company. Many of the loan officers have requested personal websites. I will provide this service for them.

    I would like to provide different ways to show their URL. One being www.ncsmtg.com/theirname and the other being theirname.ncsmtg.com.

    I am starting out with one loan officer. I made hers www.ncsmtg.com/elainekayhan. Another request was for the application page results being sent to each respective loan officer's email inbox. So, I made it so that from Elaine's page, they can click on the Apply link in the menu and be taken to that page within the Elaine folder. In fact, they can click on the apply link from any page after coming from her site and the link would go to her application page and then those form results will be sent to ther email. This form is exactly the same form as found in the Apply page from the original website. But in the original apply page, the results are sent to a general email inbox. Hence, the reason I made it so that users can click from anywhere after her page and still get to the form that will be sent to her.

    Doing this, I still wanted to keep the style sheet and images pointing to the root directory, so to do that I did this
    Code:
    href="../stylesncs.css"
    . This works perfectly when I go to www.ncsmtg.com/elainekayhan

    The problem is here...
    I also wanted elainekayhan.ncsmtg.com. I made it so that this sub-domain points to the elainekayhan folder. So, from my experience elainekayhan.ncsmtg.com and www.ncsmtg.com/elainekayhan are the same folder. Or, elainekayhan.ncsmtg.com points to the index file of the elainekayhan folder. Now that I have the subdomain set up, it points to the correct page. But, the style sheet and the images which are in the root folder are not being utilized. Is there a way to fix this by using something other than
    Code:
    href="../stylesncs.css"
    ? Or should I just put the style sheet and images within her folder.

    I am thinking ahead to the future. I would like to edit a photo or stylesheet in case I need to and just do it in one place. Not have to change the stylesheet in both the root folder and then in every single one of the loan officer pages.

    I really hope I made sense. Please help me out. Thanks.

    here's the code:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    >
    <html>
    
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>NCS Mortgage - We finance your future, not your past</title>
    <link rel="stylesheet" type="text/css" href="../stylesncs.css">
    <script language="JavaScript" type="text/javascript">
    </script>
    </head>
    
    <body>
    
    <div id="header">
      <div id="menubar">
        <a id="home" href="index.htm">
        <img src="../images/menu/home-blank.gif" alt="Home" width="100" height="100"></a>
        <a id="mortgage" href="mortgage-process.htm">
        <img src="../images/menu/mortgage-process-blank.gif" alt="Mortgage Process" width="200" height="100"></a>
        <a id="financial" href="financial-calculators.htm">
        <img src="../images/menu/financial-calculators-blank.gif" alt="Financial Calculators" width="220" height="100"></a>
        <a id="apply" href="apply.htm">
        <img src="../images/menu/apply-blank.gif" alt="Apply" width="80" height="100"></a>
        <a id="glossary" href="glossary.htm">
        <img src="../images/menu/glossary-blank.gif" alt="Financial Calculators" width="200" height="100"></a>
      </div>
      <div id="logo1">
        <!-- URL's used in the movie-->
        <!-- text used in the movie-->
        <!--NCSWe finance your future, not your pastNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCSNCS-->
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="800" HEIGHT="150" id="logo" ALIGN>
          <param NAME="movie" VALUE="../logo/logo.swf">
          <param NAME="loop" VALUE="false">
          <param NAME="quality" VALUE="high">
          <param NAME="bgcolor" VALUE="#FFFFFF">
          <embed src="../logo/logo.swf" loop="false" quality="high" bgcolor="#FFFFFF" WIDTH="800" HEIGHT="150" NAME="logo" ALIGN TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
          
          
          
              
              
              
              
              
              
            
              </embed></object>
      </div>
    </div>
    <div id="container">
      <div id="information">
        <div id="navigation">
          <!-- URL's used in the movie-->
          <!-- text used in the movie-->
          <!--SincerityDignitySimplicityThe Values of NCS Mortgage:Sincerity, Dignity, SimplicityWhether you arepurchasing, refinancing,or consolidating debtNCS Mortgage will findthe best mortgage planfor you...Our Promise-->
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="200" HEIGHT="200" id="values" ALIGN>
            <param NAME="movie" VALUE="../values.swf">
            <param NAME="quality" VALUE="high">
            <param NAME="bgcolor" VALUE="#0099CC">
            <embed src="../values.swf" quality="high" bgcolor="#0099CC" WIDTH="200" HEIGHT="200" NAME="values" ALIGN TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
            
          
          
              
          
            
            
            
              </embed></object>
          <img src="../images/take-advantage.jpg" alt="Take advantage now of timely approvals, low rates, and quick closings.  Explore our site and learn.  Pre-qualify yourself, apply online, and collect the necessary documents to get the loan approved." width="200" height="200">
          <div id="navcontainer">
    &nbsp;&nbsp;&nbsp; Our Company
            <ul id="navlist">
              <li><a href="about.htm" class="navnews">About Us</a></li>
              <li><a href="contact.htm" class="navnews">Contact Us</a></li>
              <li><a href="employment.htm" class="navnews">Employment</a></li>
            </ul>
          </div>
        </div>
        <div id="content">
        <div id="personalheading">
        <p><a href="../index.htm">Back to NCS Mortgage Main Site</a></p>
         <h2>Elaine Kayhan</h2>
            <h3>Welcome to my personal site</h3>
        </div>
        <div id="personalimage">
            <img src="../images/officers/elaine-kayhan.jpg" class="pic" alt="Elaine Kayhan's Personal Site" width="324" height="234">
        </div>
            <p>What is one thing both you and I know? <span class="highlightedpoint">
            You deserve the best!</span> At NCS Mortgage Corporation, we can help you 
            purchase your <span class="highlightedpoint">dream home</span> or
            <span class="highlightedpoint">refinance</span> to a lower monthly payment.</p>
            <p>&nbsp;</p>
            <p><span class="highlightedpoint">BUT DID YOU KNOW WE CAN ALSO...</span></p>
            <ul id="regularlist">
              <li>Increase your credit score in just 3 days!</li>
              <li>Prevent your foreclosure?</li>
              <li>Help you invest in real estate?</li>
            </ul>
            <p>How&#39;s that for a mortgage company? Call Elaine in the office 708-283-4563 
            or on my cell at 708-646-1315 today and find out about our creative loan 
            services:</p>
            <div id="columnleft">
              <h3>Purchase Services</h3>
              <ul id="regularlist2">
                <li>No Money Down</li>
                <li>1st Time Home Buyers</li>
                <li>100% Financing </li>
                <li>No Income/Stated Income </li>
                <li>Good and Bad Credit </li>
              </ul>
            </div>
            <div id="columnright">
              <h3>Refinancing Services</h3>
              <ul id="regularlist3">
                <li>Home Improvement</li>
                <li>Debt Consolidation</li>
                <li>Interest-only Programs</li>
                <li>Cash out Refi&#39;s-100%-No PMI</li>
                <li>Multi-Unit Property</li>
              </ul>
            </div>
            <p>&nbsp;</p>
            <div id="mquote">
              <p>At NCS Mortgage, no matter what your credit history or past circumstances, 
              we give you loan options that are both inspiring and feasible. We Finance 
              Your Future, Not Your Past.</p>
              <p>&nbsp;</p>
              <h3>A Lifetime of Experience</h3>
              <p>Elaine Kayhan is the Quality Control manager and an experienced loan 
              officer at NCS Mortgage Corporation. She also purchases and brokers mortgage 
              notes from noteholders who need a lump sum of cash right away. Her interest 
              in real estate and the mortgage industry was sparked by working for her 
              family&#39;s credit reporting agency from an early age. Her interests have 
              also branched out into helping people prevent foreclosure by collaborating 
              with Ian Atkin as a short sale processor. In addition, she has experience 
              in negotiating reinstatements and forbearance plans for individuals facing 
              foreclosure. Elaine is grateful for the people that have helped her learn 
              about the mortgage industry and is excited to impart all that knowledge 
              and love back into the community with NCS Mortgage Company. </p>
              <p><span class="highlightedpoint">NCS Mortgage Corporation</span><br>
              20550 S. Cicero Ave. <br>
              Matteson Il, 60443<br>
              <span class="highlightedpoint">Phone</span>: 708.856.6766<br>
              <span class="highlightedpoint">Fax</span>: 708.283.4555</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
            </div>
            <img src="../images/equal-housing.gif" class="housing" alt="Equal Housing Lender" width="58" height="48">
            <div class="seal">
              <script language="Javascript" src="https://seal.godaddy.com/getSeal?sealID=84870484506afc27112710a952c914217f1e04379753489462091">
              
            
            
            
              </script>
            </div>
    
        </div>
      </div>
      <div id="footer" class="center">
        Copyright [2004] [<span class="insideBracket">NCS Mortgage Corporation</span>].&nbsp; 
        All Rights Reserved
      </div>
    </div>
    
    </body>
    
    </html>

  • #2
    New Coder
    Join Date
    Jan 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    When you want to get a file from a parent directory (which is root for you), this is an example of how you do it.

    Example URl: http://connorb.com/example/index.html

    If I linked my style sheet to the page "index.html", but my style sheet was at "http://connorb.com/styles/sheet.css", I'd link it like this:

    Code:
    <link rel="stylesheet" href="/styles/sheet.css" type="text/css" />
    If I linked it and the style sheet was at "http://connorb.com/examples/styles/sheet.css", I'd link it like this:

    Code:
    <link rel="stylesheet" href="styles/sheet.css" type="text/css" />

  • #3
    New Coder
    Join Date
    Oct 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried this, but it still didn't work. Once again, www.ncsmtg.com/elainekayhan works, but elainekayhan.ncsmtg.com doesn't. Same exact problem. What the heck is going on?? This is killing me!!

  • #4
    New Coder
    Join Date
    Jan 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What control panel do you use?

  • #5
    New Coder
    Join Date
    Oct 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am using the Hosting Manager provided by my hosting company, GoDaddy.com. I deleted and then restarted the sub-domain, to see if maybe that could help. It hasnt' been activated yet, and it's getting late, so I"m going to bed. I will work on this first thing in the morning. I'll let you know what happens. Thank you so much for helping me.

  • #6
    New Coder
    Join Date
    Dec 2005
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts
    have you tried putting the entire link in there?

    http://www.ncsmtg.com/stylesncs.css

    instead of just putting

    /stylesncs.css

  • #7
    New Coder
    Join Date
    Oct 2005
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Ok. That worked wonderfully! Thank you so very much!

  • #8
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by pmontesi View Post
    I tried this, but it still didn't work. Once again, www.ncsmtg.com/elainekayhan works, but elainekayhan.ncsmtg.com doesn't. Same exact problem. What the heck is going on?? This is killing me!!
    Just so you (and others know), the reason why the /stylesncs.css didn't work when you access the site using the subdomain is that the base URLs are different.

    when its ncsmtg.com/elainekayhan the site is running in a sub folder below the root of the site. But when its just elainekayhan.ncsmtg.com it is running in the root of the site as far as the browser is concerned.

    That is why you had to put the full URL to the stylesheet in.
    OracleGuy


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •