| Coding Forum Problems with your code? Let's hear about it. |
07-05-2007, 07:31 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 06-20-07
Posts: 55
Latest Blog: None
|
How to Use this Layout
Can you guys help show me how to use this layout (and other like it, for future references) with SSI?
What I don't know is which part of the code should be in the first <include file=.shtml> thing, then which is where I can write my content, and last which can be in the second <include file=.shtml> thing.
So basically, can you please break this down into 3 pieces? The third being where I put the content.
HTML Code:
<html>
<head>
<title>GM White (c) senkouryu.net</title>
<style>
<!--
font { FONT-FAMILY: Verdana,Helvetica; color:#9C9A9C }
body { FONT-FAMILY: Helvetica, Tahoma; color: #9C9A9C; font-size: 11px;
background-color:#F7F3F7; }
td { FONT-FAMILY: Helvetica, Tahoma; color: #9C9A9C; font-size: 11px;}
td.content { padding: 4px;}
a { FONT-FAMILY: Helvetica, Tahoma; color: #7A787A; font-size: 11px;
text-decoration:none;}
a:hover { FONT-FAMILY: Helvetica, Tahoma; color: #BEBCBE; font-size: 11px;
text-decoration:none;}
.navhead { display: block; padding-left: 4px; padding-right: 4px; border: 1px solid
#9C9A9C; background: url(/banner.gif); color: #9C9A9C; font-weight: bold; text-align:
center;}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br><center>
<table width="738" border="0" cellpadding="0" cellspacing="0" background="/overall_bg.gif">
<tr>
<td colspan="4" rowspan="3">
<img src="/index_01.gif" width="173" height="176" alt=""></td>
<td>
<img src="/index_02.gif" width="480" height="28" alt=""></td>
<td colspan="2" rowspan="3">
<img src="/index_03.gif" width="85" height="176" alt=""></td>
</tr>
<tr>
<td>
<img src="/banner.gif" width="480" height="124" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_05.gif" width="480" height="24" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_06.gif" width="13" height="50" alt=""></td>
<td>
<img src="/index_07.gif" width="146" height="50" alt=""></td>
<td colspan="2">
<img src="/index_08.gif" width="14" height="50" alt=""></td>
<td colspan="2">
<img src="/index_09.gif" width="564" height="50" alt=""></td>
<td>
<img src="/index_10.gif" width="1" height="50" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_11.gif" width="13" height="251" alt=""></td>
<td class="content" valign="top" background="/nav.gif" width="146">
<!-- Navigation Start -->
<div class="navhead">Xbox360Attacker</div>
<a href="http://xbox360-forums.com"> :: Forum</a><br>
<a href="directory.shtml"> :: txboxr Directory</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<div class="navhead">Section Two</div>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<div class="navhead">Section Three</div>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<!-- Navigation end -->
</td>
<td colspan="2">
<img src="/index_13.gif" width="14" height="251" alt=""></td>
<td class="content" valign="top" colspan="2" background="/content.gif"
width="564">
<!-- Content Starts Here! -->
<div class="navhead">Layout Info</div>
<b>Layout Name:</b> GM White<br>
<b>Type:</b> Image-Based, Div<br>
<b>Iframes:</b> NO<br>
<b>Download Requirements:</b><br>
- No requirments needed.<br>
<b>Sopi Cost:</b> 0 Sopi<br>
<b>Features:</b><br>- A Game Maker Ball at the top =D<br>
<b>Description:</b><br>
A Layout designed for a Game Maker site. Good for people who wants a site for
their GM Stuff such as examples, tutorials and games.<p>
<div class="navhead">Copyright & Final Comments</div>
This layout is copyrighted by SenkouRyu, don't edit the copyright
info anywhere!<br>
Be sure to check <a
href="http://www.senkouryu.net">http://www.senkouryu.net</a> for more layouts like this or
even better ones!
<!-- Content End -->
</td>
<td>
<img src="/index_15.gif" width="1" height="251" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="/index_17.gif" width="166" height="112" alt=""></td>
<td colspan="4">
<img src="/index_18.gif" width="572" height="112" alt=""></td>
</tr>
<tr>
<td>
<img src="/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="146" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="480" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="84" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="1" height="1" alt=""></td>
</tr>
</table>
</center>
<div style="font-size: 0.8em; text-align: center; margin-top: 1.0em; margin-bottom:
1.0em;">
Design provided by <a href="http://www.freewebtemplates.com/">Free Web Templates</a> - your
source for free website templates
</div>
</body>
</html>
Thanks!
|
|
|
07-05-2007, 09:11 PM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
But you can do that very easy yourself...Just break the page in how many sections you want.
i.e. :
- the header
- the navigation
- the content
- the footer
after that you can import them in your page:
<!--#include virtual="pageheader.shtml" -->
<!--#include virtual="pagenavigation.shtml" -->
and so on...
|
|
|
07-05-2007, 09:35 PM
|
#3 (permalink)
|
|
Inactive
Join Date: 06-20-07
Posts: 55
Latest Blog: None
|
Yes, I know...............
But what I'm asking for help is I don't know where to break the stuff and then how to close the tags, then restart the next.....
|
|
|
07-05-2007, 09:55 PM
|
#4 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
First:
I think that your page structure is not good. When you create a website you have to find the perfect layout for it.
Below I'll give you an example of how I see a good page layout. This should clarify your questions.
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Template Page</title>
</head>
<body>
<div class="PageLayoutManager">
<div class="PageHeaderManager">
<div class="PageBanner">
<!--#include virtual="pageBanner.shtml" -->
</div>
<div class="PageHeaderNavigation">
<!--#include virtual="pageHeaderNavigation.shtml" -->
</div>
</div>
<div class="PageContentManager">
<div class="PageContent">
<!--#include virtual="pageContent.shtml" -->
</div>
<div class="PageSideBar">
<!--#include virtual="pageSidebar.shtml" -->
</div>
</div>
<div class="PageFooter">
<!--#include virtual="pageFooter.shtml" -->
</div>
</div>
</body>
</html>
This how your pageBanner.shtml might look
Code:
<div class="PageBannerWrapper">
Add all the banner content here
</div>
Code:
<div class="PageContentWrapper">
<!-- Content Starts Here! -->
<div class="navhead">Layout Info</div>
<b>Layout Name:</b> GM White<br>
<b>Type:</b> Image-Based, Div<br>
<b>Iframes:</b> NO<br>
<b>Download Requirements:</b><br>
- No requirments needed.<br>
<b>Sopi Cost:</b> 0 Sopi<br>
<b>Features:</b><br>- A Game Maker Ball at the top =D<br>
<b>Description:</b><br>
A Layout designed for a Game Maker site. Good for people who wants a site for
their GM Stuff such as examples, tutorials and games.<p>
<div class="navhead">Copyright & Final Comments</div>
This layout is copyrighted by SenkouRyu, don't edit the copyright
info anywhere!<br>
Be sure to check <a
href="http://www.senkouryu.net">http://www.senkouryu.net</a> for more layouts like this or
even better ones!
<!-- Content End -->
</div>
...and so on
|
|
|
07-05-2007, 10:01 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 06-20-07
Posts: 55
Latest Blog: None
|
I didn't make that though, I just downloaded it.
But this just really confuses me. Do you mind breaking it down so I can just put <!--#include virtual="pageheader.shtml" --> etc. on a page with my content so I can start uploading pages to see what they will look like?
Thanks for your help.
|
|
|
07-05-2007, 10:02 PM
|
#6 (permalink)
|
|
Inactive
Join Date: 06-20-07
Posts: 55
Latest Blog: None
|
By the way, I know this only takes like 30 seconds to do, I've done it before, but I'm just not sure how/where to do it with this layout code.
|
|
|
07-05-2007, 10:24 PM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
Main Page :
Code:
<html>
<head>
<title>GM White (c) senkouryu.net</title>
<style>
<!--
font { FONT-FAMILY: Verdana,Helvetica; color:#9C9A9C }
body { FONT-FAMILY: Helvetica, Tahoma; color: #9C9A9C; font-size: 11px;
background-color:#F7F3F7; }
td { FONT-FAMILY: Helvetica, Tahoma; color: #9C9A9C; font-size: 11px;}
td.content { padding: 4px;}
a { FONT-FAMILY: Helvetica, Tahoma; color: #7A787A; font-size: 11px;
text-decoration:none;}
a:hover { FONT-FAMILY: Helvetica, Tahoma; color: #BEBCBE; font-size: 11px;
text-decoration:none;}
.navhead { display: block; padding-left: 4px; padding-right: 4px; border: 1px solid
#9C9A9C; background: url(/banner.gif); color: #9C9A9C; font-weight: bold; text-align:
center;}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<br>
<center>
<table width="738" border="0" cellpadding="0" cellspacing="0" background="/overall_bg.gif">
<tr>
<td colspan="4" rowspan="3">
<img src="/index_01.gif" width="173" height="176" alt=""></td>
<td>
<img src="/index_02.gif" width="480" height="28" alt=""></td>
<td colspan="2" rowspan="3">
<img src="/index_03.gif" width="85" height="176" alt=""></td>
</tr>
<tr>
<td>
<img src="/banner.gif" width="480" height="124" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_05.gif" width="480" height="24" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_06.gif" width="13" height="50" alt=""></td>
<td>
<img src="/index_07.gif" width="146" height="50" alt=""></td>
<td colspan="2">
<img src="/index_08.gif" width="14" height="50" alt=""></td>
<td colspan="2">
<img src="/index_09.gif" width="564" height="50" alt=""></td>
<td>
<img src="/index_10.gif" width="1" height="50" alt=""></td>
</tr>
<tr>
<td>
<img src="/index_11.gif" width="13" height="251" alt=""></td>
<td class="content" valign="top" background="/nav.gif" width="146">
<!--// Navigation Start -->
<!--#include virtual="pageNavigation.shtml" -->
<!--// Navigation end -->
</td>
<td colspan="2">
<img src="/index_13.gif" width="14" height="251" alt=""></td>
<td class="content" valign="top" colspan="2" background="/content.gif" width="564">
<!--// Content Starts Here! -->
<!--#include virtual="pageContent.shtml" -->
<!--// Content End -->
</td>
<td>
<img src="/index_15.gif" width="1" height="251" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src="/index_17.gif" width="166" height="112" alt=""></td>
<td colspan="4">
<img src="/index_18.gif" width="572" height="112" alt=""></td>
</tr>
<tr>
<td>
<img src="/spacer.gif" width="13" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="146" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="7" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="480" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="84" height="1" alt=""></td>
<td>
<img src="/spacer.gif" width="1" height="1" alt=""></td>
</tr>
</table>
</center>
<div style="font-size: 0.8em; text-align: center; margin-top: 1.0em; margin-bottom: 1.0em;">
Design provided by <a href="http://www.freewebtemplates.com/">Free Web Templates</a>
- your source for free website templates
</div>
</body>
</html>
|
|
|
07-05-2007, 10:25 PM
|
#8 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
pageNavigation.shtml
Code:
<!--// THIS IS THE NAVIGATION FILE -->
<div class="navhead">Xbox360Attacker</div>
<a href="http://xbox360-forums.com"> :: Forum</a><br>
<a href="directory.shtml"> :: txboxr Directory</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<div class="navhead">Section Two</div>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<div class="navhead">Section Three</div>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
<a href="#"> :: Link Here</a><br>
|
|
|
07-05-2007, 10:26 PM
|
#9 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
pageContent.shtml
Code:
<!--// THIS IS THE CONTENT -->
<div class="navhead">Layout Info</div>
<b>Layout Name:</b> GM White<br>
<b>Type:</b> Image-Based, Div<br>
<b>Iframes:</b> NO<br>
<b>Download Requirements:</b><br>
- No requirments needed.<br>
<b>Sopi Cost:</b> 0 Sopi<br>
<b>Features:</b><br>
- A Game Maker Ball at the top =D<br>
<b>Description:</b><br>
A Layout designed for a Game Maker site. Good for people who wants a site for their
GM Stuff such as examples, tutorials and games.<p>
<div class="navhead">Copyright & Final Comments</div>
This layout is copyrighted by SenkouRyu, don't edit the copyright info anywhere!<br>
Be sure to check <a href="http://www.senkouryu.net">http://www.senkouryu.net</a>
for more layouts like this or even better ones!
hth
|
|
|
07-05-2007, 10:27 PM
|
#10 (permalink)
|
|
Inactive
Join Date: 06-20-07
Posts: 55
Latest Blog: None
|
Sweet, thanks! That was exactly what I needed.
|
|
|
07-05-2007, 10:44 PM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
Glad I could help! 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 12:32 AM.
© Copyright 2008 V7 Inc
|