HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Dumping frames - what should I use? SSI? PHP? Shared borders
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Sun Jun 04, 2006 4:22 am     Dumping frames - what should I use? SSI? PHP? Shared borders Reply with quote

I've decided that frames are no good. So I'm redoing my website.

But I liked the ease of frames in adding pages to my web site while maintaining the logo border across the top, the navigation bar to the left, and the photo bar to the right.

What should I use to replace them that can give me the same appearance and ease of use? SSI? PHP? Shared borders in FrontPage?

Thanks,

Vardiss
www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sun Jun 04, 2006 4:42 am     Reply with quote



I use file includes myself - handled by ASP. Otherwise, SSI is fine, but I do not recommend JavaScript. Check out Included Content.

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Sun Jun 04, 2006 7:02 am     Where to go from here? Reply with quote

Thanks for the reply!

Can you recommend any good online tutorials to allow me to make the change-over as quickly and easily as possible?

I don't want to do anything fancy. Just a top border with two gifs, a left border with navigation links and a right border with some more gifs.

Vardiss
www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Sun Jun 04, 2006 9:32 am     Reply with quote

It depends on which one you choose.

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Tue Jun 06, 2006 8:44 am     PHP includes it is Reply with quote

My server god says I should use PHP includes.

Can you suggest a good tutorial to quickly add a banner at the top, navigation bar on the left and pictures on the right?

I want to try and duplicate my current appearance if possible.

Thanks,

Vardiss
www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Tue Jun 06, 2006 10:08 am     Reply with quote

Besides the link above check out PHP Include files

(under your profile you can add your signature - that way you don't have to type it in manually everytime - this is how yu add your signature on most forums.)

_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Wed Jun 14, 2006 9:46 am     Ready to move ahead Reply with quote

I've looked at the tutorials and I'm ready to move ahead with PHP Includes.

If I understand correctly, I create some tables:
Top banner table,
Left navigation table
Right graphic table
Center content table

Then to change each page, I just PHP Include different content into the Center Content Table.

Is this correct?

Also, just to confirm before I do all this work: this solution will solve these two problems right?

Unlike with frames:
1) Each page will now have its own URL
2) Pages will now be visible to search engines.

Thanks for all the help!

Vardiss
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Wed Jun 14, 2006 12:11 pm     Reply with quote

Well each page will always have its won URL - even with frames, - you just might not see the URL in the address bar.

You includes would more than likely be the top banner, left nav and right graphic possibly. The content would be the page itself that would somewhat change.

_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Mon Jun 19, 2006 9:52 am     So I use tables? Reply with quote

I got mugged by another part of real life. I'm ready to make the switch.

I broke out the four bits of content: main content, and the 3 banners:
top, left and right.

So is the best way to do this to create tables for the banners so that they get formatted correctly?

Thanks,

Vardiss

www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Mon Jun 19, 2006 10:18 am     Reply with quote

Yes you can do something like
Code:
<table style="width: 770px;">
   <tr>
      <td><!--#INCLUDE FILE="includes/header.html" --></td>
   </tr>
</table>

<table style="width: 770px;">
   <tr>
      <td style="width: 120px;"><!--#INCLUDE FILE="includes/left.html" --></td>
      <td style="width: 530px;">content here</td>
      <td style="width: 120px;"><!--#INCLUDE FILE="includes/right.html" --></td>
   </tr>
</table>

_________________
Corey
Loud Commerce | Loud Worx | Merchant Account Blog
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Wed Jun 21, 2006 2:59 am     Thanks! Reply with quote

Thanks! You are a god!

I've got the first page up and running so everything should go pretty quickly now.

One question: The left navigation bar is now an include. I want to make it so that when you click on 'Home' it brings you back to www.eastwestcultural.org no matter which page you're on. But I can only get it to work with an href relative to the main page: i.e.
<a href="index.php">

If I try to make it a URL that will work from any page: i.e.
<a href="www.eastwestcultural.org/index.php">

I get this instead: www.eastwestcultural.org/www.eastwestcultural.org/index.php

Any ideas why it's doing this? Or, more importantly, how to fix it? Smile

Thanks again!

Vardiss
www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Wed Jun 21, 2006 4:25 am     Reply with quote

Try using a virtual path or an absolute path.

_________________
Corey
Loud Info | Loud Worx | Merchant Account Blog
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Wed Jun 21, 2006 11:00 am     Lots of unexpected developments in this switch to includes Reply with quote

Thanks the absolute addresses fixed it.

Hmm, there are lots of unexpected developments in this switch to PHP Includes

Now I'm wrestling with text colors which were never an issue before. Because PHP Includes 'include' the code into the body it means that the white text/yellow vlink that I had chosen to contrast with my blue navigation bar turns the vlinks yellow on the main section which has a light background. So I'm having contrast problems. I turned off vlink but the default purple vlink is not so great against the blue navigation bar either.

So I've been scratching my head to figure out how to change the text color in the main section which comes after the navigation bar. Since text color ='000080' is in the BODY section that's before the nav bar so that doesn't work.

Any suggestions?

Thanks,

Vardiss
www.eastwestcultural.org
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8259
Location: Castle Rock CO USA

PostPosted: Wed Jun 21, 2006 11:24 am     Reply with quote

Use styles. The vlink is going to come from your main opening body tag of course. Your includes will not have a <body> or a <head> in them.

_________________
Corey
Loud Commerce |
Loud Worx | Loud Ads
vardiss



Joined: 02 Jun 2006
Posts: 13

PostPosted: Thu Jun 22, 2006 2:38 am     Links don't open in new window? Reply with quote

Another gotcha has surfaced.

When I convert a page from frames to includes that opens links in new windows it works fine offline but when I upload it, it opens the links in the same window.

What's with this?

Any (quick) way around it?

Thanks,

Vardiss
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial