Layout Switching...

Started by pokejungle April 2nd, 2005 4:26 PM
  • 1227 views
  • 30 replies
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
Don't make the links within pages go to "index.php?id=BLAH". Make them go to "?id=BLAH". That way it will read from whichever layout it is currently using, whether index2.php or index.php


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
On the nav bars you can do whichever since they're going to link to the same layout anyway ^^. Don't forget to write a code for the layout switcher. (GET the id and write it into a link to the same page using the other layout.)


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
That's what I mean, but that would take you to the index page on the other layout. This would take you to the same content on the other layout. I'll give you the code I use if you want it.


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.
Age 35
Ohio
Seen June 19th, 2009
Posted June 17th, 2009
113 posts
18.1 Years
very simple. in the same way you have the index.php check the id= to include the content files, have the style links go to "styleX.php?id=$current_id" . you could also change the $current_id to the actual code that reads off the id= unless you saved yourself some headaches by turning that long, hard to remember peice of code into a $ variable.

and the second part of this (as mentioned already) is to change the navbar links to simply link to ?id=blah so that no matter what style you use, it will stay on that style throughout every page.
~Shingo @ Pokemon Adventures MUSH (Founder/Head Admin/Coder)

A dedicated roleplay environment built around the canon pokemon universe where every player collaboratively works towards writing one main, large storyline with drama ahoy! We affectionately call it [PAM].

Check us out! http://pokemonadventures.game-host.org/
Age 35
Ohio
Seen June 19th, 2009
Posted June 17th, 2009
113 posts
18.1 Years
yup. noticed that. :)
~Shingo @ Pokemon Adventures MUSH (Founder/Head Admin/Coder)

A dedicated roleplay environment built around the canon pokemon universe where every player collaboratively works towards writing one main, large storyline with drama ahoy! We affectionately call it [PAM].

Check us out! http://pokemonadventures.game-host.org/
Age 35
Ohio
Seen June 19th, 2009
Posted June 17th, 2009
113 posts
18.1 Years
do you have the original that actually worked somewhere? id try an redo the layout from scratch and see what happens. that is unless the original layout was fudged as well. in that case i would start chewing out whoever gave it to you ;).
~Shingo @ Pokemon Adventures MUSH (Founder/Head Admin/Coder)

A dedicated roleplay environment built around the canon pokemon universe where every player collaboratively works towards writing one main, large storyline with drama ahoy! We affectionately call it [PAM].

Check us out! http://pokemonadventures.game-host.org/
Age 62
Male
Melbourne, Australia
Seen April 26th, 2018
Posted June 9th, 2014
11,439 posts
19.7 Years
Drop the code here.... and the CSS too.... unless CSS is embedded in the code.


"One reason why mathematics enjoys special esteem, above all other sciences, is that its laws are absolutely certain and indisputable, while those of other sciences are to some extent debatable and in constant danger of being overthrown by newly discovered facts."
Albert Einstein

"What science can there be more noble, more excellent, more useful for men, more admirably high and demonstrative than mathematics."
Benjamin Franklin

"Mathematics, rightly viewed, possesses not only truth, but supreme beauty – a beauty cold and austere, like that of sculpture, without appeal to any part of our weaker nature, without the gorgeous trappings of paintings or music, yet sublimely pure and capable of a stern perfection such as only the greatest art can show."
Bertrand Russell

avatar and signature by FoxHound

ANNOY ME AT YOUR PERIL. I am becoming increasingly tired of the unmanly elitism and closed-mindedness of certain members who shall remain unnamed.
Seen March 13th, 2022
Posted December 28th, 2018
12,504 posts
19.7 Years
<HTML><HEAD><TITLE>:: PokJungle Network ::</TITLE>
<STYLE type=text/css>A:link {
	COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
	COLOR: #000000; TEXT-DECORATION: none
}
A:active {
	COLOR: #000000
}
A:hover {
	COLOR: #000000; TEXT-DECORATION: overline underline
}
BODY {
	SCROLLBAR-FACE-COLOR: #728CAD; SCROLLBAR-HIGHLIGHT-COLOR: #728CAD; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #728CAD; SCROLLBAR-DARKSHADOW-COLOR: #728CAD; BACKGROUND-COLOR: #728CAD
}
</STYLE>

