Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: Layout Prob...

  1. #1
    Rin
    Rin is offline
    Junior Member
    Join Date
    Mar 2003
    Location
    UK
    Posts
    8
    Member #
    797
    I'm currently trying to create a new layout for my site, this is what I have so far... http://www.neopiansunite.com/testlay.php

    I was wondering if there was any way I could have it so that when you go to different pages, the Layout around the page content stay the same so that every time I update the outside layout I won't have to go through 50 pages and update it...

    Is this Possible without using frames and Iframes?

  2.  

  3. #2
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    I see you are using php...if you use php include, you can do this. Using the "include" feature, you can put html that is re-used throughout the site into a php file. For example say from the <body> tag and the first 25 lines of html is the same throughout your site. Copy those 25 lines, and put that exact code into a file and call it top.php. In all of your files now, when it comes time for those lines of code, insert:
    <?php include("/absolute/path/of/top.php"); ?>

    This line will take the top.php file and insert it exactly where the include command is. Now if you want to change the top of your site, you change the top.php file and the whole site is changed instantly.

    I hope this was clear, let me know if this helps.

  4. #3
    Rin
    Rin is offline
    Junior Member
    Join Date
    Mar 2003
    Location
    UK
    Posts
    8
    Member #
    797
    Thanks...

    That looks easier than what I just found on google, which I was going to try! Lol!

    I'll give it ago.

  5. #4
    Senior Member splufdaddy's Avatar
    Join Date
    Feb 2003
    Location
    Boston, MA
    Posts
    4,488
    Member #
    735
    Great, let me know how it works out, drop us a link when you've got something up

  6. #5
    Rin
    Rin is offline
    Junior Member
    Join Date
    Mar 2003
    Location
    UK
    Posts
    8
    Member #
    797
    It works perfectly so far, I just need to get the rest of the site up to Make sure!!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:28 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com