+ Reply to Thread
Results 1 to 4 of 4

Thread: Template not working with x10's version of PHP?

  1. #1
    Equiflux's Avatar
    Equiflux is offline x10 Sophmore Equiflux is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    In my house, DUH!
    Posts
    181

    Template not working with x10's version of PHP?

    Hello,

    I'm trying to use this template(I'm too lazy to make one): http://www.clantemplates.com/templates/default_gs/GS/

    But, as you can see here:
    http://www.equiflux-fx.com/GS/

    The the pages don't display properly. Anyone wanna help me out? Maybe the some of the syntax in the page isn't recognized as being valid by the version of PHP installed on the free server?

    Thanks.
    Last edited by Equiflux; 05-31-2007 at 04:26 PM.

    1337/\/355 70 73|-| /\/\4X

  2. #2
    Chris S's Avatar
    Chris S is offline Retired Chris S is an unknown quantity at this point
    Join Date
    Mar 2005
    Posts
    1,036

    Re: Template not working with x10's version of PHP?

    Where you able to fix it because I can see it just fine, i opened both pages in firefox and it looks fine to me

    I would love to change the world, but they won't give me the source code

  3. #3
    crazywhite1989 is offline x10Hosting Member crazywhite1989 is an unknown quantity at this point
    Join Date
    Sep 2006
    Location
    TN, USA
    Posts
    69

    Re: Template not working with x10's version of PHP?

    at the bottom of you index.php is where your <? php code, replace with this. It's not x10hosting version of PHP. It's the template php how it is used.

    PHP Code:
    <?php
     
    // Page indexer
        
    $page addslashes(strip_tags($_GET['page']));    
     
            if (!
    $page)
                {
                include(
    "pages/home.php");
                
    $page "Home";
            }else{
                
    $file "pages/$page.php";
                if (
    file_exists($file))
                    {
                    include(
    "pages/$page.php");
                }else{
                echo 
    "<meta http-equiv='refresh' content='0; url=index.php'>";
                exit;
            }
        }
    You should use this to place with your links

    index.php?page=page_name
    Last edited by crazywhite1989; 05-31-2007 at 07:25 PM.

  4. #4
    Equiflux's Avatar
    Equiflux is offline x10 Sophmore Equiflux is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    In my house, DUH!
    Posts
    181

    Re: Template not working with x10's version of PHP?

    Thanks CrazyWhite,

    I didn't bother to look at the source, since it worked on ClanTemplates.

    1337/\/355 70 73|-| /\/\4X

+ Reply to Thread

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM
  3. Hiring PHP Coder, and Template Designer($$)
    By Arucard98 in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 02-06-2006, 02:10 PM
  4. downgrade your php nuke version!
    By blade in forum Feedback and Suggestions
    Replies: 5
    Last Post: 11-04-2005, 08:32 AM
  5. Template engine with PHP
    By o0slowpaul0o in forum Tutorials
    Replies: 9
    Last Post: 07-28-2005, 08:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers