Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-02-2003, 07:26 PM   #1
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
Web Design Assistance

Hi,

I need some help with my designing. I have the homepage designed just how i want it, with tables and not frames dividing it. Now, when going to make the rest of the links, it takes intirely too long to paste the main HTML and then do the text i want per page. I have read i can do it in SSI, but it doesnt work with tables. I was wondering if there was a CSS way to do it. I am using HTML 4.1 transisional. THANKS (link below)

www.derbydigital.com
__________________

Tyler A. Thompson
Small Business Networking Services Specialist
tyler@derbydigital.com
kstatefan40 is offline   Reply With Quote
Old 12-07-2003, 05:50 AM   #2
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
It takes a while, but I ran into the same problem as you did a few months ago. I decided to go for the php option (if your server offers it. What this means is you can have all your data coming through the one page and all you have to do is write write a few if/else code lines. What it also means is if you want to redesign your website in the future all you have to do is redesign one page. If you want an example of how to do it I can send you my index page (in progress) that shows how simple it is?
MSIuser is offline   Reply With Quote
Old 12-07-2003, 11:26 AM   #3
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
The easiest would be to use php. You wouldn't necessarily have to have any if/then/else statements. Just build you page the way you want it and chop it up into a header, left menu, content and footer. The only part that will change will be the content part. So a page would look something like this:
PHP Code:
<?php
include("header.inc");
include(
"left_menu.inc");
?>
Content goes here.
<?php
include("footer.inc");

?>
The .inc extension just means that it is an include file but it can be any extension. That is pretty basic but it makes it easier to change since all you have to is change 1 part.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 12-07-2003, 12:25 PM   #4
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
can you explain how to "chop the website" a little please? I havent used PHP much, but my server does allow it
kstatefan40 is offline   Reply With Quote
Old 12-07-2003, 07:02 PM   #5
Member (11 bit)
 
james8547's Avatar
 
Join Date: Aug 2003
Location: NJ
Posts: 1,099
An example of a "chopped website" is this. It's coded using php. It utilizes mysql as its database. It's not yet complete. It took a back seat since there are more pressing issues in my department. It's estimated completion date is Summer 2004.

Basically index.php calls on other files (footer.php, header.php, etc). There are different files responsible for the header, footer, side boxes, and website functions (search, checkout, shopping cart, etc.). This allows me to make changes very easily.

I've done other sites but this particular one is the best of them all
__________________
P4 2.6C @ 3.12 || ASUS P4C800-E Dlx || Antec SOHO File Server w/ 5 case fans || Antec TruePower 430w PSU || 2 x 512MB Crucial PC3200 DDR || 280GB of total storage 7200rpm ATA100 8mb cache || LiteOn CDRW 52x32x52 || LiteOn DVD+/-RW SOHW-812S || WinXP Pro || Solarism 15" TFT LCD || 500VA TrippLite UPS || Logitech MX-700 Duo || ATI 9800 AIW || Sennheiser HD-555
james8547 is offline   Reply With Quote
Old 12-07-2003, 09:02 PM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally posted by kstatefan40
can you explain how to "chop the website" a little please? I havent used PHP much, but my server does allow it
By chop what I mean is get the page the way you like it, then cut it up into sections and save each section as a separate file. The pieces when they are included will make the whole page. So basically your header will be whatever is at the top of the page.
mairving is offline   Reply With Quote
Old 12-07-2003, 09:20 PM   #7
Member (8 bit)
 
Join Date: Mar 2003
Location: U.S. -- Arlington, TX
Posts: 245
Send a message via AIM to vizun Send a message via Yahoo to vizun
php includes are exactly the way i think you should do it :P
vizun is offline   Reply With Quote
Old 12-07-2003, 09:50 PM   #8
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
thanks! do i just save as php or html?

can you right out the includes script i would need?

thanks again!
kstatefan40 is offline   Reply With Quote
Old 12-08-2003, 06:54 AM   #9
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Quote:
Originally posted by kstatefan40
thanks! do i just save as php or html?

can you right out the includes script i would need?

thanks again!
It doesn't really matter what you call the include files. I usually name them .inc to signify that they are include files. On the pages that call the include files, you will have to name them .php or an a line in a .htaccess file to process php in .htm files. So your home page becomes index.php.
mairving is offline   Reply With Quote
Old 12-08-2003, 04:37 PM   #10
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
Stick us up a copy of your current index.html and if you want ill edit it for you.
MSIuser is offline   Reply With Quote
Old 12-12-2003, 10:02 PM   #11
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
Here you go, THANKS!!!!!!!!! Sorry it took so long, ive been sick. if you need any more files let me know.
Attached Files
File Type: zip index.zip (1.2 KB, 31 views)
kstatefan40 is offline   Reply With Quote
Old 12-15-2003, 01:22 PM   #12
Member (9 bit)
 
MulderMan's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 362
Send a message via AIM to MulderMan
erm i had ago with the includes for u, usually they work for me but youll have to ask someone else to make it work proppa. put all the files on a server and have a look.
Attached Files
File Type: zip derby.zip (35.3 KB, 28 views)
MulderMan is offline   Reply With Quote
Old 12-22-2003, 01:00 PM   #13
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
My only problem is an alignment issue. I am not sure how to realign it right. here is what ive got, using your includes: www.derbydigital.com/dd
Thank you very much!
kstatefan40 is offline   Reply With Quote
Old 12-22-2003, 01:47 PM   #14
Member (9 bit)
 
MulderMan's Avatar
 
Join Date: Dec 2003
Location: England
Posts: 362
Send a message via AIM to MulderMan
from what ive heard the alingment info goes in the header file. ill keep ya posted when i find the right code cos i wnat to do my own site like that cos html frames mess up 99% of the time
MulderMan is offline   Reply With Quote
Old 12-22-2003, 02:51 PM   #15
Member (9 bit)
 
Undead_Rider's Avatar
 
Join Date: Nov 2003
Location: Canada ontario
Posts: 342
i dont know what u mean u want to align it right but u can do that to the right left and center.
add align="left" , align="right", align="center" i.e.

big heading right aligned


edit this has html code on so heres a code modofied so it wont be recocnised.
h1 align="right">big heading right aligne closing tag goes here


post to see if thats what u meant gimme more details. Or are u talking about frames/tables and aligning text eh?

Last edited by Undead_Rider; 12-22-2003 at 02:54 PM.
Undead_Rider is offline   Reply With Quote
Old 12-22-2003, 03:01 PM   #16
Security Dude
Staff
 
kstatefan40's Avatar
 
Join Date: Jun 2003
Location: Derby, Kansas
Posts: 999
Send a message via AIM to kstatefan40 Send a message via MSN to kstatefan40 Send a message via Yahoo to kstatefan40 Send a message via Skype™ to kstatefan40
I need frame alignment using php includes but not using the actual HTML frames.
kstatefan40 is offline   Reply With Quote
Old 12-22-2003, 04:38 PM   #17
Member (9 bit)
 
Undead_Rider's Avatar
 
Join Date: Nov 2003
Location: Canada ontario
Posts: 342
heres a sight
www.phpconsulting.com/web/html.php
and cant you just do
http://www.sloppycode.net/html/special/iframe.html


Admin Edit: fixed a bunch of buggy code so the thread would look good.

Last edited by M. A. Dockter; 12-22-2003 at 05:32 PM.
Undead_Rider is offline   Reply With Quote
Old 12-22-2003, 04:40 PM   #18
Member (9 bit)
 
Undead_Rider's Avatar
 
Join Date: Nov 2003
Location: Canada ontario
Posts: 342
olds post got wacked so heres it agian
heres a web site
http://www.sloppycode.net/html/special/iframe.html
and
www.phpconsulting.com/web/html.php
but cant u just do this to align the frames?

Admin Edit: I removed a bunch of code that was messing up this thread.

Last edited by M. A. Dockter; 12-22-2003 at 05:30 PM.
Undead_Rider is offline   Reply With Quote
Old 12-22-2003, 04:55 PM   #19
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Eek, I hate Iframes.

Undead_rider can you edit your post and remove the iframes?
mairving is offline   Reply With Quote
Old 12-22-2003, 08:23 PM   #20
Member (9 bit)
 
Undead_Rider's Avatar
 
Join Date: Nov 2003
Location: Canada ontario
Posts: 342
ya i wanted to but i couldn't eh. Wouldn't let me see bottem half of the page for some reason but since dok fixed it i can now.
Undead_Rider is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2