![]() |
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... |
There isn't any HTML code, you have to use SSI or PHP.
|
Whats That?
Ahhh Oh Well I'll Do It The Only Way... |
HostUltra supports PHP right?
Anyway, create an file for your layout and name it index.php. Put this code: PHP Code:
PHP Code:
You can also make a 404.txt in case that a page doesn't exsist. That should work. |
Yes indeed, Host Ultra supports PHP. But anyway, the code that Kip-kip supplied should work fine. =)
|
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... |
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. |
Ohhhhh....
Thats Kinda Easy... |
*BUMP*
I Need Help With This... I Dont Get It... |
What exactly is it that you don't get?
|
Can you be specfic on what you need help on?
|
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 © <2004 > <Pokemon Retreat>. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The Poké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 <head> tags), you can take it out and make a stylesheet. Also, if you don't like the TPP button under "designed by", 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 © <insert year here> <insert your sitename here>. Layout by Jedi_Amara of <a href="http://www.pokepeninsula.tk/" target="_blank"><font color="#CCCCCC">The Poké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? |
PHP Code:
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:
|
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... |
Exactly. But you need to remember to put index.php?id= in the link before the filename. That's it.
|
Or, you can just put:
Code:
|
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 |
I Wrote What I Wanted & It Looks Like This...
http://free.hostultra.com/~AshKetchum50/main.txt |
AFKP Are you you uploaded it Properly!!The link Does'nt work for me!
|
Yeah, the file's not there o_O...
|
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? |
Do you have PHP and Apache Installed in your Comp?
|
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:
|
You dont Get it do You!!Do you have them Installed in YOUR COMP
And The codes are correct! |
CC, you're wrong.
Try this: Code:
|
| All times are GMT -8. The time now is 5:27 PM. |
![]()
© 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.