FailPHP

Page 5 of 24 FirstFirst 1234567891011121315 ... LastLast
Results 61 to 75 of 359
  1. #61
    Web Developer Markshall is offline
    MemberRank
    Oct 2009 Join Date
    EnglandLocation
    628Posts

    Re: FailPHP

    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
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Might as well post here. >.>

    Fail - Demo

  3. #63
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,767Posts

    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.

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

    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. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    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.

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

    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 Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts
    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! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    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
    prjRev.com Kryptos is offline
    MemberRank
    Feb 2010 Join Date
    Planet EarthLocation
    579Posts

    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
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    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
    prjRev.com Kryptos is offline
    MemberRank
    Feb 2010 Join Date
    Planet EarthLocation
    579Posts

    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
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    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 10:14 PM. Reason: HK.

  13. #73
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    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?

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

    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
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    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."



Advertisement