Welcome to the RaGEZONE - MMORPG development forums.

FailPHP

This is a discussion on FailPHP within the Habbo Development forums, part of the Habbo Hotel category; You should go back to your first method on the news articles and check that there actually is existing news ...

Page 5 of 24 FirstFirst 1234567891011121315 ... LastLast
Results 61 to 75 of 359
  1. #61
    PHP Coder
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    England
    Posts
    599
    Liked
    245
    Gamertag: iiM4RKx

    Re: FailPHP

    Click
    You should go back to your first method on the news articles and check that there actually is existing news articles.

    Here:
    PHP Code:
    <?php 

    $query 
    mysql_query("SELECT title,story,author,published FROM news LIMIT 5"); 

    if ( 
    mysql_num_rows$query ) === )
    {
        echo 
    "No news articles";
    }
    else
    {
        while(
    $show mysql_fetch_array($query)) { 
        
    ?> 
            <div class="body-container-bubble"> 
                <div class="body-container-header grey"><?php echo $show["title"]; ?></div> 
                <div style="padding:5px 0;">Posted <?php echo date("M d, Y",$show["published"]); ?></div> 
                <div><?php echo $show["story"]; ?></div> 
                <br /> 
                <div style="font-weight:bold;">- <?php echo $show["author"]; ?></div> 
            </div> 
        <?php
        
    }
    }
    ?>

  2. #62
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Might as well post here. >.>

    Fail - Demo

  3. #63
    FeedMe
    Rank
    Alpha Member
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    2,147
    Liked
    1328

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    Might as well post here. >.>

    Fail - Demo
    You should put the 2 `register here` images in one images
    If I hover it for the first time the images is gone and then showed up after the load time.


    Mental, why :c

  4. #64
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Quote Originally Posted by joopie View Post
    You should put the 2 `register here` images in one images
    If I hover it for the first time the images is gone and then showed up after the load time.
    Right, anything else? Remember I'm still coding stuff. But the things I've done so far - Comment on them and give me more ideas, thanks. ^ ^

  5. #65
    No, Just no.
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    1,372
    Liked
    594

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    Right, anything else? Remember I'm still coding stuff. But the things I've done so far - Comment on them and give me more ideas, thanks. ^ ^
    After registering is complete why is my session not started? After registering I am redirected back to Fail with the message

    PHP Code:
    Register completeYou may now login with the account you just registered with 
    should consider starting the users session as soon as they register. Other wise they'll just forget their user, leave and probably never return.
    Helping those who deserve to be helped.

    Just because you can edit 2 lines of PHP code and change a variable does not mean you're a programmer. And just because you can follow a tutorial on how to set up IIS does not make you a server technician or manager.

  6. #66
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Quote Originally Posted by Matthew View Post
    After registering is complete why is my session not started? After registering I am redirected back to Fail with the message

    PHP Code:
    Register completeYou may now login with the account you just registered with 
    should consider starting the users session as soon as they register. Other wise they'll just forget their user, leave and probably never return.
    That's easy said that done. If you had looked at my password encryption you would understand why I did that.

  7. #67
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    390
    PSN ID: clardes Steam ID: adilol997
    Quote Originally Posted by Predict View Post
    Right, anything else? Remember I'm still coding stuff. But the things I've done so far - Comment on them and give me more ideas, thanks. ^ ^
    I like your CSS :-)
    Could you add in some jQuery, for effects like dropdowns, slide shows (for news), refreshing without refreshing the page, etc.
    Posted via Mobile Device

  8. #68
    The one and only!
    Rank
    Subscriber
    Join Date
    Nov 2008
    Posts
    4,116
    Liked
    1451
    Gamertag: DecidingClock47 Steam ID: hejularz

    Re: FailPHP

    This isn't really an error, but you should consider doing something with mod_rewrite... it makes things look that much neater not having the .php on the end and stuff.

  9. #69
    TeamRev
    Rank
    Member +
    Join Date
    Feb 2010
    Location
    Planet Earth
    Posts
    588
    Liked
    313

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    That's easy said that done. If you had looked at my password encryption you would understand why I did that.
    lolol, how can it be hard?, and you wouldn't need the password? Unless you're assigning it to a session(pretty dumb).

    mysql_query({register_user});

    {set logged in session, set sso, set sessions for important user data}

    {redirect to /me}

    How is it not easy? :S

  10. #70
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Quote Originally Posted by Kryptos View Post
    lolol, how can it be hard?, and you wouldn't need the password? Unless you're assigning it to a session(pretty dumb).

    mysql_query({register_user});

    {set logged in session, set sso, set sessions for important user data}

    {redirect to /me}

    How is it not easy? :S
    You'll understand when you download the CMS and see register.php source. Until then feedback only.

  11. #71
    TeamRev
    Rank
    Member +
    Join Date
    Feb 2010
    Location
    Planet Earth
    Posts
    588
    Liked
    313

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    You'll understand when you download the CMS and see register.php source. Until then feedback only.
    Maybe if you posted the snippet someone could help you, but anyways, up to you.

    Good Luck

  12. #72
    Now 35% cooler!
    Rank
    Subscriber
    Join Date
    Oct 2008
    Location
    C:/
    Posts
    2,331
    Liked
    463
    Gamertag: The Livar

    Re: FailPHP

    Tried the Demo site, looks pretty good.

    OFT: You know that layout you released, made some good ;)







    Atleast someone supports your work! Good luck matey.

    EDIT:

    Housekeeping:







    Lawl.
    Last edited by Livar; 07-11-11 at 09:14 PM. Reason: HK.

  13. #73
    No, Just no.
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    United Kingdom
    Posts
    1,372
    Liked
    594

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    That's easy said that done. If you had looked at my password encryption you would understand why I did that.
    lol, what ?

    You must pass a variable in your register page or class, whatever. All you have to do is, is:

    session_start();
    $var = whateverbool($_SESSION['value']);

    .. or whatever. I'm to tired to do a proper example. Password encryption should not affect the session. Do you have any idea as to what you're actually doing?
    Helping those who deserve to be helped.

    Just because you can edit 2 lines of PHP code and change a variable does not mean you're a programmer. And just because you can follow a tutorial on how to set up IIS does not make you a server technician or manager.

  14. #74
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Quote Originally Posted by Matthew View Post
    lol, what ?

    You must pass a variable in your register page or class, whatever. All you have to do is, is:

    session_start();
    $var = whateverbool($_SESSION['value']);

    .. or whatever. I'm to tired to do a proper example. Password encryption should not affect the session. Do you have any idea as to what you're actually doing?
    Nah, I just put A to B and it makes C. I cannot be bothered explaining what must be done to make it work, considering half of you wouldn't understand it anyway.

  15. #75
    Law
    Garry's Mod is addictive!
    Rank
    Member +
    Join Date
    Dec 2009
    Location
    Norway
    Posts
    1,002
    Liked
    232

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    Nah, I just put A to B and it makes C. I cannot be bothered explaining what must be done to make it work, considering half of you wouldn't understand it anyway.
    Stop acting like thejacob and be high and almighty and say "Omfg, you guys suck cuz I made an awesome encryption for mah password. None of you would ever understand it lool."

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •