FailPHP

Page 21 of 24 FirstFirst ... 11131415161718192021222324 LastLast
Results 301 to 315 of 359
  1. #301
    Account Upgraded | Title Enabled! Predict is offline
    MemberRank
    Aug 2008 Join Date
    760Posts

    Re: FailPHP

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



    Housekeeping...


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

    Re: FailPHP

    What's with all the images of lakes..

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

    Re: FailPHP

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

  4. #304
    <insert title here> Shorty is offline
    MemberRank
    Feb 2007 Join Date
    United KingdomLocation
    1,861Posts

    Re: FailPHP

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

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

    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
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

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

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

    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! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

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

    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 Sniffy is offline
    BannedRank
    Jan 2012 Join Date
    CanadaLocation
    42Posts

    Re: FailPHP

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

  12. #312
    Run, but I'll find you. Ddos Attack is offline
    MemberRank
    Jan 2011 Join Date
    AustraliaLocation
    908Posts

    Re: FailPHP

    This looks good. THe design is habbo-like, but also is different.

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

    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 Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

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

    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"));




Advertisement