Grandpa Posted April 1, 2005 Share Posted April 1, 2005 Ok, so I'm looking to put links along the left side of my website Jswano.com under the navigation, but since all my pages have the same set up, every time i add a link, ill have to run through all the pages and add it to each html page on my domain. There must be a simpler way to do this so I can have the list of links in an external file or something? I looked it up, but couldnt really find much (or much that i understood). Anyway, my lack of experience brings me here. Any help? Quote Link to comment Share on other sites More sharing options...
Dirty_habiT Posted April 1, 2005 Share Posted April 1, 2005 a perl or cgi script would allow you to make a "footer" and add it into any section of a website by simply adding a small command. Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 1, 2005 Author Share Posted April 1, 2005 will that still work if my host only accepts PHP Quote Link to comment Share on other sites More sharing options...
misteraven Posted April 2, 2005 Share Posted April 2, 2005 easiest way to do it is to change all the extensions of your pages to .php and then use a require statement to include a seperate file with all the links. then you'd only need to worry about editing a single file when editing links. pretty easy if you know basic php. Quote Link to comment Share on other sites More sharing options...
Fondles Posted April 2, 2005 Share Posted April 2, 2005 I don't have much to add. except. NICE LEXUS TRUCK YOU RICH FUCK. Quote Link to comment Share on other sites More sharing options...
sarcasm Posted April 2, 2005 Share Posted April 2, 2005 just use frames Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 so thers no way to do this by solely using html Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 Originally posted by Seldoon@Apr 1 2005, 07:16 PM I don't have much to add. except. NICE LEXUS TRUCK YOU RICH FUCK. Quoted post what the fuck are you talking about Quote Link to comment Share on other sites More sharing options...
Fondles Posted April 2, 2005 Share Posted April 2, 2005 ah nothing. joking. calm down buddy. want a beer? relaaaaax. Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 ok so i tried the include thing i put in <?php require("myfile.html"); ?> and when that didnt work i tried <?php require("myfile.txt"); ?> in either case,absolutely NOTHING comes up on the site where it should Quote Link to comment Share on other sites More sharing options...
misteraven Posted April 2, 2005 Share Posted April 2, 2005 it has to be a php file or it wont get parsed. rename your main document so it's .php instead of .html and rename your include file as myfile.php keep in mind that the code in myfile.php will need the correct syntax or it'll get parsed incorrectly and most likely show up blank on the main page. post it here and i'll write the code for you if i'm around. Quote Link to comment Share on other sites More sharing options...
Fondles Posted April 2, 2005 Share Posted April 2, 2005 ok, so seriously, i want a cheap ipod, what the business is homie? Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 Here's my template style for my site, i saved this as a php file specifically templateshit.php <html> <head> <title>J-Swano Dot Com</title> <meta name="description" content="J-swano Dot Com"> <meta name="keywords" content="Hilariousness"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style> BODY {SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000; SCROLLBAR-SHADOW-COLOR: #333333; SCROLLBAR-3DLIGHT-COLOR: #FFFFFFF; SCROLLBAR-ARROW-COLOR: #CCCCCC; SCROLLBAR-TRACK-COLOR: #7D7773; SCROLLBAR-DARKSHADOW-COLOR: #999999; } </style> </head> <body bgcolor="#000000" text="#CCCCCC" link="#ffffff" vlink="#FFFFFF" alink="#990000" topmargin=0 leftmargin=0 MARGINHEIGHT=0 MARGINWIDTH=0> <center> <table width="770" border="1" cellspacing="0" cellpadding="0" bordercolor=#242424> <tr> <td colspan="3"></td> </tr> <tr> <td width="130" valign="top"> <table border=0 width=100% cellpadding=10 cellspacing=0><tr><td valign=top> <font color="#A4A4A4"><h3>Menu</h3></font> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> Home Who Are You? The Crew The Chronicles Infamous TFFC </font> </td></tr></table> </td> <td width="500" valign="top"> <center><font color="#A4A4A4"><h2>Template</h2></font> </center> <table border=0 width=100% cellpadding=20 cellspacing=0><tr><td valign=top> <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>Template </P></FONT></FONT></FONT></FONT> </td></tr></table> </td> <td width="140" valign="top"> <table border=0 width=100% cellpadding=10 cellspacing=0><tr><td valign=top> <font color="#A4A4A4"><H3>Latest News</H3></FONT></center> <center>Click Here for the Most Recent Updates</center> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"></p> Anyone who wants a CHEAP iPod, with no shipping or tax, Email Jdoobz@jswano.com His father works for Apple Computers, and he'll get back to you with details.</center> </td></tr></table> </td> </tr> <tr> <td colspan="3" height=25 valign=middle> <center> <font face="Arial, Helvetica, sans-serif" size="1">Questions? Comments? Shut the fuck up. Or you can Contact Me: J-Swano </a></font></td> </tr> </table> </body> </html> Now I'm looking to add a changable lisk of link trades UNDER the navigation menu. I just made a php template with a black background and put some random links in it to serve as a template for that too...its saves as external.php : <?php <html> <head> <title>J-Swano Dot Com</title> <meta name="description" content="J-swano Dot Com"> <meta name="keywords" content="whatever"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style> BODY {SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000; SCROLLBAR-SHADOW-COLOR: #333333; SCROLLBAR-3DLIGHT-COLOR: #FFFFFFF; SCROLLBAR-ARROW-COLOR: #CCCCCC; SCROLLBAR-TRACK-COLOR: #7D7773; SCROLLBAR-DARKSHADOW-COLOR: #999999; } </style> </head> <body bgcolor="#000000" text="#CCCCCC" link="#ffffff" vlink="#FFFFFF" alink="#990000" topmargin=0 leftmargin=0 MARGINHEIGHT=0 MARGINWIDTH=0> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"> aol 12ozprophet </body> </html> ?> Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 Originally posted by Seldoon@Apr 1 2005, 09:24 PM ok, so seriously, i want a cheap ipod, what the business is homie? Quoted post you can get the ipods for about 50 less than u can in the stores and they can be personalized...i think thats the deal...im not positive, email my boy at jdoobz@jswano.com for details Quote Link to comment Share on other sites More sharing options...
villain Posted April 2, 2005 Share Posted April 2, 2005 Originally posted by sarcasm@Apr 1 2005, 07:22 PM just use frames Quoted post Wouldn't this be easier? Quote Link to comment Share on other sites More sharing options...
Grandpa Posted April 2, 2005 Author Share Posted April 2, 2005 i hate frames, theyre a headache Quote Link to comment Share on other sites More sharing options...
sarcasm Posted April 2, 2005 Share Posted April 2, 2005 and you're telling me that php stuff isn't?? if not regular frames, then use iframes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.