• I’ve been making alterations in my menu format and somehow I managed to change something in index.php that is scrambling my site. I’m not exactly sure what I did but to someone who understands index.php better might have a clearer idea.

Viewing 10 replies - 1 through 10 (of 10 total)
  • hmm, did you remove a <div> in there somewhere?

    a <div> would affect it because that’s how the index positions everything. if you have
    <div id=”menu”>
    <div id=”stuff”>
    </div>
    </div>
    then the stuff would be inside the menu. Take out the menu div, and you screw up how “stuff” relates to the rest of your page. You don’ thave a backup do you?

    Thread Starter danithew

    (@danithew)

    Lawtai,
    Unfortunately the saved backup I have is of an older version of my index.php that has since been tweaked a bit. I should have known better. I think I’ll look at that suggestion Beel had of “where to start with” as for some reason I didn’t notice that right away.

    Thread Starter danithew

    (@danithew)

    hmmm… I’m not seeing my call for the style switcher… i wonder if that could be it. Maybe somehow that was messed up. It’s definitely not showing up now though all the links/categories/etc. are there.

    Thread Starter danithew

    (@danithew)

    adding that didn’t fix it though… sigh

    Thread Starter danithew

    (@danithew)

    I’m going to stop messing with the code for awhile as nothing I have tried has fixed anything. Maybe if I take 15 away my mind will refresh a bit and I’ll figure out another approach. I’m still hoping it’s just a <div> or </div> code somewhere that is missing. But I thought I tracked them all down and verified that they were placed as they were in an index.php file that worked. (shrug)

    Just view the source of your page and go down it line by line and it won’t take you long to find numerous mistakes, including the ones I mentioned already. You can have

      ...

    but you cannot have

    • ...

      and now you have:
      <div id="menu">

        Now that is messed up!
        Your tags start to go wrong at the very top with:
        <div id=”content”>
        <div class=”cent”><last visit code></div>
        <p id=”last_visit”><script … /script>
        </div>
        As you can see, besides <last visit code> being invalid, you close out your content div with the last /div above.
      Thread Starter danithew

      (@danithew)

      Thank you anonymous for your help. It was that last </div>, as you said, that really was screwing everything up. Thanks for pointing it out as I had been working on code below that point to try and find the problem.
      I’ll be working on trying to get this code right for awhile but at least now the site is even semi-readable. And this time I’ll make sure to copy over my index.php!

      The forum says I am logged in as “Beel” but is posting as “Anonymous” – You’ve got a lot of dinky validation problems but hit the valid xhtml link a few times and you can winnow it down.

      Thread Starter danithew

      (@danithew)

      Beel, I was 99% sure that was you. I was just making sure. Thank you for your help.
      I’m glad that at least the sidebar is now discernable from the posts. ?? I’m having a lot of trouble though just getting the sidebar to look halfway decent. The honest truth is I’m still figuring out the meaning of rudimentary codes such as < ul > < li > < div > etc. I’m also completely new at using the valid xhtml link and even though it’s very helpful at pointing out the errors, I admit I’ll be figuring out for a bit how to address those errors properly.

    Viewing 10 replies - 1 through 10 (of 10 total)
    • The topic ‘index.php problem’ is closed to new replies.