Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    15,489
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Here is the next example. This is a quick demo site I'm knocked up for you to take a look at to show you how to create your site using a template and php.

    It's templated, so all pages load from a single template. It is fully xhtml and css coded. The layout uses purely div tags for page layout/position, with all formatting done in a css file. The different parts of the page that are static across the site are held within the template files directory so editing one element of the page is easy, and doesn't require editing the main index.php file where the whole page structure is stored.

    Finally, the actual content for each page is stored in the pages directory, so page content can easily be edited without altering the actual site.

    Fairly straight forward, and you will see it doesn't take much code to create. It is very basic with the only error checking being to see if a variable is set in the url for the page to load, and if it doesn't it automatically loads the home page. A lot more can be done in this regard, such as checking to see if a page set in the URL actually exists on the server, so that visitors can't break the site by typing whatever they wish into the url string.

    To load the site place the whole contents of the zip file into your server's www and then load the index.php file.

    Any questions, just ask.
    Attached Files Attached Files

    If you haven't played a classic game in years, it's never too late to start!


  2. #12
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,060
    Downloads
    0
    Uploads
    0
    Just had a look through those examples and I'm pleased to say it makes sense .

    This will be very useful, and this method will be much better than the current one of basic HTML pages.

    I ought to learn some CSS though.

  3. #13
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    15,489
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    Glad it was useful. Any questions about website coding just ask. Happy to help.

    If you haven't played a classic game in years, it's never too late to start!


  4. #14
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,060
    Downloads
    0
    Uploads
    0
    I had a little play with this last year but then never got round to really doing anything.

    Harrison, can you recommend any books on PHP or CSS?

    I might have a play with content management systems, but ultimately I would like to have something I made myself.

  5. #15
    Retro Addict Administrator
    My location

    Burger Time Champion, Sonic Champion Harrison's Avatar
    Join Date
    Dec 2002
    Location
    UK
    Posts
    15,489
    Blog Entries
    1
    Downloads
    6
    Uploads
    14
    I agree that it is a very good idea to get to grips with at least the basics of PHP, CSS and XHTML, as it is really useful, not just in creating your own small sites, but in being able to customise an existing CMS or forum software for your own needs and understand the code being used.

    For books on PHP, CSS and XHTML there are loads of them about.

    I actually wouldn't recommend any books that try to combine HTML, CSS, PHP and MySQL in one volume because it is too much to squeeze on and cover it all nicely. Instead I would get a decent book covering HTML and CSS, and another covering PHP and MySQL. Learn HTML and CSS first and get to grips with that, then when you move on to the PHP one you will be able to utilise everything you know about HTML and CSS for the visual page layout/presentation/construction as you learn PHP.

    For HTML and CSS there is one book I love and always keep on my shelf and refer to quite often. It is called "The Complete Reference to HTML and CSS" by Thomas A. Powell, and the latest 5th edition is updated to cover HTML5. It isn't the cheapest book and it is a large book, but it is brilliant.

    http://www.amazon.co.uk/HTML-CSS-Com...dp/0071496297/

    The other publisher I really like for anything internet or coding related is the Wrox. Their Beginning guides are brilliant books, but very comprehensive and sometimes quite complicated. And there publish books in 3 levels of experience, starting with their beginner range, then Professional and Expert.

    Maybe look at this one for PHP: http://www.amazon.co.uk/Beginning-PH.../dp/B004IPPII2

    However if you want to start with something more straight forward first the "Visual Quickstart Guides" or "Sams Teach Yourself "are good books that are easy to follow and have good examples, plus not too expensive.

    Maybe try this one as your first book:

    http://www.amazon.co.uk/Yourself-Inc.../dp/B0030AF5CA

    I also like books published by O'Reilly, but I don't recommend them for learning as they are very technical and complex, and I use them mainly for reference as they have great lookup formatting to find something very quickly.

    I hope that helps? I will have a look through my eBooks to see if I have anything I can email you.

    If you haven't played a classic game in years, it's never too late to start!


  6. #16
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,060
    Downloads
    0
    Uploads
    0
    Thanks for the suggestions.

    I'll have a look around and maybe try a Visual Quickstart Guide or a Sams book. Can't say I'd heard of Visual Quickstart Guides before.

  7. #17
    RetroSteve! My location

    Stephen Coates's Avatar
    Join Date
    Mar 2003
    Location
    Rotherham
    Posts
    2,060
    Downloads
    0
    Uploads
    0
    I've been playing around with CSS, and have finally done some updates to my site and given it a new look.

    Its not finished yet, but the new look is on the home page, and will be rolled out to the other pages soon.

    I chose URW Gothic L as the main font. This is more of a Linux font, so most Windows users probably won't have it. The secondary font is Century Gothic, and if you don't have that, then it just goes to the default sans-serif font. I quite like the look of that font, but I'd be grateful for other people's opinions.

    How about the colour scheme, with the blue links, and light green 'hover' background? Again, I quite like it, but I'm open to opinions.

    I think it definitely looks a bit neater and more modern now . I'll probably get round to incorporating some PHP some time, but HTML5 will do for now (well, I don't think I stripped out all the HTML4, but I think its mostly HTML5).

  8. #18
    Below Average zapiy's Avatar
    Join Date
    Nov 2013
    Posts
    88
    Downloads
    0
    Uploads
    0
    Great advice Harrison.. Coding is a love of mine, hardly at the level of you but i get by lol.

Similar Threads

  1. Humour The Website is down
    By Harrison in forum General Chat
    Replies: 1
    Last Post: 16th November 2010, 17:27
  2. MAME advice on CHD's
    By Bloodwych in forum Arcade
    Replies: 38
    Last Post: 8th June 2010, 13:14
  3. A500 Buying advice, please
    By Cortona in forum Buying and Selling
    Replies: 6
    Last Post: 8th July 2009, 22:29
  4. Basic A500 advice?
    By Fern in forum Hardware
    Replies: 5
    Last Post: 29th November 2008, 17:46
  5. Advice to get an Amiga for old games
    By Tiago in forum Amiga
    Replies: 10
    Last Post: 24th November 2008, 15:03

Tags for this Thread

Posting Permissions

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

Copyright classicamiga.com