FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Require the attention of various web designers

 


QrafTee
What can I do to make a webpage which will be easy to update (for instance changing just one page instead of changing every page when I want to update the menu), but has a good design and compatible with IE/FF/Opera? With your comments please give me an example and such so I know just what you're talking about. Thank you.
Traveller
Generally speaking, if you wish to make a site as easy as possible to update, you need to use a database. Then, you never have to change the actual page - just the data that are read to create the page. The use of a database also makes it easier to maintain multiple languages for the pages. Just read different data for the page based upon a WHERE clause that includes the appropriate language flag.

Although there are many opinions about the best approach to all of this, most people here (including this user) would recommend what has come to be called "LAMP" (Linux, Apache, MySQL, and PHP). Of course, that is how the FriHost servers are already set up, so those tools are all available for you to use in order to create a smoothly running, easily updatable site.
htmlrules
I have encountered that problem quite a few times and have found that just making an external file with all the html code you want in it eg

Code:
   <a href="starthtml.php">Introduction</a>
   <a href="htmlsyntax.php">Syntax</a>
   <a href="htmlelements.php">Elements</a>
   <a href="htmltagbasics.php">Tag Basics</a>
   <a href="textformatting.php">Text Formatting</a>
   <a href="htmllinks.php">Links</a>
   <a href="#">Lists</a>
   <a href="#">Images</a>
   <a href="#">Backgronds</a>
   <a href="#">Colour</a>
   <a href="#">Colour Values</a>
   <a href="#">Lists</a>
   <a href="#">Images</a>
   <a href="#">Backgronds</a>
   <a href="#">Colour</a>
   <a href="#">Colour Values</a>


that is straight from one of my files and using the code

Code:
<?php
    readfile("glolinks.txt");
   ?>


it puts all the code straight on to the page depending on where you placed the PHP script if you put this on all the pages you want all you have to update is the external file
bnbrown
PHP+MySQL!
kirocone
CMS stands for Content Menagent System. Theese systems offer administrator panel from where you can edit content. I recomend Joomla! (www.joomla.org). This is what I use. It's free!!!!!!!!
There are a lot of others too! Try something of them.

You can use various templates to make your site stand out of the crowd!
JayBee
I have an easy filesystem oriented PHP script that can do everithing you want and you don't want a web based backend, because you can create all pages at home. It is as easy as it could be.

My engine runs on many sites

If you want it, I will send you this code. Wink
aningbo
all the info u reqd is already been told.

Get a personal webhost so that it will be faster making the site offline. i would recommend http://www.easyphp.org/ for the server. i uses MiniPortal which comes in a price tag.

Use a database, i uses MySQL+PHP for the update thing. and oh for the menu, use the same technique as given by htmlrules
User_f_ps_other
Using the Php Include function is a great way of loading external pages into one page without changing the menu's etc.. only the content on the current page. Here's how it works.

First make the news page and add This is the news section of the website and save the page news.php

Next open your index page the one you want to load the pages into and add the following code to the content area.

Code:
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$go){ $go = $HTTP_GET_VARS['go']; }

if($go=="" or $go=="index.php"){

    include("news.php");
}elseif($go=="home"){
   include("news.php");

}
?>


and save the page index.php.

Next on you navigation change your links to the following.

Code:
index.php?go=news


when you want to add new pages to your website you need to add them to the include code we used on the index page.

Example

Code:
<?PHP
error_reporting (E_ALL ^ E_NOTICE);
if(!$go){ $go = $HTTP_GET_VARS['go']; }

if($go=="" or $go=="index.php"){

    include("news.php");
}elseif($go=="home"){
   include("news.php");
}elseif($go=="tutorials"){
   include("tutorials.php");
}elseif($go=="portfolio"){
   include("portfolio.php");
}
?>


and thats it hope it helps you out.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.