Reply
Designing the Layout
Old 05-08-2005, 11:21 PM Designing the Layout
BoardTng's Avatar
Novice Talker

Posts: 14
Ok, Ill try to explain this the best I can.

Ive been doing Iframe for quite awhile now and its really all i know how to do. To the point Im using them to save me the trouble of having to update every link on every page if you guys do know what i mean. Im wondering if there is another way out there that besides Iframes (shtml) would look professional and stop me from having to do that update every page link thing. Im not too sure but if somebody can help me, please respond or instant message me.

~ BoardTng

thx.
BoardTng is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-09-2005, 07:23 AM
stoot98's Avatar
Ultra Talker

Posts: 340
Name: Stuart
Location: Glasgow, Scotland
You could use another language such as PHP to pull the links from a database. Or use the include() function to include one page which has all the links on it.

I know exactly what you mean and i think the database route is the one to go down.
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 05-09-2005, 07:44 AM
BoardTng's Avatar
Novice Talker

Posts: 14
Is there any way I could get somebody to show me how to do the php scripting to pull the links from the database? Id appriciate it.
BoardTng is offline
Reply With Quote
View Public Profile
 
Old 05-11-2005, 08:39 AM
Novice Talker

Posts: 7
you can use php includes . This way break page into parts . And each parts is loaded from a file . Modular aspect , ease to update is guaranteed . I always use this technique .
__________________
Kind advice : GatorHost Excellent Hosting - PR:7
Coder-X is offline
Reply With Quote
View Public Profile Visit Coder-X's homepage!
 
Old 05-11-2005, 09:12 AM
desertland's Avatar
Skilled Talker

Posts: 86
You could also use SSI to have your 'menu' code in one file, and then include that file from all the rest of your pages.

For example:
<!--#include virtual="menuCode.shtml"-->
__________________
I store my recipes online (the way nature intended) at www.meanmeals.com
desertland is offline
Reply With Quote
View Public Profile
 
Old 05-11-2005, 04:59 PM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
Why not set it in a variable? I know people that do that with CGI. I wish I knew PHP, I'd show you what I meant. This is what it looks like with a perl script:
Code:
$gallerylink = "http://www.whatever.com/gallery.html";

<<ENDHTML

<html>
<body>
<a href="$gallerylink">Click here to see my gallery</a>
</body>
</html>

ENDHTML;
Then when you need to change the link you simply change what the variable is assigned to.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Old 05-12-2005, 03:48 AM
Novice Talker

Posts: 6
That should work if not
HKSTurbo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Designing the Layout
 

Thread Tools

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

vB 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.14000 seconds with 13 queries