The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Off-Topic (https://www.pokecommunity.com/forumdisplay.php?f=23)
-   -   Question... (https://www.pokecommunity.com/showthread.php?t=25172)

DarknessMonkey December 16th, 2004 4:27 PM

Question...
 
I Have A Question...
Is There A HTML Code (Or Other?) That Is Able To Make It Where You Only Need To Put The Code & It Automatically Adds The Layout On Every Page?

Here's My Site URL:
http://www.pokemonretreat.cjb.net/
I Am Also Using Host Ultra Now...

aRedMoon December 16th, 2004 6:37 PM

There isn't any HTML code, you have to use SSI or PHP.

DarknessMonkey December 16th, 2004 6:38 PM

Whats That?
Ahhh Oh Well I'll Do It The Only Way...

Kipkip December 16th, 2004 6:47 PM

HostUltra supports PHP right?
Anyway, create an file for your layout and name it index.php.
Put this code:
PHP Code:

<?php 
   
if (!$id) { 
   
$id "main"
   
$include $id ".txt"
   } 
   else { 
   
$include $id ".html"
   } 
   if (
is_file($include) == "1") { 
           include 
$include
   } 
   else { 
   include 
"404.txt"
   } 
   
?>

Where the content should go. Then for links, you put:
PHP Code:

index.php?id=pagename 

Replace pagename with the page's name. Then make a .txt or .html file with the name of whatever you put in the link. That's it. The page dosen't need the headers(<html>,<body>) or footers(</html>,</body>), but you can if you want. main.txt will be the first page that shows up in the content area. That is where you would input your news script code and welcome stuff. Basically, make pages like you would do in frames if you worked with frames before.
You can also make a 404.txt in case that a page doesn't exsist.
That should work.

Spectrum December 16th, 2004 6:55 PM

Yes indeed, Host Ultra supports PHP. But anyway, the code that Kip-kip supplied should work fine. =)

DarknessMonkey December 16th, 2004 7:22 PM

Oh.....
Uh Question I Had My Layout Uploaded Already In A File Called Layout.htm...
But Can It Stay Like This?
Also Am I Supposed To Place The Layout.htm (Or index.htm) For The 404.txt?
Thanks!
If You Could Go Over It Again I May Try It...

Geometric-sama December 17th, 2004 4:13 AM

Make your layout in a file named index.php and put the code where the content will go. Make your main page called "main.txt" and all your other pages named "filename.html" without layout. Then your files will be index.php?id=filename

Also make a file named 404.txt for a 404 error.

DarknessMonkey December 17th, 2004 5:06 AM

Ohhhhh....
Thats Kinda Easy...

DarknessMonkey December 17th, 2004 3:39 PM

*BUMP*
I Need Help With This...
I Dont Get It...

Dragonfree December 17th, 2004 3:45 PM

What exactly is it that you don't get?

Kipkip December 17th, 2004 3:47 PM

Can you be specfic on what you need help on?

DarknessMonkey December 17th, 2004 3:53 PM

Ok I Did What You Said Kip-Kip It's Just When I Look At The Pages They Are Blank...
Can You Explain It More?
Where Is The Content Exactly?
Here Is My Layout:

<!--
Umbreon/Espeon layout created by Jedi_Amara of The Pokémon Peninsula
Do not remove this credit or the TPP credit at the bottom of the page.
You can remove the "DO NOT REMOVE THE TPP CREDIT" message though ^^.
############ http://www.pokepeninsula.tk/ ###############
For help visit the RyuX Network Forums.
############# http://www.ryux.uni.cc/ #################
Designed in Macromedia Fireworks
Coded in Macromedia Dreamweaver
Layout copyright to Jedi_Amara/Ryuken Design/The Pokémon Peninsula.
-->

<html>
<head>
<title>Pokemon Retreat-Where The Pokemon Take A Break!</title>
<meta http-equiv="Content-Type" content="text/html;">
<style type="text/css">
<!--
td.content {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #000000;
}
td.copyright {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #000000;
}
.sitelinks {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
}
#sitelinks a:link {
color: #FFFFFF !important;
text-decoration: none;
}
#sitelinks a:visited {
color: #FFFFFF !important;
text-decoration: none;
}
#sitelinks a:hover {
color: #CCCCCC;
text-decoration: underline;
}
td.leftnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #FFFFFF;
background-color: #333333;
background-image: http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/esp_bg.gif;
background-repeat: repeat-y;
text-align: left;
}
td.rightnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #FFFFFF;
background-color: #333333;
background-image: http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/esp_bg_r.gif;
background-repeat: repeat-y;
text-align: right;
}
a:link {
color: #333333;
text-decoration: none;
}
a:visited {
color: #333333;
text-decoration: none;
}
a:hover {
color: #666666;
text-decoration: underline;
}
a.sitelinks:link {
color: #FFFFFF;
text-decoration: none;
}
a.sitelinks:visited {
color: #FFFFFF;
text-decoration: none;
}
a.sitelinks:hover {
color: #666666;
text-decoration: underline;
}
-->
</style>
</head>
<body bgcolor="#999999">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="layout.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="460" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td><img name="layout_r1_c1" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageLeft.png" width="110" height="120" border="0" alt=""></td>
<td colspan="3"><img name="layout_r1_c2" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewBanner.png" width="540" height="120" border="0" alt=""></td>
<td><img name="layout_r1_c5" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageRight.png" width="110" height="120" border="0" alt=""></td>
<td><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/spacer.gif" width="1" height="120" border="0" alt=""></td>
</tr>
<tr>
<td colspan="5" width="760" height="20" bgcolor="#666666" class="sitelinks"><div id="sitelinks">Site/community
links here eg. <a href="#">Network</a> | <a href="#">Topsites</a> | <a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a> | <a href="#">Chat</a></div></td>
<td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="leftnav"><div id="sitelinks"><p><strong>Pokemon Retreat
Main</strong>
<br>
::<a href="http://www.pokemonretreat.cjb.net/">Home</a><br>
::<a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a><br>
::<a href="http://free.hostultra.com/~AshKetchum50/Affiliation.html">Affiliate With Us!</a><br>
::Link<br>
<br>
<strong>Pokemon Gaming</strong><br>
::<a href="http://free.hostultra.com/~AshKetchum50/pokemonrby.html">Pokemon R/B/Y</a><br>
::Link<br>
::Link<br>
<br>
<strong>Heading 2</strong><br>
::Link<br>
::Link<br>
::Link<br>
<br>
<strong>Heading 3</strong><br>
::Link<br>
::Link<br>
::Link<br>
<br>
...Etc. XD <br>
<br>
</p>
</div></td>
<td width="460" height="303" valign="top" class="content"><p><strong>
Welcome!
<p></p>
<p>Welcome To The New Pokemon Retreat!
We Are Still Under Construction For A Few Weeks...</p>
<p>Sorry For The Inconvienience...</p>
<p>~AKFP</p></td>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="rightnav"><div id="sitelinks"><strong>Affiliates</strong> <br>
Button<br>
Button<br>
Button<br>
Text Link::<br>
<br>
<strong>Networks</strong><br>
Button<br>
Button<br>
<br>
<strong>Topsites</strong><br>
Button<br>
Button<br>
Button<br>
<br>
<strong>Statistics</strong><br>
<a href="http://t.extreme-dm.com/?login=swampert"
target="_top"><img src="http://t1.extreme-dm.com/i.gif"
name="EXim" border="0" height="38" width="41"
alt="eXTReMe Tracker"></img></a>
<script type="text/javascript" language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script type="text/javascript"><!--
var EXlogin='swampert' // Login
var EXvsrv='s9' // VServer
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://e0.extreme-dm.com",
"/"+EXvsrv+".g?login="+EXlogin+"&",
"jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&",
"l="+escape(parent.document.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height="1" width="1" alt=""
src="http://e0.extreme-dm.com/s9.g?login=swampert&j=n&jv=n"/>
</noscript>

<br>
Other stats graphic<br>
Other stats graphic<br>
<br>
...Etc. XD
<br>
<br>
<strong>Designed by</strong><br>
<a href="http://www.pokepeninsula.tk/" target="_blank"><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/tppbutton.gif" width="88" height="31" border="0"></a></div></td>
<td><img src="images/spacer.gif" width="1" height="260" border="0" alt=""></td>
</tr>
<tr>
<td width="760" height="20" colspan="5" valign="bottom" bgcolor="#666666" class="copyright"><div align="center">Content &copy; &lt;2004
&gt; &lt;Pokemon Retreat&gt;. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The
Pok&eacute;mon Peninsula</font></a>. Recommended: 800x600 resolution. DO
NOT REMOVE THE TPP CREDIT</div></td>
<td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
</table>
</body>
</html>

The Original:

<!--
Umbreon/Espeon layout created by Jedi_Amara of The Pokémon Peninsula
Do not remove this credit or the TPP credit at the bottom of the page.
You can remove the "DO NOT REMOVE THE TPP CREDIT" message though ^^.
############ http://www.pokepeninsula.tk/ ###############
For help visit the RyuX Network Forums.
############# http://www.ryux.uni.cc/ #################
Designed in Macromedia Fireworks
Coded in Macromedia Dreamweaver
Layout copyright to Jedi_Amara/Ryuken Design/The Pokémon Peninsula.
-->

<html>
<head>
<title>layout.gif</title>
<meta http-equiv="Content-Type" content="text/html;">
<style type="text/css">
<!--
td.content {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #000000;
}
td.copyright {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #000000;
}
.sitelinks {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
}
#sitelinks a:link {
color: #FFFFFF !important;
text-decoration: none;
}
#sitelinks a:visited {
color: #FFFFFF !important;
text-decoration: none;
}
#sitelinks a:hover {
color: #CCCCCC;
text-decoration: underline;
}
td.leftnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #FFFFFF;
background-color: #333333;
background-image: url(images/esp_bg.gif);
background-repeat: repeat-y;
text-align: left;
}
td.rightnav {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
color: #FFFFFF;
background-color: #333333;
background-image: url(images/esp_bg_r.gif);
background-repeat: repeat-y;
text-align: right;
}
a:link {
color: #333333;
text-decoration: none;
}
a:visited {
color: #333333;
text-decoration: none;
}
a:hover {
color: #666666;
text-decoration: underline;
}
a.sitelinks:link {
color: #FFFFFF;
text-decoration: none;
}
a.sitelinks:visited {
color: #FFFFFF;
text-decoration: none;
}
a.sitelinks:hover {
color: #666666;
text-decoration: underline;
}
-->
</style>
</head>
<body bgcolor="#999999">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<!-- fwtable fwsrc="layout.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
<tr>
<td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="460" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>

