• 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!
  • 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.

Help

Xtreme_Pokemaster

The Master Of Glitches
  • 46
    Posts
    21
    Years
    well, with PHP i heard that you could make a left.php and make it so all the pages have that menu bar. I'm confused, how is it done?
     
    Okay,
    Open Up your layout. Save it as index.php Where your content goes put the following code.

    PHP:
    <?php
    $OK=$_GET['OK'];
    include("$OK.php");
    ?>

    Change OK to the initials of your site
    Now Create All your content on seperate sheets and name them .php.
    Then When you are done put them together as....

    https://server.com/you/index.php?OK=file

    Where you see file DONOT put .php. Again change OK to what you put in the Layout.
    Now you need a splash or something for that code. To not need one and make server.com/you a news page in the layout do this.

    PHP:
    <?php
    /**************************** Content Starts Here ****************************************/
    		if(strstr($OK, "..") || $OK[0]=="/") $OK = "";
    		if(empty($OK)) $OK = "PAGE.php";
    		else { $OK = $OK. ".php"; }
    		if(is_file("$OK")){ include("$OK");
    		} else echo "<b>Error 404</b><br> The file has not been found";
    /**************************** Content Ends Here ******************************************/
    ?>

    Change OK to site Initials and change PAGE to the page.php you want as your main page.

    Now Here is some examples of PHP
    https://pichusb.com Layout with content
    https://pichusb.com/rusa.php Content.

    I also recomend that you put your font codes before the PHP code and NOT in your content so You can adjust the font according to the layout.



    NOW! In order to use PHP You must Have a host that supports it. Geocities, Angelfire and most free hosts dont. Get an actual site to host ya like PokeValley if they still host or Zapchu
     
    1. all of the OKs?
    2. Than where does the content go?
    3. Splash? what's that?
    4. thanks in advance
     
    This is how I do it...

    First, make a page and name it "index.php". In the index.php page, put this code in: <?php include("https://www.domain.com/left.php"); ?>
    Save it and start a new page.
    In this new page, put in the menu-bar-code that you want to be shown. Save this as "left.php".

    Now, upload it all to your website, and the index.php page should show the menu-bar now, as well as any other text etc. you have in it.

    (Make sure you link to where you uploaded left.php correctly)
     
    OK is where you put your Site Initials
    Content goes where the PHP Code is
    A Splash is a picture that goes on index.php to "ENTER" your site. APPC Has one
     
    Okay, i need to make things clear:
    1. server.com/me is my splashpage
    2. server.com/me/index.php is my homepage
     
    I'm confused! Okay, i want a splash page, what do i do?
     
    Back
    Top