FailPHP

Page 18 of 24 FirstFirst ... 8101112131415161718192021222324 LastLast
Results 256 to 270 of 359
  1. #256
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

    Reverted back to the old register with minor edits from the original.

    404 Not Found

    Basically I've been wanting to do Housekeeping, but I've been putting it off by doing other things, lol.

    Anyway I randomly banned 2 users from the website.

    How does ban work?
    If your rank is 1 = You are banned.
    Banned users homepages will not be shown either, they won't get a message saying why they're banned, just that they won't be able to login, lol.

    Design - Login

    asdf, is a banned user, therefore is homepage is removed from play and this user won't be able to login either.

    Anyway, function to show list of bans.

    PHP Code:
    function ListBans()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT ID,Username,Rank FROM users WHERE Rank < '2'"));

    Last edited by Predict; 14-01-12 at 10:38 PM.

  2. #257
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    Reverted back to the old register with minor edits from the original.

    404 Not Found

    Basically I've been wanting to do Housekeeping, but I've been putting it off by doing other things, lol.

    Anyway I randomly banned 2 users from the website.

    How does ban work?
    If your rank is 1 = You are banned.
    Banned users homepages will not be shown either, they won't get a message saying why they're banned, just that they won't be able to login, lol.

    Design - Login

    asdf, is a banned user, therefore is homepage is removed from play and this user won't be able to login either.

    Anyway, function to show list of bans.

    PHP Code:
    function ListBans()
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT ID,Username,Rank FROM users WHERE Rank < '2'"));

    You know, emulators are making rank 1 = normal user... Problem?

    You should add a row "isBanned" to the users structure instead. or just make a new table so you can specify reasons too. ( which I think is the smartest thing to do )

  3. #258
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: FailPHP

    Quote Originally Posted by Law View Post
    You know, emulators are making rank 1 = normal user... Problem?

    You should add a row "isBanned" to the users structure instead. or just make a new table so you can specify reasons too. ( which I think is the smartest thing to do )
    or make use of the bans table, phoenix db has one. not sure about uber though.

  4. #259
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: FailPHP

    Quote Originally Posted by leenster View Post
    or make use of the bans table, phoenix db has one. not sure about uber though.
    Don't forget Phoenix is Uber.

  5. #260
    Garry's Mod is addictive! Law is offline
    MemberRank
    Dec 2009 Join Date
    NorwayLocation
    993Posts

    Re: FailPHP

    Quote Originally Posted by PowahAlert View Post
    Don't forget Phoenix is Uber.
    Don't forget if it wasn't for the other dude who got the uber source, there would only be phoenix.

  6. #261
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: FailPHP

    Quote Originally Posted by PowahAlert View Post
    Don't forget Phoenix is Uber.

    I understand this but I don't know if the bans table got added after Aaron started working on it.

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

    Re: FailPHP

    Quote Originally Posted by Hejula View Post
    This is FailPHP, being completely useless it lives up to its name. Be honest, who is actually going to set all there users to rank 2 so they aren't banned?
    PHP Code:
    UPDATE `usersSET `rank` = 
    Done

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

    Re: FailPHP

    Quote Originally Posted by Hejula View Post
    Then you realise banned users have to be in bans table anyway, or you realise `why am I using this fail?`
    Last time I checked 'users' table was users_banned or whateva the table is called in Phoenix.

    Oh and it would be nice if someone could actually give me the updated version of the Phoenix database so I can make them identical..

  9. #264
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

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

    Re: FailPHP

    Thanks, oh and I've added "Mass unban", and it'll ask you to confirm your decision before doing it. ^^

    404 Not Found

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

    Re: FailPHP

    Quick question, does anybody want me to add anything into FailPHP while I've got nothing to do (well that's a lie, just cba atm).

    Any features which you want added?

  12. #267
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: FailPHP

    a. different color scheme.
    b. homes which actually show the user.

    pew.

  13. #268

    Re: FailPHP

    Want to have it! Love the desing!

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

    Re: FailPHP

    Added a few pages into Housekeeping, however I ain't added them onto the navigation because everyone who's staff from getadmin.php would update user's profiles, ban users and so forth.

    Also added talan.x10.bz/welcome/$username

    I've also added a notification if the user has been banned or not.

    Username: Demo
    Password: demo123

    Design - Login

    Also notice how his homepage ain't there when you login on an normal account? ^^

  15. #270
    Account Upgraded | Title Enabled! Grant is offline
    MemberRank
    Sep 2009 Join Date
    Scotland, UK.Location
    728Posts

    Re: FailPHP

    It doesn't help when you have a mass unban tool in the Housekeeping and try to show us a banned account..



Advertisement