Mass-creating/mass-changing Websites

A Member? Please Login  
type your username and password to login
Date: October 12, 2008, 04:47 PM
249061 members and 147634 Topics
Latest Member: millard123
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: SAM MILLA, uspry1)  |  Mass-creating/mass-changing Websites
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Mass-creating/mass-changing Websites  (Read 179 views)
Webhaccker
Mass-creating/mass-changing Websites
« on: June 04, 2008, 01:39 PM »

I have seen websites lately that contain similar interfaces throughout the website (particularly game websites).  When they change their interface, how do they change all the pages at once?  I need to do this with my website, because i forgot to put a "back" button on the bottom of many pages.  Please tell me if and how this is possible!
uspry1 (f)
Re: Mass-creating/mass-changing Websites
« #1 on: June 04, 2008, 02:06 PM »

Most webmasters use PHP or other programming language as well as use CSS to modify one area for all pages change at once without entering each page change manually---that will be time consuming.

Just give you example:

header.php
footer.php
template.php
webcontent.php
menu.php

or

header.css
footer.css
bodystyle.css
template.css

goes on. . . so you will know which you want to modify that area for example template.php or template.css for all pages to be changed automatically.

Got it, @webhaccker!!!

For forum sites you seen, that is depend on the type of free forum theme such as SMF (Simple Machine Forum), PHPBBB, or others they obtain uploading them to their web host with its own forum administration panel system.

For example SMF user installs Blue-Sky SMF theme from SMF modification site to be installed on their SMF administration panel system on their web host to change from default SMF theme to Blue-Sky SMF theme. They also can delete SMF logo header image (smflogo.jpg) to replace their own logo header image (theirlogo.jpg). They have to edit their SMF template.php to replace the filename of image from (smflogo.jpg) to (theirlogo.jpg).

Got it!
yawa-ti-de (f)
Re: Mass-creating/mass-changing Websites
« #2 on: June 04, 2008, 02:55 PM »

in PHP, this is called an include, callable either via require_once() or require()

Suppose u hv a site with a header, footer, main content area, and navigation. obvioiusly, only the content area (where the text is) should change.  So you put the other sections in an include file (you could, for example, have header.inc, footer.inc, etc).  That way, if you need to change something in say, the header, you make it in that one file and it changes everywhere.

As for the colors, etc, that can be done via CSS *in an external file*.  So letz say in January you want the site to be green.  Then in March, if you want it a different color, since you are using an external file, you just change the color of the section in the CSS file and bingo! it changes everywhere.

LESSON OF THE DAY: Every good site must have a solid architecture.  You have to spend 90% of your time determining the layout of your site.  If you don't, the remaining 10% of your (development) time will be a living hell.
Webhaccker
Re: Mass-creating/mass-changing Websites
« #3 on: June 04, 2008, 08:43 PM »

Thank you guys, but from what it sounds like, PHP is like a "linkable html" in a way, is this at all a correct assumption?
yawa-ti-de (f)
Re: Mass-creating/mass-changing Websites
« #4 on: June 04, 2008, 09:45 PM »

the include, not PHP, is like a linkable html, if i understand what u mean.

by the way, even HTML has the same capability. in this case, you would use a server side include.
larger_20 (m)
Re: Mass-creating/mass-changing Websites
« #5 on: July 13, 2008, 04:24 PM »

Quote from: yawa-ti-de on June 04, 2008, 02:55 PM
in PHP, this is called an include, callable either via require_once() or require()

Suppose u hv a site with a header, footer, main content area, and navigation. obvioiusly, only the content area (where the text is) should change.  So you put the other sections in an include file (you could, for example, have header.inc, footer.inc, etc).  That way, if you need to change something in say, the header, you make it in that one file and it changes everywhere.

As for the colors, etc, that can be done via CSS *in an external file*.  So letz say in January you want the site to be green.  Then in March, if you want it a different color, since you are using an external file, you just change the color of the section in the CSS file and bingo! it changes everywhere.

LESSON OF THE DAY: Every good site must have a solid architecture.  You have to spend 90% of your time determining the layout of your site.  If you don't, the remaining 10% of your (development) time will be a living hell.

Do you have experience with editing the simple machine forum? I am currently hosting one and need help with configuration, let me know
yawa-ti-de (f)
Re: Mass-creating/mass-changing Websites
« #6 on: July 13, 2008, 06:51 PM »

Unfortunately I don't larger as I have no need to maintain an SMF site.  However, from maintaining CMS sites, I would imagine I would do what I have done there: View the source to know what I want to change, find what backend file it's in, make a back up of the file I want to change, change the file I need to change and experiment till I have gotten it right.
larger_20 (m)
Re: Mass-creating/mass-changing Websites
« #7 on: July 13, 2008, 07:54 PM »

Thank You!
OmniPotens
Re: Mass-creating/mass-changing Websites
« #8 on: July 13, 2008, 08:59 PM »

@webhaccker

I guess you have been given the solution to your problem. The next thing you should do here is to go get knowledge of PHP if you are still confused about this include or require stuff. For me, I think the include is a better choice because it is just a single line of PHP statement but it does all you want it to do. It is better and faster. If integrated a lot of places in your web pages, it could help reduce loading time too.

 I Need Icon Images  Why Good Hosting Is Important  iSCRB  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Job Talk Jobs/Vacancies (2) Career Talk Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.