FailPHP

Page 15 of 24 FirstFirst ... 57891011121314151617181920212223 ... LastLast
Results 211 to 225 of 359
  1. #211
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: FailPHP

    I hope this project gets finished.

  2. #212
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: FailPHP

    I like the layout 10/10!

    But a few guys stole your layout. -.-!

  3. #213
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: FailPHP

    Like Jos said, why do you keep chopping and changing?
    Are you making a templating system?
    Posted via Mobile Device

  4. #214
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: FailPHP

    How's it doing, Dan?

  5. #215
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Caustik View Post
    Like Jos said, why do you keep chopping and changing?
    Are you making a templating system?
    Posted via Mobile Device
    Well, I'm trying to make a selection of layouts for people to use...

    Quote Originally Posted by <Nominal /> View Post
    How's it doing, Dan?
    Pretty good, I've re-coded most of it.

    Design - Login (new database)

    Directory (for now)...
    index.php
    register.php
    me.php
    logout.php

    Profiles have been coded
    http://www.talan.x10.bz/revision2/pr...php?user=Talan (You are required to login).

  6. #216
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: FailPHP

    Prefer your old theme

  7. #217
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Here's a showcase on how I coded profile.php (This is the latest version, not being shown on the demo).

    PHP Code:
    <?php
        define
    ('SECURITY'true);
        require_once(
    "habboweb/templates/configeration.php");
        
        if(!
    userLoggedIn()) { header("Location: index.php"); die; }
        
        
    error_reporting(E_WARNING);
        
    $username $_REQUEST['user'];
        
    $selectdata SelectUserInformation($username);
        
    $user_username $selectdata["Username"];
        
    $user_id $selectdata["ID"];
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <!-- Designed and coded by Predict on forum.ragezone.com -->
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Design - Profile</title>
    <link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
    <style type="text/css">
    .profile {
        margin:-5px -5px 1px;
        padding:10px 10px;
        color:#009DFF;
        border-radius:5px 5px 0 0;
    }
    .background {
        background:url("habboweb/styles/images/profile/01.png");
        margin:0 -5px;
        color:#FFFFFF;
    }
    h1 {
        display: block;
        font-size:2em;
        -webkit-margin-before:0.67em;
        -webkit-margin-after:0.67em;
        -webkit-margin-start:0px;
        -webkit-margin-end:0px;
        font-weight:bold;
    }
    </style>
    </head>
    <body>
    <div id="header-container">
        <div id="header">
            <div id="logo">
                <a href="me.php"></a>
            </div>
            <div id="whitebox">
                0 members online
                <a href="logout.php">Logout</a>
            </div>
            <div id="enter-hotel">
                <a href="me.php"">Enter Habbo Hotel</a>
            </div>
            <ul id="navigation">
                <li>
                    <b>Talan</b>
                </li>
                <li>
                    <a href="me.php">Community</a>
                </li>
            </ul>
        </div>
    </div>
    <div id="content-container">
        <div id="content">
            <div id="subnavigation-container">
                <div id="subnavigation">
                    <ul>
                        <li>
                            <a href="me.php">Home</a>
                        </li>
                        <li class="selected">
                            Profile
                        </li>
                        <li class="last">
                            <a href="me.php">Account settings</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div id="content-content">
                <div class="content-bubble">
    <?php
    if(!$selectdata)
    {
    ?>
                    <div class="content-bubble-header red">Not Found</div>
                        <div class="content-bubble-text">
                            <img src="habboweb/styles/images/error.png" align="right" alt="Error" />
                            <p>Sorry, but we can't find the page you requested.</p>
                            <p>Please try typing the URL again. If you end up back here, please use the 'Back' button to get back to where you started.</p>
                        </div>
    <?php
    }
    else
    {
    ?>
                    <div class="content-bubble-header profile"><?php echo $user_username?></div>
                        <div class="content-bubble-text background">
                                <h1>About me</h1>
                                <?php echo ProfileAbout(); ?>

                            </p>
                        </div>
    <?php
    }
    ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    </html>

  8. #218
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: FailPHP

    Why are you putting `configeration.php` in the template folder, it doesn't make sense x'd

  9. #219
    Web & Interaction Design Gangnam is offline
    MemberRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: FailPHP

    Dunno if you CBA to change it, but it's spelt Configuration

  10. #220
    Apprentice AlphaSeries is offline
    MemberRank
    Oct 2011 Join Date
    13Posts

    Re: FailPHP

    i Love it :3

  11. #221
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP







    PHP Code:
    <?php
        define
    ('SECURITY'true); 
        require_once(
    "habboweb/templates/configeration.php"); 
        
        if(!
    userLoggedIn()) { header("Location: index.php"); die; }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <!-- Designed and coded by Predict on forum.ragezone.com -->
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Design - Settings</title>
    <link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
    </head>
    <body>
    <div id="header-container">
        <div id="header">
            <div id="logo">
                <a href="me.php"></a>
            </div>
            <div id="whitebox">
                0 members online
                <a href="logout.php">Logout</a>
            </div>
            <div id="enter-hotel">
                <a href="me.php">Enter Habbo Hotel</a>
            </div>
            <ul id="navigation">
                <li>
                    <b><?php echo $loggedIn->username?></b>
                </li>
                <li>
                    <a href="me.php">Community</a>
                </li>
            </ul>
        </div>
    </div>
    <div id="content-container">
        <div id="content">
            <div id="subnavigation-container">
                <div id="subnavigation">
                    <ul>
                        <li>
                            <a href="me.php">Home</a>
                        </li>
                        <li>
                            <a href="profile.php?user=<?php echo $loggedIn->username?>">Profile</a>
                        </li>
                        <li class="selected last">
                            Account settings
                        </li>
                    </ul>
                </div>
            </div>
            <div id="content-content">
                <div id="content-left" class="left">
    <?php
    if(!isset($_GET['tab']))$_GET['tab'] = '1';
    if(
    $_GET['tab'] == '1')
    {
    ?>
                    <div class="content-bubble">
                        <div class="content-bubble-header grey">My preferences</div>
                        <div class="content-bubble-text background">
                            <p>
                                Prefrences
                            </p>
                        </div>
                    </div>
    <?php
    }
    if(
    $_GET['tab'] == '2')
    {
    ?>
                    <div class="content-bubble">
                        <div class="content-bubble-header grey">My password</div>
                        <div class="content-bubble-text background">
                            <p>
                                Password fields
                            </p>
                        </div>
                    </div>
    <?php
    }
    if(
    $_GET['tab'] == '3')
    {
    ?>
                    <div class="content-bubble">
                        <div class="content-bubble-header grey">My email</div>
                        <div class="content-bubble-text background">
                            <p>
                                Email fields
                            </p>
                        </div>
                    </div>
    <?php
    }
    ?>
                </div>
                <div id="content-right" class="right">
                    <div class="content-bubble">
                        <div class="content-bubble-header grey">Account settings</div>
                        <ul>
                            <li>
    <?php
    if($_GET['tab'] == '1')
    {
    ?>
                                My preferences
    <?php
    }
    else
    {
    ?>
                                <a href="?tab=1">My preferences</a>
    <?php
    }
    ?>
                            </li>
                            <li>
    <?php
    if($_GET['tab'] == '2')
    {
    ?>
                                My password
    <?php
    }
    else
    {
    ?>
                                <a href="?tab=2">My password</a>
    <?php
    }
    ?>
                            </li>
                            <li>
    <?php
    if($_GET['tab'] == '3')
    {
    ?>
                                My email
    <?php
    }
    else
    {
    ?>
                                <a href="?tab=3">My email</a>
    <?php
    }
    ?>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </body>
    </html>
    I'm either going to code it via $_GET or do each page separate, your thoughts?

  12. #222
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: FailPHP

    I'm sorry, looks like too much whitespace or.. grayspace. Especially in the left/ride margins, what is going to go there?

  13. #223
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    @ Makarov, I'm still in progress with it.





    Your most probably going, omg he's already coded this, but your kinda wrong because I've revised my coding and its improved.

  14. #224
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: FailPHP

    The way you're doing things with the pages is ugly, you should really use a proper templating system and keep the php & html seperate.

  15. #225
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Quote Originally Posted by Jonteh View Post
    The way you're doing things with the pages is ugly, you should really use a proper templating system and keep the php & html seperate.
    It might be ugly, but at least it functions correctly, oh and at least I don't backdoor people with queries to delete all their tables.



Advertisement