home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

HTML Code Question -- Link Bar

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2871
Discussions: 200,968, Posts: 2,379,683, Members: 246,333
Old January 15th, 2006, 01:56 PM   Digg it!   #1 (permalink)
Ultimate Member
 
Join Date: Apr 2003
Location: Texas
Posts: 1,292
Send a message via AIM to fourthbean
HTML Code Question -- Link Bar

I am working on a website www.radio.dominationtime.com, it is going well, but I am a novice and wanted to see if there were some shortcuts I was missing. My main problem is the link bar. When I want to add something to it, I must add it to every single page on the site. Right now I have about 7, so adding a download for the podcast will take the time of uploading plus editing every php file there.

I was thinking about it last night, is there a way to make each web page point to another php file that has the links, and then it would be displayed inside of each page? Not sure if I explained that right.


How do webmasters manage a link bar like this?

Thanks,
Fourthbean
fourthbean is offline   Reply With Quote
Old January 17th, 2006, 10:45 AM     #2 (permalink)
Senior Member
 
bwcc's Avatar
 
Join Date: Nov 2001
Location: Central KS
Posts: 840
If you're using PHP it's easy. Create your link bar in a seperate php or html file.

For your pages, you can call your link bar page by using:

PHP Code:
<?
include 'linkbar.php';
?>
It will include the file as if it was written in that page. Therefore, you'll want to remove any standard HTML header and body codes in the included file.
__________________
Im against picketing, but I dont know how to show it.
bwcc is offline   Reply With Quote
Old January 17th, 2006, 12:31 PM     #3 (permalink)
Ultimate Member
 
Join Date: Apr 2003
Location: Texas
Posts: 1,292
Send a message via AIM to fourthbean
Now thats what I am talking about! Thanks a bunch!

EDIT: Works perfect, thanks again

Last edited by fourthbean : January 17th, 2006 at 12:44 PM.
fourthbean is offline   Reply With Quote
Old January 17th, 2006, 05:06 PM     #4 (permalink)
Ultimate Member
 
cryptoguy's Avatar
 
Join Date: Jun 2002
Location: Ohio
Posts: 1,349
Send a message via AIM to cryptoguy
Another simple way to do this (not specifically for PHP) is to make a template. Dreamweaver definately has this, I do not know about other software. Basically you just make a "sample" page with the link bar and anything else you want displayed on every page, and then you make pages with the existing template. Later, if you want to add/remove a link from the link bar, you only have to edit the template, and all pages using it will automatically be updated.
__________________
23. That's the number of people Mr. T has pitied in the time it has taken you to read this sentence.
cryptoguy is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Video Code scotto811 Graphic Design and Digital Photography 4 August 4th, 2005 06:31 PM
Help With HTML Code lablkilz699 General Tech Discussion 2 March 4th, 2005 07:13 AM
HTML Help: Redirect Code? ClubMed Webmastering and Programming 3 September 19th, 2004 06:21 AM
Great bar-code-related wallpaper... Theophylact IMO Community 3 April 30th, 2003 06:43 AM
Need help with html code angelcat Graphic Design and Digital Photography 3 March 26th, 2002 05:01 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3028)
Forty-six years ago today (12)
The disrespect of Obama by Russian .. (46)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Internet Lost (5)
windows vista security holes (16)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
Nvidia GTX 260 problem (2)
windows vista security holes (16)
Delete an OS (8)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Help getting around port 80 for camer.. (4)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Virus advise (8)


All times are GMT -4. The time now is 04:44 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28