Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Updating Links all at once
Old 10-27-2005, 09:32 AM Updating Links all at once
Experienced Talker

Posts: 32
Trades: 0
I am sure a question like this has been posted before (i could not find one), so if there was a similar topic, let me know.

On my dad's site each time a new link is added, the rest of the site must be updated to include the presence of the new link(s) on each page.

Is there a way to have one document containing the links, and that document is then fed upon by all the other pages.

If necessary, redoing the site the correct way is fine.

Any help is appreciated. Many Thanks.

Last edited by TheBreadBaker; 07-26-2006 at 04:52 AM..
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-27-2005, 10:13 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
Not 100% sure what you mean, but I think you're referring to server side includes, where you can have 1 file that has some information, and all the pages are coded to "inlcude" that page when they are shown, if you change that one file, then all the pages reflect that change. There are non-server-side options such as GoLive's components, and I'm sure Dreamweaver has something similar. You can insert this into your page and whenever the page sees this code:

<!--#include file="menu.html"-->

it will write the contents of menu.html (if your server supports it). Google for "Server Side Include" for more detail

Last edited by funkdaddu; 10-27-2005 at 10:15 AM..
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-27-2005, 03:04 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
You can redo the website by using frames (one frame will be the links, the other the content of the page and maybe another oe for the logo).
http://html-html.com/frames/frames.html
here are some usefull tutorials for frames
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-27-2005, 03:51 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
frames? --shudder--
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-27-2005, 11:39 PM
extermin8tor's Avatar
Super Talker

Posts: 129
Location: MARS!!
Trades: 0
thanks for the code:
(<!--#include file="menu.html"-->)

i used to use frames but my host know puts ads in every frame, ****.
__________________

Please login or register to view this content. Registration is FREE
The Light at the end of the tunnel just switched off!
extermin8tor is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 12:06 AM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Oh ok cuz the frames are exactly what i do all the time....Is your host free? Cuz i have a chip one (12$ per year) that doesn't have a good quality of speed but it's exactly what you need for small websites.
If you're interested i can give you the adress. Just PM me.
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 01:30 AM
Extreme Talker

Posts: 176
Trades: 0
umm why would you want to use frames when you could just use an iframe?

anyway, this can also be accomplished with php prett easily, i can whip you up a script if you really need it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 10:03 AM
Experienced Talker

Posts: 32
Trades: 0
Thankyou all for posting. To follow things up, I have moved the site over to php and it has made it much much easier to run the site.

On every page using php I have a link to a html page containing all of the sites main links.

Just like this:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>


<?php
/* index.php */

/******************************************************************************
 * MAIN
 *****************************************************************************/
include("menu.htm");
?>
<br />
Am I using the correct method?

Last edited by TheBreadBaker; 07-26-2006 at 04:54 AM..
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 01:44 PM
lizard dude's Avatar
Super Talker

Posts: 119
Location: France
Trades: 0
Oh i have no idea cuz im learning php right now.....For WMTALK.TK, Iframes are usefull but for a website with a menu on the right, the content on the left and myabe a logo, i'd rather use frames to make it..
__________________
forum------->
Please login or register to view this content. Registration is FREE
, for people who wants to have a good time ;)
website------>
Please login or register to view this content. Registration is FREE
(might be in construction :D)
Hope you have a great time and that my post is helpfull ;)
lizard dude is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 05:25 PM
Experienced Talker

Posts: 32
Trades: 0
Dang, here I am using php, when I myself know nothing about it exept for that linking code. Ill learn it with ya.
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
Old 10-30-2005, 09:18 PM
Extreme Talker

Posts: 176
Trades: 0
you might want to end your head and put the php in your body and end the html...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 10-31-2005, 08:17 AM
Experienced Talker

Posts: 32
Trades: 0
Thanks for the tip, but right after that segment of php code, lies the content of the site, followed by one more segment of php and then the end </html> of the page.

But that was my fault for not including all the page code.
TheBreadBaker is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Updating Links all at once
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.89322 seconds with 12 queries