• Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Legends: Z-A protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

layout switchings

Koriaku

...Like a Circus?
  • 745
    Posts
    20
    Years
    I tried looking for Kip-Kips Help Thread (Jkaizer Said There Would Be One) But I Couldn't Find It.

    I Tried Pokejungles Thread But It Didn't Help.

    I Need Help With LAyout Switching.

    I Talked To Jkaizer And He Said I Need ?id=

    What Is That?
     
    Do it like Jkaizer does it with PV. First have the index.php page to select different layouts. The page that loads as soon your website starts. Suppose You have 2 layouts, have 2 index files for each layout. The same way. Suppose you have lay1.php & lay2.php . Make sure the layouts are coded in the same format such a way that the other pages will work correctly with both layouts. Now in each main page of the layout, have http:/yoursite.com/lay1.php?id=link
    https://yoursite.com/lay2.php?id=link. In the same way, you can have links to all pages from both layouts. Hope you understand me!

    ~ CC
     
    Just remember: When linking to your pages use

    Code:
    <a href="?id=directory/file">Link</a>

    Indstead of:

    Code:
    <a href="https://url.com?id=directory/file">link</a>
     
    Did I forget to specify that in the tutorial? Will have to fix. XD
     
    Back
    Top