<META content=Pokemon name=description>
<META content=Pokemon name=keywords>
<META content=Pokemon name=author Sky>
<META content="10 days" name=revisit-after>
<META content=Pokemon name=copyright Sky>
<META content=Global name=distribution>
<META content=General name=rating>
<META content="index, follow" name=robots>
<META content="index, follow" name=googlebot>
<META http-equiv=content-type content="text/html; charset=iso-8859-1"><LINK media=screen href="" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY oncontextmenu="return false" background=http://img.photobucket.com/albums/v330/saulito/pokej/bg.png ontextcommand="retun false">

<DIV id=layer1 style="LEFT: 0px; POSITION: absolute; TOP: 0px"><FONT face=Arial><IMG alt="" src="http://img.photobucket.com/albums/v330/saulito/pokej/top.png"></FONT></DIV>
<DIV id=layer1 style="Z-INDEX: 1; LEFT: 5px; WIDTH: 113px; POSITION: absolute; TOP: 29px; HEIGHT: 549px" align=center>
<DIV align=left><FONT face=Arial size=1>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2><b>:: Main</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php">News</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://s7.invisionfree.com/crobatCavern">Forums</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/advancedguestbook">Guestbook</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=main/history">History</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=main/sibu">Link to Us</a></FONT> 
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=main/affiliate">Affiliate</a></FONT></DIV>

<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=main/staff">Staff</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=main/archives">News Archives</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/cpanel">Site Login</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/cutenews/cutenews">News 

Login</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=2><b>:: BLOGME!</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/blogs">BLOGME! Home</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/blogs/createaccount.html">Join</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1>&gt<a href="http://pokejunglenetwork.com/index.php?id=blog/set_up.php">How to Blog @ BLOGME!</a></FONT></DIV> 
<DIV align=left><FONT face=Arial size=2><b>:: Games</b></FONT></DIV>

<DIV align=left><FONT face=Arial size=1>DS</FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 
href="http://pokejunglenetwork.com/index2.php?id=games/peadia">Pearl/Diamond</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 
href="http://pokejunglenetwork.com/index2.php?id=games/dash">Pokmon Dash</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1>Gameboy</FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=games/emerald">Emerald</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index.php?id=games/regr">FireRed/LeafGreen</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=games/rusa">Ruby/Sapphire</a> 
<DIV align=left><FONT face=Arial size=1><a href="http://www.pokejunglenetwork.com/index2.php?id=games/rby/index">Red/Blue/Yellow</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1>GameCube</FONT></DIV>

<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=games/colosseum">Colosseum</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=games/box">Pokemon 

Box</a>k</FONT></DIV>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2><b>:: TCG</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/deoxys">EX: Deoxys</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=tcg/regr">EX: FireRed/LeafGreen</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/exam">EX: Magma Vs. 

Aqua</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/hiddenlegends">EX: 

Hidden Legends</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/sandstorm">EX: Sandstorm</a></FONT></DIV> 

<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/dragon">EX: 

Dragon</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/rusa">EX: Ruby & 

Sapphire</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=tcg/deckfix">Deck 

Fixes</a></FONT>
<DIV align=left><FONT face=Arial size=2><b>:: Movies</b></FONT></DIV>

<DIV align=left><FONT face=Arial size=1>COMING SOON</FONT> 
<DIV align=left><FONT face=Arial size=2><b>:: TV</b></FONT></DIV>

<DIV align=left><FONT face=Arial size=1>COMING SOON</FONT> 

<DIV align=left>
<DIV align=left><FONT face=Arial size=2><b>:: Other</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=other/potw/index">PotW</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=other/articles/index">Articles</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=other/mailbag">MailBag</a></FONT>
<DIV align=left><FONT face=Arial size=2><b>:: Webmasters</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokejunglenetwork.com/index2.php?id=webmasters/freehosts">Free 

Hosts</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a 

href="http://pokejunglenetwork.com/index2.php?id=webmasters/tutorials">Tutorials


</a></FONT> </DIV></DIV></FONT></DIV></DIV></DIV></DIV></FONT></FONT><FONT face=Arial size=1></DIV></DIV></DIV></DIV></DIV></FONT></DIV>
<DIV id=layer1 style="Z-INDEX: 1; LEFT: 663px; WIDTH: 114px; POSITION: absolute; TOP: 136px; HEIGHT: 299px">

<P align=center><STRONG><FONT face=Arial></FONT></STRONG></P>
<DIV align=left>
<DIV align=left><FONT face=Arial size=2><b>:: PotW</b></FONT></DIV>

