Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 03-18-2013, 10:11 AM   #1
redmark
Registered User
 
redmark's Avatar
 
Join Date: Jul 2007
Posts: 8
How to include html code

What most webmasters do to include html code to their pages like a menu on top of every pages of the site that can be updated without manually change all these pages.

What is the right way to do this for seo, server speed and user friendly

I need step by step details for server configuration
Thanks in advance
__________________
Redmark
redmark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-18-2013, 11:13 AM   #2
hulker
Registered User
 
Industry Role:
Join Date: Mar 2013
Posts: 26
Quote:
Originally Posted by redmark View Post
I need step by step details for server configuration
Most of us is happy to help you, but nobody works for free.
__________________
pervypig.com
hulker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-18-2013, 11:19 AM   #3
Tittytweaker
Confirmed User
 
Tittytweaker's Avatar
 
Industry Role:
Join Date: Dec 2012
Posts: 184
What kind of site do you have? Purely HTML or is it handled through a content management system?

If it's the former, you need to look into HTML and CSS.

http://www.w3schools.com/

That website is very helpful.
__________________
www.tittytweaker.com
Tittytweaker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-18-2013, 11:45 AM   #4
johnny_d
Confirmed User
 
Industry Role:
Join Date: Sep 2012
Posts: 827
You can either use a content management system (like Wordpress, or Joomla) or PHP.

To start make header.php, index.php, and footer.php, and then you can work on adding the rest of the sites (between the header and footer; site1.php, site2.php etc).

You are going to use php "include", and as the index.php loads first you are going to add include 'header.php' and include 'footer.php' on the bottom of the index file. So basically you need to do it with php. Then you can start working on custom titles for every page etc. There is a lot of info about it on the Internet.
johnny_d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-18-2013, 07:24 PM   #5
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,058
Quote:
Originally Posted by redmark View Post
What most webmasters do to include html code to their pages like a menu on top of every pages of the site that can be updated without manually change all these pages.

What is the right way to do this for seo, server speed and user friendly

I need step by step details for server configuration
Thanks in advance
There is no single right way. There are various ways to pull iit off. As was said above you can use php and php includes OR you can use SSI (Server Side Includes).

It depends on what you are building and what kind of framework (cms) you may be inside of.

Each method has trade offs in speed, generally the more complex the scheme the longer it takes to complete.

As far as seo and user friendliness that has everything to do with the actual web design and absolutely nothing to do with how you include the html code (unless you are doing something funky like having your pages written entirely from a javascript call. If you are doing that you are purposely not making it seo friendly.)

.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-19-2013, 08:44 AM   #6
redmark
Registered User
 
redmark's Avatar
 
Join Date: Jul 2007
Posts: 8
Thanks everybody for your answers

I saw websites using dynamic pages with .php and .html
Using .html for dynamic pages can slowdown the server, is this true?
__________________
Redmark
redmark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-06-2013, 10:24 PM   #7
Mark.Roy
Confirmed User
 
Industry Role:
Join Date: Apr 2013
Posts: 122
what you are referring to is called php function include.

if same content on your site is gonna appear on many pages then you create a separate file for it and just use this code in pages, where you wanna sho it.
<?php
include(filename.php); ?>

read some books on php and html, there are loads of material online and for free too.
good luck.
Mark.Roy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-06-2013, 10:30 PM   #8
PeR930
Confirmed User
 
Industry Role:
Join Date: Dec 2012
Posts: 283
Ditto on php include function as others have said.
PeR930 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.