• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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

PichuSecretBase

Web Site Critique
2,775
Posts
20
Years
  • 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
     
    14
    Posts
    20
    Years
    • Seen Jun 15, 2015
    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)
     

    PichuSecretBase

    Web Site Critique
    2,775
    Posts
    20
    Years
  • 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
     
    Back
    Top