Pink Poogle Toy Forum

The official community of Pink Poogle Toy
Main Site
NeoDex
It is currently Fri Nov 15, 2024 11:33 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: Whats that code?
PostPosted: Sun Feb 06, 2005 4:49 am 
Beyond Godly
Beyond Godly
User avatar

Posts: 4874
Joined: Thu Jul 22, 2004 3:20 pm
Location: Vancouver!
I'm not sure if this belongs here, but here goes:

Say I have 10 Pages, and I have a sidebar that displays on all the pages. I have to change the sidebar but dont want to re-edit all the pages. Isnt there a code thats does if this page changes in this part, so and so page will also change?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 06, 2005 9:16 am 
Administrator
Administrator
User avatar

Posts: 1140
Joined: Mon May 31, 2004 1:36 pm
Nope, it's not that easy.

You can use frames (or iframe/ilayer tags) to embed pages into the main, "template" page with the navigation. That way, you'll only have to update the navigation frame to update navigation everywhere.
You can use javascript to store your navigation (and reference it from every page) -- update the javascript file, and your navigation will update on all pages. This fails if your visitors do not have javascript enabled.
You can use PHP to "template" your website, but that requires PHP.


Image
Will you stop with the honour stuff?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 06, 2005 7:11 pm 
Beyond Godly
Beyond Godly
User avatar

Posts: 4874
Joined: Thu Jul 22, 2004 3:20 pm
Location: Vancouver!
Hunter Lupe wrote:
Nope, it's not that easy.

You can use frames (or iframe/ilayer tags) to embed pages into the main, "template" page with the navigation. That way, you'll only have to update the navigation frame to update navigation everywhere.
You can use javascript to store your navigation (and reference it from every page) -- update the javascript file, and your navigation will update on all pages. This fails if your visitors do not have javascript enabled.
You can use PHP to "template" your website, but that requires PHP.


Bleh, PHP >.>

That iframe idea doesnt sound too bad, I've seen websites use it before.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 06, 2005 10:30 pm 
PPT Toddler
PPT Toddler
User avatar

Posts: 198
Joined: Wed Jun 02, 2004 1:00 am
don't get hooked on iframes though cuz not all browsers display them the same way.


Since these are no longer temporary forums, I will update my signature.
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 4:46 am 
PPT Baby
PPT Baby
User avatar

Posts: 57
Joined: Sat Feb 05, 2005 4:35 pm
Location: Chicago, IL
Obviously you don't like PHP all that much, but that's what I use on my site. PHP includes allow you to put certain things on all the pages that have a certain code on them that "includes" the uploaded file with the segment of code you want to display. So, if you change that one file, all the pages with the PHP include telling them to display it will change automatically. It's really handy when you have a lot of pages. That probably didn't make a whole lot of sense, I'm not very good at explaining things...LOL...but look up "PHP includes" on google and you should get something on them. They're pretty simple. :P


Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 08, 2005 1:04 am 
Newbie
Newbie

Posts: 40
Joined: Thu Jan 27, 2005 3:53 pm
You don't need to use PHP Includes. Just use SSI... here's a simplified tutorial:

http://www.crucialparadigm.com/resource ... torial.php


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 8:59 pm 
PPT God
PPT God
User avatar

Posts: 1765
Joined: Tue Jun 01, 2004 1:41 pm
Location: Belgium
i think normal frames work perfectly on every browser :)


Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 1:47 am 
Newbie
Newbie

Posts: 40
Joined: Thu Jan 27, 2005 3:53 pm
Quote:
i think normal frames work perfectly on every browser


Frames are anti-professional, anti-SEO and anti-W3 standards. Definitely not an option for any remotely serious web designer.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 10:48 am 
Administrator
Administrator
User avatar

Posts: 1140
Joined: Mon May 31, 2004 1:36 pm
FlareEyes wrote:
Frames are anti-professional, anti-SEO and anti-W3 standards. Definitely not an option for any remotely serious web designer.

I though they were part of W3C standards? http://www.w3.org/TR/REC-html40/present/frames.html


Image
Will you stop with the honour stuff?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 8:55 pm 
Newbie
Newbie

Posts: 40
Joined: Thu Jan 27, 2005 3:53 pm
Hunter Lupe wrote:
FlareEyes wrote:
Frames are anti-professional, anti-SEO and anti-W3 standards. Definitely not an option for any remotely serious web designer.

I though they were part of W3C standards? http://www.w3.org/TR/REC-html40/present/frames.html


Yes it is present in the standards, otherwise the fox wouldn't support them, but you have to understand that HTML was designed to be a flexible language which could be used in many environments. Frames are oriented towards more static pages, such as documentations, e-books or what else have you. Internet-wise, it just fails to be effective when used normally on page. That's why includes were created, because it dinanically generates the content, in a way that the page exists as a whole, not two or more pages artificially joined.

I'm not saying you can't use frames, it's just not professional or SEO friendly.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 50 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group