<DIV align=left><FONT face=Arial size=1><center><a 
href="http://pokejunglenetwork.com/index2.php?id=other/potw/metagross"><img src="http://img.photobucket.com/albums/v338/pokejungle/pkrs192.gif" border="0">
<br>
Metagross!</center>
</a></FONT> 
<DIV align=left><FONT face=Arial size=2><b>:: Release Dates</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><center>
~<a href="http://www.pokejunglenetwork.com/index2.php?id=games/emerald">Emerald</a>~
</center>  

Japan: OUT
<br>USA: May 1, 2005
<br>UK: October 2005</FONT> 
<DIV align=left><FONT face=Arial size=2><b>:: Layouts</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1>+<a href="http://pokejunglenetwork.com">Chickorita's Evos</a> or <a href="http://www.pokejunglenetwork.com/index2.php">Shiftry Safari</a>+</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><b>:: Affiliates</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a target="_blank" href="http://www.pokecharms.com">
<img border="0" 

src="http://img.photobucket.com/albums/v338/pokejungle/PokeCharms.gif" 

width="88" height="31"></a></FONT></DIV>

<DIV align=left><FONT face=Arial size=1><a href="http://pokelegends.eon-community.com/">
<img 

src="http://img.photobucket.com/albums/v338/pokejungle/pklbutton3.png" 

border="0"/>
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://www.umbreonslair.com">
<img 

src="http://img.photobucket.com/albums/v338/pokejungle/3.gif" 

border="0"/></a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokefuture.eon-community.com/index.php">
<img src="http://img.photobucket.com/albums/v338/pokejungle/pf_button3.png" border="0" />
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokex.pokevillage.net/">
<img 

src="http://pokex.pokevillage.net/images/pokemonexb.gif" 

border="0"/>
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a target="_blank" href="http://wobbuffet.kyletech.us/">
<img border="0" 

src="http://img.photobucket.com/albums/v338/pokejungle/wcbutton3.gif" 

width="88" height="31"></a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a target="_blank" href="http://www.w5net.com/">
<img border="0" 

src="http://img.photobucket.com/albums/v338/pokejungle/W5D.gif" 

width="88" height="31"></a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://dreamvalley-mlp.com/homepage/pokemon.html">We All Live in a Pokemon World</a></FONT>

<DIV align=left><FONT face=Arial size=2><b>:: TopSites</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://toplist.pokeden.com/in.php?id=37">
<img src="http://toplist.pokeden.com/button.php?id=37" border="0">
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokemontop500.com/in.php?id=52">
<img src="http://pokemontop500.com/button.php?id=52" border="0" />
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://www.topsites.pokevillage.net/in.php?id=71">
<img src="http://www.topsites.pokevillage.net/button.php?id=71" border="0" />
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://www.top50.jkaizer.net/in.php?id=10">

<img src="http://www.top50.jkaizer.net/button.php?id=10" border="0" />
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokefuture.eon-community.com/mytop/in.php?id=5">
<img src="http://pokefuture.eon-community.com/mytop/button.php?id=5" border="0">

</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://topsites.pokedrome.info/in.php?id=3">
<img src="http://topsites.pokedrome.info/button.php?id=3" border="0">
</a></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><a href="http://pokemonpalace.net/links/in.php?ID=74">PPN 

PokeLinks</a></FONT>
<DIV align=left><FONT face=Arial size=2><b>:: SayBox!</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1><script type="text/javascript"
src="http://saybox.co.uk/output.php?user=pokejungle"></script></FONT>

<DIV align=left><FONT face=Arial size=2><b>:: Layout Made By</b></FONT></DIV>
<DIV align=left><FONT face=Arial size=1>Saul</FONT></DIV></DIV></DIV></DIV></B></B></DIV>
<DIV id=layer1 style="Z-INDEX: 1; LEFT: 173px; WIDTH: 473px; POSITION: absolute; TOP: 111px; HEIGHT: 353px" align=center><B><FONT face=Arial><FONT face=Arial size=1>
<P align=right>

<MARQUEE id=topsites style="WIDTH: 350px; HEIGHT: 19px" scrollAmount=5 direction=right width=350 height=19>
<DIV align=left>~Do you like the new layout?  Say somethin on the SayBox!~</DIV></MARQUEE></P>
<P align=center>



<table border="0" width="420" cellspacing="1" cellpadding="3">
<tr>
<td width="100%" style="text-align:justify"> -- I'm not sure if this is part of the news coding or not.  So I just left it.


NEWS HERE!



</P></FONT></FONT></B></DIV></BODY></HTML>