<tr>
<td><img name="layout_r1_c1" src="images/umb_l.gif" width="110" height="120" border="0" alt=""></td>
<td colspan="3"><img name="layout_r1_c2" src="images/banner.gif" width="540" height="120" border="0" alt=""></td>
<td><img name="layout_r1_c5" src="images/umb_r.gif" width="110" height="120" border="0" alt=""></td>
<td><img src="images/spacer.gif" width="1" height="120" border="0" alt=""></td>
</tr>
<tr>
<td colspan="5" width="760" height="20" bgcolor="#666666" class="sitelinks"><div id="sitelinks">Site/community
links here eg. <a href="#">Network</a> | <a href="#">Topsites</a> | <a href="#">Forums</a> | <a href="#">Chat</a></div></td>
<td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="leftnav"><div id="sitelinks"><p><strong>Site
Main</strong>
<br>
::Link<br>
::Link<br>
::Link<br>
::Link<br>
<br>
<strong>Heading 1</strong><br>
::Link<br>
::Link<br>
::Link<br>
<br>
<strong>Heading 2</strong><br>
::Link<br>
::Link<br>
::Link<br>
<br>
<strong>Heading 3</strong><br>
::Link<br>
::Link<br>
::Link<br>
<br>
...etc XD <br>
<br>
</p>
</div></td>
<td width="460" height="303" valign="top" class="content"><p><strong>Layout
version 2.0 updated 27 October 2004. </strong>Fixes: nav bar link colours.</p>
<p>Using this layout,
I'm assuming you have very basic knowledge of HTML (you don't need to
know much, no tables or anything. But play around with the heights on
some of the cells if you want. (Like the content, navbars)</p>
<p>Your content
goes in here. You can put whatever you want there o_O XD You can use
SSI, PHP includes etc. (turning this into a PHP layout).</p>
<p>Some notes:</p>
<p>Hyperlinks are <a href="#">this colour</a> (mouseover for rollover colour)</p>
<p>CSS info is embedded in the file (within &lt;head&gt; tags), you can
take it out and make a stylesheet. Also, if you don't like the TPP button
under &quot;designed by&quot;, visit TPP and choose a different button to put there.</p>
<p>Have fun, good luck with your website XD</p>
<p>~JA</p></td>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="rightnav"><div id="sitelinks"><strong>Affiliates</strong> <br>
Button<br>
Button<br>
Button<br>
Text Link::<br>
<br>
<strong>Networks</strong><br>
Button<br>
Button<br>
<br>
<strong>Topsites</strong><br>
Button<br>
Button<br>
Button<br>
<br>
<strong>Statistics</strong><br>
Counter<br>
Other stats graphic<br>
Other stats graphic<br>
<br>
...etc XD
<br>
<br>
<strong>Designed by</strong><br>
<a href="http://www.pokepeninsula.tk/" target="_blank"><img src="images/tppbutton.gif" width="88" height="31" border="0"></a></div></td>
<td><img src="images/spacer.gif" width="1" height="260" border="0" alt=""></td>
</tr>
<tr>
<td width="760" height="20" colspan="5" valign="bottom" bgcolor="#666666" class="copyright"><div align="center">Content &copy; &lt;insert
year here&gt; &lt;insert your sitename here&gt;. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The
Pok&eacute;mon Peninsula</font></a>. Recommended: 800x600 resolution. DO
NOT REMOVE THE TPP CREDIT</div></td>
<td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
</tr>
</table>
</body>
</html>

