New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
Affiliate Guard Dog
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    d[-_-]b
    My Status
     

    Add as a friend
    Join Date
    Apr 2009
    Location
    (◣_◢)
    Posts
    890
    Blog Entries
    2
    Feedback Score
    16 (100%)

    Default Using a HTML template for a big site help (noob question)

    Hey all im wondering if you could help me out. I’ve made sites in the past that are not big and the ones that are big I’ve made using the PAS system. I’m starting a new one that I hope will end up big so I want to do this correctly.

    Imagine that this is my template

    The ones I have made in the past are mini sites no more than 10 pages so I get all my links and all on the 1st page then just edit it for a new page and so on. Now say I wanted to add links to the side nav or to or footer I would have to change every page which is not bad when you have to change 5 pages but I can see a problem if there are lots and I want to learn this correctly.

    So how do I split a bought or downloaded html template up into

    Header
    Top nav
    Side nav L
    Side nave R
    Footer

    So if I want to edit the side nav or footer I just have to change one file rather than every page on the site?

    Ive always used NVU for editing pages I have Dreamweaver which im starting to use, its a lot different will take me time to get used to it. I know the way I have been doing it is wrong and ive searched but haven’t found anything yet to answer my question so your help even link to a site or video to help me learn this would be very much appreciated.

    Many thanks
    Diversify with Shareasale & if your a developer its the place to Sell your Stuff.
    Awesome Wordpress themes & html templates from $20 - $50 | Premium plugins & useful scripts form $5

  2. #2
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    Sweden
    Posts
    448
    Feedback Score
    6 (100%)

    Default

    change your pages to .php instead of .html and then use includes for header,menus etc.

    PHP Tutorial - Include File
    Gambling Revolutions

    Are you in need of nice looking poker chips? or maybe something else
    Gambling Products Recreation

    Swedish poker site with poker bonus and reviews.

  3. #3
    Senior Member
    My Status
     

    Add as a friend
    Join Date
    Jan 2009
    Location
    Northern Europe
    Posts
    882
    Blog Entries
    6
    Feedback Score
    3 (100%)

    Default

    If you don't use a CMS, all you need is a little bit of PHP.

    I'm pretty sure there are a thread about it somewhere, but I can't seem to find it.

    1) Change the extension on your index.html file to .php (so it is called index.php)
    2) Create a folder called include
    3) Inside the include folder, create an empty file called footer.php
    4) Copy the "footer code" from index.php to footer.php
    5) Delete the footer code from index.php and insert the following in its place:

    <?php
    include ('../include/footer.php');
    ?>

    ----------

    Consider creating an extra file called "tracking.php" for your Google Analytics code.

    ----------

    I start each of the files I include with <!-- Start filename --> and end them with <!-- End filename -->.

    <!-- --> is a HTML comment, which doesn't do anything, but using them to mark the beginning/end of each file will make it much easier for you to locate the source of any problems.

    ----------

    You don't have to use a folder called "include", but I think it is a really good idea, since the root directory tends to get messy over time, and having the included files in their own folder makes them easier to find.
    My blog www.unknownwebmaster.com | New posts on Poker affiliate blogs | Webmaster tools I use every day.

  4. #4
    d[-_-]b
    My Status
     

    Add as a friend
    Join Date
    Apr 2009
    Location
    (◣_◢)
    Posts
    890
    Blog Entries
    2
    Feedback Score
    16 (100%)

    Default

    Brilliant guys thanks a million.
    Diversify with Shareasale & if your a developer its the place to Sell your Stuff.
    Awesome Wordpress themes & html templates from $20 - $50 | Premium plugins & useful scripts form $5


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Selling a site trough Godaddy...Noob question
    By pokerlover in forum Wordpress - Web Design - Coding - Technical
    Replies: 1
    Last Post: 08-17-2009, 05:08 PM
  2. Noob Hosting Question
    By Hazo in forum Wordpress - Web Design - Coding - Technical
    Replies: 3
    Last Post: 05-31-2009, 06:30 AM
  3. Need a basic HTML template
    By KevinMcC in forum Websites
    Replies: 5
    Last Post: 05-12-2009, 01:28 PM
  4. Html site Question
    By Ridge in forum Wordpress - Web Design - Coding - Technical
    Replies: 23
    Last Post: 04-27-2009, 01:48 PM
  5. Looking for a regular html template to buy
    By Ridge in forum Wordpress - Web Design - Coding - Technical
    Replies: 2
    Last Post: 02-25-2009, 05:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant