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; Sorry about this, I've been using internet exploerer 9 to code in. Housekeeping......

Page 21 of 24 FirstFirst ... 11131415161718192021222324 LastLast
Results 301 to 315 of 359
  1. #301
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    Click
    Sorry about this, I've been using internet exploerer 9 to code in.



    Housekeeping...


  2. #302
    I'm an asshole eat me out
    Rank
    Gamma
    Join Date
    Apr 2010
    Location
    Corporal USA
    Posts
    3,672
    Liked
    1515
    Gamertag: CobeLeDev PSN ID: COBEx9 Steam ID: CobeLeGamer

    Re: FailPHP

    What's with all the images of lakes..

  3. #303
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    It's my desktop backgrounds... (2nd monitor)...

  4. #304
    Azure subscription
    Rank
    Subscriber
    Join Date
    Feb 2007
    Location
    England
    Posts
    1,748
    Liked
    589
    Gamertag: IShorty

    Re: FailPHP

    Quote Originally Posted by Predict View Post
    It's my desktop backgrounds... (2nd monitor)...
    You should really crop your screenshots.

  5. #305
    Developer
    Rank
    Member +
    Join Date
    May 2008
    Location
    Kanaada
    Posts
    1,057
    Liked
    772

    Re: FailPHP

    Just do alt-prtsc on the window that you want to take a screen shot of. Alt-prtsc will take a screen of only the active window.

  6. #306
    Alpha Member
    Rank
    Alpha Member
    Join Date
    Oct 2008
    Location
    Sussex
    Posts
    2,184
    Liked
    352

    Re: FailPHP

    I quite like the design of this layout, checked it out and it seems great. Minor css bug in Firefox 9 though =]

  7. #307
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP





    Probably going to add the PHP coding on any day now. ^^



    Began improving the PHP coding from the last source (also improving small HTML mistakes from the last source too).

  8. #308
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP



    Sessions have been created, just that I need to create a logout to destory the session because closing my browser and re-opening it is becoming a pain, seriously LOL.

    Learnt something new today (trololol).

    Code:
    	<!--[if IE]>
    	<style type="text/css">
    		#navigation {
    			margin:22px 16px 27px 16px;
    			clear:both;
    			float:left;
    		}
    	</style>
    	<![endif]-->
    IE is so special they have their own .CSS function for them to use by themselves, so that was a good use.

    Hm, what have I improved from PHP coding apart from HTML/CSS.

    The CMS supports more than one MYSQL version, it offers 4 versions. These versions are... Mysql 3.23, 4.0, 4.1 5.0+

  9. #309
    The one and only!
    Rank
    Subscriber
    Join Date
    Nov 2008
    Posts
    4,109
    Liked
    1446
    Gamertag: DecidingClock47 Steam ID: hejularz

    Re: FailPHP

    Quote Originally Posted by Predict View Post


    Sessions have been created, just that I need to create a logout to destory the session because closing my browser and re-opening it is becoming a pain, seriously LOL.

    Learnt something new today (trololol).

    Code:
    	<!--[if IE]>
    	<style type="text/css">
    		#navigation {
    			margin:22px 16px 27px 16px;
    			clear:both;
    			float:left;
    		}
    	</style>
    	<![endif]-->
    IE is so special they have their own .CSS function for them to use by themselves, so that was a good use.

    Hm, what have I improved from PHP coding apart from HTML/CSS.

    The CMS supports more than one MYSQL version, it offers 4 versions. These versions are... Mysql 3.23, 4.0, 4.1 5.0+
    LOL, Internet Explorer is so awkward you mean :P

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

    Re: FailPHP

    Profiles are done, lolol. Improved the source from the old version. -winx







    Content would be where the adverts/Top site links would go.

  11. #311
    Banned
    Rank
    Banned
    Join Date
    Jan 2012
    Location
    Canada
    Posts
    46
    Liked
    5

    Re: FailPHP

    Nice snippets. Hopefully you start on the backend scripting soon. Good luck.

  12. #312
    Run, but I'll find you.
    Rank
    Subscriber
    Join Date
    Jan 2011
    Location
    Australia
    Posts
    700
    Liked
    281

    Re: FailPHP

    This looks good. THe design is habbo-like, but also is different.
    Quote Originally Posted by Ddos Attack View Post
    Habbo.com is down :O
    Does this mean something??
    Quote Originally Posted by thefoe1990 View Post
    I don't know "DDOS Attack".... Why don't you tell US why their site is down?
    Only for educational purposes:


  13. #313
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP





    Errors page (logged out and logged in).

    If anyone could help me on how to do the maintenance page, that would be great. ^^

  14. #314
    Alpha Member
    Rank
    Alpha Member
    Join Date
    May 2011
    Location
    London
    Posts
    1,539
    Liked
    386
    PSN ID: clardes Steam ID: adilol997

    Re: FailPHP

    Maintenance can be done through the following:
    1. Having an option in config, and parsing that
    2. Having an enum/bool in your sql (`site_maintenance`) and parsing that

    2 quickfire ways you could have maintenance. If the sql result returns true/1/w.e, you set up a redirect of some sort to the maintenance page.

  15. #315
    Private Detective
    Rank
    Member +
    Join Date
    Aug 2008
    Posts
    791
    Liked
    256

    Re: FailPHP

    I've also been thinking about making it simple, lol.
    Add header(); die; into config.php to redirect to the maintenance page, or.

    Use .htaccess to redirect it to the maintenance page via Apache #RewriteRule.

    Learnt how to show alternating rows a better way from my previous version.

    PHP Code:
    <?php
    $result 
    listArticles(5);
    $countRow 0;
    while(
    $row $db->sql_fetchrow($result))
    {
    $selectRow = ($countRow %== 0) ? 'list1' 'list2';
    ?>
                            <li class="<?php echo $selectRow?>">
                                <a href="<?php echo ROOT?>/articles/<?php echo $row['ID']; ?>"><?php echo $row['Title']; ?> &raquo;</a>

                            </li>
    <?php
    $countRow
    ++;
    }
    ?>
    Oh and here's my function to show the articles.

    PHP Code:
    function listArticles($number)
    {
        global 
    $db;
        
        return (
    $db->sql_query("SELECT ID,Title FROM articles ORDER BY ID DESC LIMIT $number"));


 

 

Posting Permissions

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