Can You Help?
Just Tell Me Where To Put The Code...
And Do I Have To Erase My Old Files To Do This?

Kipkip December 17th, 2004 4:30 PM

PHP Code:

 <!--
    Umbreon/Espeon layout created by Jedi_Amara of The Pokémon Peninsula
    Do not remove this credit or the TPP credit at the bottom of the page.
    You can remove the "DO NOT REMOVE THE TPP CREDIT" message though ^^.
    ############ [url]http://www.pokepeninsula.tk/[/url] ###############
    For help visit the RyuX Network Forums.
    ############# [url]http://www.ryux.uni.cc/[/url] #################
    Designed in Macromedia Fireworks
    Coded in Macromedia Dreamweaver
    Layout copyright to Jedi_Amara/Ryuken Design/The Pokémon Peninsula.
    -->
    
    <html>
    <head>
    <title>Pokemon Retreat-Where The Pokemon Take A Break!</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <style type="text/css">
    <!--
    td.content {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #000000;
    }
    td.copyright {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #000000;
    }
    .sitelinks {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
    }
    #sitelinks a:link {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:visited {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:hover {
        color: #CCCCCC;
        text-decoration: underline;
    }
    td.leftnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: [url]http://img.photobucket.com/albums/v...let/esp_bg.gif;[/url]
        background-repeat: repeat-y;
        text-align: left;
    }
    td.rightnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: [url]http://img.photobucket.com/albums/v...t/esp_bg_r.gif;[/url]
        background-repeat: repeat-y;
        text-align: right;
    }
    a:link {
        color: #333333;
        text-decoration: none;
    }
    a:visited {
        color: #333333;
        text-decoration: none;
    }
    a:hover {
        color: #666666;
        text-decoration: underline;
    }
    a.sitelinks:link {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:visited {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:hover {
        color: #666666;
        text-decoration: underline;
    }
    -->
    </style>
    </head>
    <body bgcolor="#999999">
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <!-- fwtable fwsrc="layout.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
      <tr>
       <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
       <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
       <td><img src="images/spacer.gif" width="460" height="1" border="0" alt=""></td>
       <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
       <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
       <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
      </tr>
    
      <tr>
 <td><img name="layout_r1_c1" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageLeft.png" width="110" height="120" border="0" alt=""></td>
 <td colspan="3"><img name="layout_r1_c2" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewBanner.png" width="540" height="120" border="0" alt=""></td>
 <td><img name="layout_r1_c5" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageRight.png" width="110" height="120" border="0" alt=""></td>
 <td><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/spacer.gif" width="1" height="120" border="0" alt=""></td>
      </tr>
      <tr>
       <td colspan="5" width="760" height="20" bgcolor="#666666" class="sitelinks"><div id="sitelinks">Site/community
 links here eg. <a href="#">Network</a> | <a href="#">Topsites</a> | <a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a> | <a href="#">Chat</a></div></td>
       <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
      <tr>
 <td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="leftnav"><div id="sitelinks"><p><strong>Pokemon Retreat
             Main</strong>
             <br>
             ::<a href="http://www.pokemonretreat.cjb.net/">Home</a><br>
             ::<a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a><br>
      ::<a href="http://free.hostultra.com/~AshKetchum50/Affiliation.html">Affiliate With Us!</a><br>
             ::Link<br>
                 <br>
            <strong>Pokemon Gaming</strong><br>
      ::<a href="http://free.hostultra.com/~AshKetchum50/pokemonrby.html">Pokemon R/B/Y</a><br> 
              ::Link<br>
              ::Link<br>
            <br>
            <strong>Heading 2</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            <strong>Heading 3</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            ...Etc. XD        <br>
            <br>
         </p>
        </div></td>
       <td width="460" height="303" valign="top" class="content"><p><strong>
    <?php 
     
if (!$id) { 
     
$id "main"
     
$include $id ".txt"
     } 
     else { 
     
$include $id ".html"
     } 
     if (
is_file($include) == "1") { 
             include 
$include
     } 
     else { 
     include 
"404.txt"
     } 
     
?>  
 
 <td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="rightnav"><div id="sitelinks"><strong>Affiliates</strong> <br>
    Button<br>
    Button<br>
    Button<br>
    Text Link::<br>
    <br>
    <strong>Networks</strong><br>
    Button<br>
    Button<br>
    <br>
    <strong>Topsites</strong><br>
    Button<br>
    Button<br>
    Button<br>
    <br>
    <strong>Statistics</strong><br>
    <a href="http://t.extreme-dm.com/?login=swampert"
    target="_top"><img src="http://t1.extreme-dm.com/i.gif"
    name="EXim" border="0" height="38" width="41"
    alt="eXTReMe Tracker"></img></a>
    <script type="text/javascript" language="javascript1.2"><!--
    EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
    EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
    </script><script type="text/javascript"><!--
    var EXlogin='swampert' // Login
    var EXvsrv='s9' // VServer
    navigator.javaEnabled()==1?EXjv="y":EXjv="n";
    EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
    EXd.write("<img src=\"http://e0.extreme-dm.com",
    "/"+EXvsrv+".g?login="+EXlogin+"&",
    "jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&",
    "l="+escape(parent.document.referrer)+"\" height=1 width=1>");//-->
    </script><noscript><img height="1" width="1" alt=""
    src="http://e0.extreme-dm.com/s9.g?login=swampert&j=n&jv=n"/>
    </noscript>
    
    <br>
    Other stats graphic<br>
    Other stats graphic<br>
    <br>
    ...Etc. XD
    <br>
    <br>
    <strong>Designed by</strong><br>
 <a href="http://www.pokepeninsula.tk/" target="_blank"><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/tppbutton.gif" width="88" height="31" border="0"></a></div></td>
       <td><img src="images/spacer.gif" width="1" height="260" border="0" alt=""></td>
      </tr>
      <tr>
 <td width="760" height="20" colspan="5" valign="bottom" bgcolor="#666666" class="copyright"><div align="center">Content &copy; &lt;2004
 &gt; &lt;Pokemon Retreat&gt;. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The
        Pok&eacute;mon Peninsula</font></a>. Recommended: 800x600 resolution. DO
        NOT REMOVE THE TPP CREDIT</div></td>
       <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
    </table>
    </body>
    </html>

Copy that and call it index.php. Delete the index.html or index.htm you had.
Then make your file. Make a main.txt or .html with you introduction and news stuff. Then for the rest of your pages, make them as you would without the layout part. Just the content part. If you ever need to change the layout, just change the index.php. For the links, you use
PHP Code:

index.php?id=pagename 

instead of the http://domain.com/folder/file.html that you had before.

DarknessMonkey December 17th, 2004 4:35 PM

Oh So For The Links You Would Put The File Name Instead Of The Whole URL?
Come Look At My Site Before I Do This...
So I Know Exactly What Your Saying...

Kipkip December 17th, 2004 5:49 PM

Exactly. But you need to remember to put index.php?id= in the link before the filename. That's it.

HellishHades December 17th, 2004 6:24 PM

Or, you can just put:

Code:

<a href="?id=varVal">linkTextHere</a>



Cool [email protected] December 17th, 2004 6:28 PM

Well PHP is very Helpful!!
And You can just store all the codes for layout and etc...in 1 file and use PHP to link it to all pages.

And Well You've gotta download PHP & APACHE Software

DarknessMonkey December 17th, 2004 7:19 PM

I Wrote What I Wanted & It Looks Like This...
http://free.hostultra.com/~AshKetchum50/main.txt

Cool [email protected] December 18th, 2004 12:45 AM

AFKP Are you you uploaded it Properly!!The link Does'nt work for me!

Geometric-sama December 19th, 2004 3:27 AM

Yeah, the file's not there o_O...

DarknessMonkey December 24th, 2004 6:43 PM

Ok...
This Isn't Working...
I Am Trying To Make Links & It Wont Work...
See I Named A Link Affiliation & I Put It Like This:
index.php?id=Affiliation
I Even Checked To Make Sure I Spelled Everything Right...
What Am I Doing Wrong?

Cool [email protected] December 24th, 2004 7:21 PM

Do you have PHP and Apache Installed in your Comp?

DarknessMonkey December 25th, 2004 11:49 AM

No But Host-Ultra Supports PHP...
Also Kip-Kip Do You Know What The Prob Is With It?

This Is What It Looks Like Exactly:
::index.php?id=Affiliation<BR>
(It Looks Like That)

Here's My Index:

Code:

<!--
    Umbreon/Espeon layout created by Jedi_Amara of The Pokémon Peninsula
    Do not remove this credit or the TPP credit at the bottom of the page.
    You can remove the "DO NOT REMOVE THE TPP CREDIT" message though ^^.
    ############ http://www.pokepeninsula.tk/ ###############
    For help visit the RyuX Network Forums.
    ############# http://www.ryux.uni.cc/ #################
    Designed in Macromedia Fireworks
    Coded in Macromedia Dreamweaver
    Layout copyright to Jedi_Amara/Ryuken Design/The Pokémon Peninsula.
    -->

    <html>
    <head>
    <title>Pokemon Retreat-Where The Pokemon Take A Break!</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <style type="text/css">
    <!--
    td.content {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #000000;
    }
    td.copyright {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #000000;
    }
    .sitelinks {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
    }
    #sitelinks a:link {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:visited {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:hover {
        color: #CCCCCC;
        text-decoration: underline;
    }
    td.leftnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: http://img.photobucket.com/albums/v...let/esp_bg.gif;
        background-repeat: repeat-y;
        text-align: left;
    }
    td.rightnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: http://img.photobucket.com/albums/v...t/esp_bg_r.gif;
        background-repeat: repeat-y;
        text-align: right;
    }
    a:link {
        color: #333333;
        text-decoration: none;
    }
    a:visited {
        color: #333333;
        text-decoration: none;
    }
    a:hover {
        color: #666666;
        text-decoration: underline;
    }
    a.sitelinks:link {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:visited {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:hover {
        color: #666666;
        text-decoration: underline;
    }
    -->
    </style>
    </head>
    <body bgcolor="#999999">
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <!-- fwtable fwsrc="layout.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
      <tr>
      <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="460" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
      </tr>

      <tr>
<td><img name="layout_r1_c1" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageLeft.png" width="110" height="120" border="0" alt=""></td>
<td colspan="3"><img name="layout_r1_c2" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewBanner.png" width="540" height="120" border="0" alt=""></td>
<td><img name="layout_r1_c5" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageRight.png" width="110" height="120" border="0" alt=""></td>
<td><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/spacer.gif" width="1" height="120" border="0" alt=""></td>
      </tr>
      <tr>
      <td colspan="5" width="760" height="20" bgcolor="#666666" class="sitelinks"><div id="sitelinks">Site/community
links here eg. <a href="#">Network</a> | <a href="#">Topsites</a> | <a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a> | <a href="#">Chat</a></div></td>
      <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
      <tr>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="leftnav"><div id="sitelinks"><p><strong>Pokemon Retreat
            Main</strong>
            <br>
            ::<a href="http://www.pokemonretreat.cjb.net/">Main</a><br>
            ::index.php?id=Affiliation<BR>
            ::Link<br>
            ::Link<br>
                <br>
            <strong>Pokemon Gaming</strong><br>
              ::Link<br>
              ::Link<br>
              ::Link<br>
            <br>
            <strong>Heading 2</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            <strong>Heading 3</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            ...Etc. XD        <br>
            <br>
        </p>
        </div></td>
      <td width="460" height="303" valign="top" class="content"><p><strong>
    <?php
    if (!$id) {
    $id = "main";
    $include = $id . ".txt";
    }
    else {
    $include = $id . ".html";
    }
    if (is_file($include) == "1") {
            include $include;
    }
    else {
    include "404.txt";
    }
    ?> 

<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="rightnav"><div id="sitelinks"><strong>Affiliates</strong> <br>
    Button<br>
    Button<br>
    Button<br>
    Text Link::<br>
    <br>
    <strong>Networks</strong><br>
    Button<br>
    Button<br>
    <br>
    <strong>Topsites</strong><br>
    Button<br>
    Button<br>
    Button<br>
    <br>
    <strong>Statistics</strong><br>
    <a href="http://t.extreme-dm.com/?login=swampert"
    target="_top"><img src="http://t1.extreme-dm.com/i.gif"
    name="EXim" border="0" height="38" width="41"
    alt="eXTReMe Tracker"></img></a>
    <script type="text/javascript" language="javascript1.2"><!--
    EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
    EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
    </script><script type="text/javascript"><!--
    var EXlogin='swampert' // Login
    var EXvsrv='s9' // VServer
    navigator.javaEnabled()==1?EXjv="y":EXjv="n";
    EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
    EXd.write("<img src=\"http://e0.extreme-dm.com",
    "/"+EXvsrv+".g?login="+EXlogin+"&",
    "jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&",
    "l="+escape(parent.document.referrer)+"\" height=1 width=1>");//-->
    </script><noscript><img height="1" width="1" alt=""
    src="http://e0.extreme-dm.com/s9.g?login=swampert&j=n&jv=n"/>
    </noscript>

    <br>
    Other stats graphic<br>
    Other stats graphic<br>
    <br>
    ...Etc. XD
    <br>
    <br>
    <strong>Designed by</strong><br>
<a href="http://www.pokepeninsula.tk/" target="_blank"><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/tppbutton.gif" width="88" height="31" border="0"></a></div></td>
      <td><img src="images/spacer.gif" width="1" height="260" border="0" alt=""></td>
      </tr>
      <tr>
<td width="760" height="20" colspan="5" valign="bottom" bgcolor="#666666" class="copyright"><div align="center">Content &copy; &lt;2004
&gt; &lt;Pokemon Retreat&gt;. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The
        Pok&eacute;mon Peninsula</font></a>. Recommended: 800x600 resolution. DO
        NOT REMOVE THE TPP CREDIT</div></td>
      <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
    </table>
    </body>
    </html>



Cool [email protected] December 25th, 2004 7:26 PM

You dont Get it do You!!Do you have them Installed in YOUR COMP
And The codes are correct!

aRedMoon December 25th, 2004 7:30 PM

CC, you're wrong.

Try this:
Code:

<!--
    Umbreon/Espeon layout created by Jedi_Amara of The Pokémon Peninsula
    Do not remove this credit or the TPP credit at the bottom of the page.
    You can remove the "DO NOT REMOVE THE TPP CREDIT" message though ^^.
    ############ http://www.pokepeninsula.tk/ ###############
    For help visit the RyuX Network Forums.
    ############# http://www.ryux.uni.cc/ #################
    Designed in Macromedia Fireworks
    Coded in Macromedia Dreamweaver
    Layout copyright to Jedi_Amara/Ryuken Design/The Pokémon Peninsula.
    -->

    <html>
    <head>
    <title>Pokemon Retreat-Where The Pokemon Take A Break!</title>
    <meta http-equiv="Content-Type" content="text/html;">
    <style type="text/css">
    <!--
    td.content {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #000000;
    }
    td.copyright {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #000000;
    }
    .sitelinks {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
    }
    #sitelinks a:link {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:visited {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    #sitelinks a:hover {
        color: #CCCCCC;
        text-decoration: underline;
    }
    td.leftnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: http://img.photobucket.com/albums/v...let/esp_bg.gif;
        background-repeat: repeat-y;
        text-align: left;
    }
    td.rightnav {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 7pt;
        color: #FFFFFF;
        background-color: #333333;
        background-image: http://img.photobucket.com/albums/v...t/esp_bg_r.gif;
        background-repeat: repeat-y;
        text-align: right;
    }
    a:link {
        color: #333333;
        text-decoration: none;
    }
    a:visited {
        color: #333333;
        text-decoration: none;
    }
    a:hover {
        color: #666666;
        text-decoration: underline;
    }
    a.sitelinks:link {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:visited {
        color: #FFFFFF;
        text-decoration: none;
    }
    a.sitelinks:hover {
        color: #666666;
        text-decoration: underline;
    }
    -->
    </style>
    </head>
    <body bgcolor="#999999">
    <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <!-- fwtable fwsrc="layout.png" fwbase="layout.gif" fwstyle="Dreamweaver" fwdocid = "742308039" fwnested="0" -->
      <tr>
      <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="460" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="40" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="110" height="1" border="0" alt=""></td>
      <td><img src="images/spacer.gif" width="1" height="1" border="0" alt=""></td>
      </tr>

      <tr>
<td><img name="layout_r1_c1" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageLeft.png" width="110" height="120" border="0" alt=""></td>
<td colspan="3"><img name="layout_r1_c2" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewBanner.png" width="540" height="120" border="0" alt=""></td>
<td><img name="layout_r1_c5" src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/NewMudkipImageRight.png" width="110" height="120" border="0" alt=""></td>
<td><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/spacer.gif" width="1" height="120" border="0" alt=""></td>
      </tr>
      <tr>
      <td colspan="5" width="760" height="20" bgcolor="#666666" class="sitelinks"><div id="sitelinks">Site/community
links here eg. <a href="#">Network</a> | <a href="#">Topsites</a> | <a href="http://s8.invisionfree.com/Pokemon_Retreat/">Forums</a> | <a href="#">Chat</a></div></td>
      <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
      <tr>
<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="leftnav"><div id="sitelinks"><p><strong>Pokemon Retreat
            Main</strong>
            <br>
            ::<a href="http://www.pokemonretreat.cjb.net/">Main</a><br>
            ::<a href="index.php?id=affiliation">Affiliation</a><BR>
            ::Link<br>
            ::Link<br>
                <br>
            <strong>Pokemon Gaming</strong><br>
              ::Link<br>
              ::Link<br>
              ::Link<br>
            <br>
            <strong>Heading 2</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            <strong>Heading 3</strong><br>
            ::Link<br>
            ::Link<br>
            ::Link<br>
            <br>
            ...Etc. XD        <br>
            <br>
        </p>
        </div></td>
      <td width="460" height="303" valign="top" class="content"><p><strong>
    <?php
    if (!$id) {
    $id = "main";
    $include = $id . ".txt";
    }
    else {
    $include = $id . ".html";
    }
    if (is_file($include) == "1") {
            include $include;
    }
    else {
    include "404.txt";
    }
    ?>
</td>

<td width="150" height="303" colspan="2" valign="top" bgcolor="#333333" class="rightnav"><div id="sitelinks"><strong>Affiliates</strong> <br>
    Button<br>
    Button<br>
    Button<br>
    Text Link::<br>
    <br>
    <strong>Networks</strong><br>
    Button<br>
    Button<br>
    <br>
    <strong>Topsites</strong><br>
    Button<br>
    Button<br>
    Button<br>
    <br>
    <strong>Statistics</strong><br>
    <a href="http://t.extreme-dm.com/?login=swampert"
    target="_top"><img src="http://t1.extreme-dm.com/i.gif"
    name="EXim" border="0" height="38" width="41"
    alt="eXTReMe Tracker"></img></a>
    <script type="text/javascript" language="javascript1.2"><!--
    EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
    EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
    </script><script type="text/javascript"><!--
    var EXlogin='swampert' // Login
    var EXvsrv='s9' // VServer
    navigator.javaEnabled()==1?EXjv="y":EXjv="n";
    EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
    EXd.write("<img src=\"http://e0.extreme-dm.com",
    "/"+EXvsrv+".g?login="+EXlogin+"&",
    "jv="+EXjv+"&j=y&srw="+EXw+"&srb="+EXb+"&",
    "l="+escape(parent.document.referrer)+"\" height=1 width=1>");//-->
    </script><noscript><img height="1" width="1" alt=""
    src="http://e0.extreme-dm.com/s9.g?login=swampert&j=n&jv=n"/>
    </noscript>

    <br>
    Other stats graphic<br>
    Other stats graphic<br>
    <br>
    ...Etc. XD
    <br>
    <br>
    <strong>Designed by</strong><br>
<a href="http://www.pokepeninsula.tk/" target="_blank"><img src="http://img.photobucket.com/albums/v613/Ash_Ketchum_From_Pallet/tppbutton.gif" width="88" height="31" border="0"></a></div></td>
      <td><img src="images/spacer.gif" width="1" height="260" border="0" alt=""></td>
      </tr>
      <tr>
<td width="760" height="20" colspan="5" valign="bottom" bgcolor="#666666" class="copyright"><div align="center">Content &copy; &lt;2004
&gt; &lt;Pokemon Retreat&gt;. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The
        Pok&eacute;mon Peninsula</font></a>. Recommended: 800x600 resolution. DO
        NOT REMOVE THE TPP CREDIT</div></td>
      <td><img src="images/spacer.gif" width="1" height="20" border="0" alt=""></td>
      </tr>
    </table>
    </body>
    </html>




All times are GMT -8. The time now is 5:27 PM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.