1. Post #1041
    Gold Member
    Ortzinator's Avatar
    May 2005
    1,648 Posts

    Zetaboards forum theme. Done with everything except the footer (the one I have now is stolen from another theme until I can be arsed to code a new one) and a few images.
    Too much whitespace.

    Or font is too small.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Disagree Disagree x 1 (list)

  2. Post #1042
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    Well, at least we have $arr = [0, 1, 'stuff'] now..
    15 years after every other language...
    Reply With Quote Edit / Delete Mac Australia Show Events Funny Funny x 6Zing Zing x 1 (list)

  3. Post #1043
    snarglemuffin's Avatar
    October 2011
    205 Posts
    I don't have a lot of content on my site currently. What ways can I reduce the amount of whitespace I have?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  4. Post #1044
    Gold Member
    Alcapwne's Avatar
    May 2010
    3,519 Posts
    I don't have a lot of content on my site currently. What ways can I reduce the amount of whitespace I have?
    www.twipsum.org for all your filler text needs
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  5. Post #1045
    ===
    This was a waste of $1
    ==='s Avatar
    December 2011
    1,564 Posts
    Too much whitespace.

    Or font is too small.
    It resizes based on the size of the browser window, and at smaller resolutions the text is pretty close, especially when there are long titles. The smallest font size is 11pt, which is pretty standard.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Disagree Disagree x 1 (list)

  6. Post #1046
    Gold Member
    StinkyJoe's Avatar
    June 2006
    2,196 Posts
    15 years after every other language...
    I like to think of language features as a good wine...?

    I got nothing.
    Reply With Quote Edit / Delete Linux Portugal Show Events Funny Funny x 6Zing Zing x 2 (list)

  7. Post #1047
    Catnip Cody
    cody8295's Avatar
    February 2009
    2,771 Posts
    oops wrong forum
    Reply With Quote Edit / Delete Windows 7 United States Show Events Friendly Friendly x 1Dumb Dumb x 1 (list)

  8. Post #1048
    adamjon858's Avatar
    July 2007
    1,282 Posts
    I think I will use websockets instead of using GET variables and saving them to a text file. Is this a good idea?
    What is the project?

    And yeah....GET variables...text file..wtf!? That sounds like an awful idea.

    Edited:

    Sidenote: If you guys ever want to learn some advanced language features fast within real world applications there's nothing better than Stack Overflow. Just find an unanswered question relating to a topic you're interested in, and solve it for the person on your own. I've learned a shit ton by answering questions I originally knew nothing about but then spent a few hours learning about so I could provide a good answer.
    Reply With Quote Edit / Delete Mac United States Show Events Useful Useful x 1 (list)

  9. Post #1049
    Gold Member
    Crhem van der B's Avatar
    January 2010
    1,692 Posts
    15 years after every other language...
    And yet we got it so I couldn't care less.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 5 (list)

  10. Post #1050
    Gold Member
    toaster468's Avatar
    January 2010
    3,260 Posts
    What is the project?

    And yeah....GET variables...text file..wtf!? That sounds like an awful idea.

    Edited:

    Sidenote: If you guys ever want to learn some advanced language features fast within real world applications there's nothing better than Stack Overflow. Just find an unanswered question relating to a topic you're interested in, and solve it for the person on your own. I've learned a shit ton by answering questions I originally knew nothing about but then spent a few hours learning about so I could provide a good answer.
    I was asleep when I wrote that. Anyway it was for a chat project.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  11. Post #1051
    how can you love some-one if you can't eat a brick
    phytocide's Avatar
    July 2011
    1,320 Posts
    I was more thinking you'd have someone post up a track they made along with project files and stems for all the instruments/drums/whatever in the project, then other people would end up forking tracks and putting their own spin on them and what not.
    i might just put all my projects up on github and people can submit pull requests or something

    shit, this (maybe) could happen
    Reply With Quote Edit / Delete Mac United States Show Events

  12. Post #1052
    Main issue I see would be people having different versions of plugins you're using and all that.
    Reply With Quote Edit / Delete Mac United States Show Events

  13. Post #1053
    Gold Member

    July 2010
    75 Posts
    Just whipped up a quick class.

    Code:
    <?php
    
    /**
     * @author Brandon Long
     * @copyright 2012
     */
    
    class db {
        
        private $dbconnections;
        private $mysql;
        private $clientApiType;
     
        /**
         * function: __connect ( HOST , DB_USERNAME, DB_PASSWORD, DB_NAME , CLIENT_API_TYPE )
         * Descrition: Makes a db connection
         */
         
        public function __connect ( $host, $dbUsername, $dbPassword, $dbName, $clientApiType)
        {
            
            // check the client api type
            if ($clientApiType == 'mysql')
            {
                
                if (!$mysql = mysql_connect($host, $dbUsername, $dbPassword))
                {
                    
                    die($this->killFunction('Unable to connect to MySQL Server'));
                    
                } else
                {
                    
                    if (!mysql_select_db($dbName))
                    {
                        
                        die($this->killFunction('Unable to connect to MySQL Server'));
                        
                    } else
                    {
                        
                        return true;
                        
                    }
                    
                }
                
            } else if ($clientApiType == 'mysqli')
            {
                
                $mysql = new mysqli ( $host, $dbUsername, $dbPassword, $dbName );
                
                if ($mysql->connect_error)
                {
                    
                    die($this->killFunction('Unable to connect to MySQL Server'));
                    
                } else
                {
                    
                    return true;
                    
                }
                
            } else if ($clientApiType == 'mysqlPDO')
            {
                
                $dsn = sprintf("mysql:dbname=%s;host=%s", $dbName, $host);
                
                try {
                    
                    $mysql = new PDO ( $dsn, $dbUsername, $dbPassword );
                    
                } catch (PDOException $e)
                {
                    
                    die($this->killFunction('Unable to connect to MySQL Server'));
                    
                }
                
            } else
            {
                
                die($this->killFunction('Invalid database identifer identified.'));
                
            }
            
        }
        
        /**
         * fuction: killFunction ( $errorMsg )
         * Description: Handles all error handling from the class. Basically, if some idiot decides to puke all over my ish we gonna get our ------ and roll.
         */
        private function killFunction ( $errorMsg )
        {
            
            include "./templates/" . TEMPLATE_NAME . "/dberror.html";
            
        }
     
        
    }
    
    ?>
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 6 (list)

  14. Post #1054
    Andrew McWatters
    Dennab
    March 2011
    4,658 Posts
    -snipped to protect your eyes from more shit-
    wow do you email your mother with that keyboard
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 2Winner Winner x 1 (list)

  15. Post #1055
    Gold Member

    July 2010
    75 Posts
    wow do you email your mother with that keyboard
    Sir, no I do not e-mail my mother. No need to, I am not lame. I can call her via TELEPHONE. It's an apparatus that allows you to talk to people. I understand you might not get out much, so I pictured one below.

    Let me know if you need one, I can send you an extra one.

    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 5Funny Funny x 2 (list)

  16. Post #1056
    secretly a furry
    Jelly's Avatar
    April 2011
    2,023 Posts
    <?php
    
    /**
     * @author Brandon Long
     * @copyright 2012
     */
    
    class db {
    	
    	private $dbconnections;
    	private $mysql;
    	private $clientApiType;
     
    	/**
    	 * function: __connect ( HOST , DB_USERNAME, DB_PASSWORD, DB_NAME , CLIENT_API_TYPE )
    	 * Descrition: Makes a db connection
    	 */
    	 
    	public function __connect($host, $dbUsername, $dbPassword, $dbName, $clientApiType){
    		// check the client api type
    		switch($clientApiType){
    			case 'mysql':
    				if (!$mysql = mysql_connect($host, $dbUsername, $dbPassword) || !mysql_select_db($dbName)){
    					$this->mysqlError();
    				} else {
    					return true;
    				}
    			break;
    
    			case 'mysqli':
    				$mysql = new mysqli($host, $dbUsername, $dbPassword, $dbName);		
    				if($mysql->connect_error){
    					$this->mysqlError();
    				} else {
    					return true;
    				}
    			break;
    
    			case 'mysqlPDO':
    				try {
    					$mysql = new PDO("mysql:dbname={$dbName};host={$host}", $dbUsername, $dbPassword);
    				} catch (PDOException $e){
    					$this->mysqlError();
    				}
    			break;
    
    			default:
    				$this->mysqlError();
    			break;
    		}
    	}
    
    	/**
    	 * fuction: mysqlError ( $errorMsg )
    	 * Description: Fuck you.
    	 */
    
    	private function mysqlError(){
    		$this->killFunction('Unable to connect to MySQL Server');
    	}
    	
    	/**
    	 * fuction: killFunction ( $errorMsg )
    	 * Description: Handles all error handling from the class. Basically, if some idiot decides to puke all over my ish we gonna get our ------ and roll.
    	 */
    
    	private function killFunction($errorMsg){
    		include "./templates/" . TEMPLATE_NAME . "/dberror.html";
    		exit;
    	}	
    }
    

    You're welcome.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Optimistic Optimistic x 3Funny Funny x 1 (list)

  17. Post #1057
    ZaroX's Avatar
    July 2010
    119 Posts
    I'm currently working on some kind of chess reader for a school project.
    I wanted to use HTML5 for everything, but it would be difficult getting the coörds right I guess..
    So I have made two parts now:
    http://zerfox.com/o_en_o/testje.php (Div version, reading the positions for a little bit)
    http://zerfox.com/o_en_o/schaakbord.php (HTML5 part)

    This is what I need to read out:
    http://zerfox.com/o_en_o/raw_posities.php posted:
    e4,c5,c3,Nf6,e5,Nd5,d4,cxd4,Nf3,Nc6,cxd4,d6,a3,Bg4 ,Bc4,e6,Be2,dxe5,dxe5,Be7,O-O,O-O,Re1,Qc7,b4,Rfd8,Nfd2,Bf5,Bb2,Nxe5,Qb3,Bf6,Nc3,Nx c3,Bd1,Ng4,Bxc3,Qxc3,Bxg4,
    The goal is to convert the flash version (http://digitalgametechnology.com/sit....php/Live.html) to something like HTML5 or C++ for mobile devices (i.e. iPad).
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events

  18. Post #1058
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    <?php
    
    /**
     * @author Brandon Long
     * @copyright 2012
     */
    
    class db {
    	
    	private $dbconnections;
    	private $mysql;
    	private $clientApiType;
     
    	/**
    	 * function: __connect ( HOST , DB_USERNAME, DB_PASSWORD, DB_NAME , CLIENT_API_TYPE )
    	 * Descrition: Makes a db connection
    	 */
    	 
    	public function __connect($host, $dbUsername, $dbPassword, $dbName, $clientApiType){
    		// check the client api type
    		switch($clientApiType){
    			case 'mysql':
    				if (!$mysql = mysql_connect($host, $dbUsername, $dbPassword) || !mysql_select_db($dbName)){
    					$this->mysqlError();
    				} else {
    					return true;
    				}
    			break;
    
    			case 'mysqli':
    				$mysql = new mysqli($host, $dbUsername, $dbPassword, $dbName);		
    				if($mysql->connect_error){
    					$this->mysqlError();
    				} else {
    					return true;
    				}
    			break;
    
    			case 'mysqlPDO':
    				try {
    					$mysql = new PDO("mysql:dbname={$dbName};host={$host}", $dbUsername, $dbPassword);
    				} catch (PDOException $e){
    					$this->mysqlError();
    				}
    			break;
    
    			default:
    				$this->mysqlError();
    			break;
    		}
    	}
    
    	/**
    	 * fuction: mysqlError ( $errorMsg )
    	 * Description: Fuck you.
    	 */
    
    	private function mysqlError(){
    		$this->killFunction('Unable to connect to MySQL Server');
    	}
    	
    	/**
    	 * fuction: killFunction ( $errorMsg )
    	 * Description: Handles all error handling from the class. Basically, if some idiot decides to puke all over my ish we gonna get our ------ and roll.
    	 */
    
    	private function killFunction($errorMsg){
    		include "./templates/" . TEMPLATE_NAME . "/dberror.html";
    		exit;
    	}	
    }
    

    You're welcome.
    require 'active_record'

    ure welcome
    Reply With Quote Edit / Delete Mac Australia Show Events Agree Agree x 3Zing Zing x 1 (list)

  19. Post #1059
    require 'active_record'

    ure welcome
    ty, this is way bettere
    Reply With Quote Edit / Delete Mac United States Show Events

  20. Post #1060
    Dennab
    February 2012
    2,299 Posts


    I initially turned down this project as it was for free, but I thought I would do the front end work.
    Like all free projects you end up having the piss taken out of you, no brief up front, constant additions, etc.
    I picked up where the last guy left off, all he had complete was a few wireframes.
    It still needs tidying up in a few areas, but its better than their current monstrosity.
    http://www.westdurhammethodists.org.uk/
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 2 (list)

  21. Post #1061
    It looks like a corporate website that was designed 7 years ago, not a church site.

    That sounds way harsher than I meant it too, but the cold grays and that blue don't really give off a church feel to me. The extra boxes around the content are kind of weird too. You don't need to put boxes around everything to separate elements.
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 7 (list)

  22. Post #1062
    Dennab
    February 2012
    2,299 Posts
    It looks like a corporate website that was designed 7 years ago, not a church site.

    That sounds way harsher than I meant it too, but the cold grays and that blue don't really give off a church feel to me. The extra boxes around the content are kind of weird too. You don't need to put boxes around everything to separate elements.
    Its the design that was given to me, unfortunately.
    What kind of colour scheme would you recommend?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  23. Post #1063
    Gold Member
    jaybuz's Avatar
    May 2006
    5,516 Posts
    Its the design that was given to me, unfortunately.
    What kind of colour scheme would you recommend?
    Complete white with an accent colour and a serif font like Georgia. Super clean, no bullshit™
    Reply With Quote Edit / Delete Mac United Kingdom Show Events Agree Agree x 1Informative Informative x 1 (list)

  24. Post #1064
    Dennab
    February 2012
    2,299 Posts
    Complete white with an accent colour and a serif font like Georgia. Super clean, no bullshit™
    Sounds good, thanks.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  25. Post #1065
    Its the design that was given to me, unfortunately.
    What kind of colour scheme would you recommend?
    Warmer colors. Light browns instead of grays would probably help it feel less corporate pretty quickly.
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 3 (list)

  26. Post #1066
    Dennab
    February 2012
    2,299 Posts


    I've ditched the unnecessary borders and backgrounds and warmed it up a little.
    I think it looks better, but there is still something little off.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  27. Post #1067
    â–“â–“â–“ italian
    TerabyteS_'s Avatar
    June 2011
    2,645 Posts


    I've ditched the unnecessary borders and backgrounds and warmed it up a little.
    I think it looks better, but there is still something little off.
    That's a bit better but there's a complete lack of personality.
    Reply With Quote Edit / Delete Windows 7 Anonymous Proxy Show Events Agree Agree x 6 (list)

  28. Post #1068
    BBgamer720's Avatar
    November 2011
    482 Posts
    That's a bit better but there's a complete lack of personality.
    Corporate church websites don't really need that much of a personality.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 4 (list)

  29. Post #1069
    Try left aligning the text instead of justifying it.
    Reply With Quote Edit / Delete Mac United States Show Events Disagree Disagree x 1 (list)

  30. Post #1070
    Dennab
    February 2012
    2,299 Posts


    I think I'm going to leave it for now, until I actually get some content to put into it.
    It does look better, its just not quite finished.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  31. Post #1071
    Gold Member
    toaster468's Avatar
    January 2010
    3,260 Posts
    I might make a small game like http://www.travian.us I'll see how it goes but so far I haven't really been challenged by my projects in PHP.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  32. Post #1072
    Gold Member
    wizard`'s Avatar
    August 2009
    949 Posts
    I might make a small game like http://www.travian.us I'll see how it goes but so far I haven't really been challenged by my projects in PHP.
    swift and shift: "every project I do in php has been a challenge, because I used php."
    Reply With Quote Edit / Delete Windows XP Australia Show Events Winner Winner x 2Funny Funny x 2 (list)

  33. Post #1073
    Mexican Moderator
    anton's Avatar
    May 2009
    1,737 Posts
    well php is a shit language you can't blame him
    Reply With Quote Edit / Delete Mac United States Show Events Agree Agree x 5Disagree Disagree x 1 (list)

  34. Post #1074
    Gold Member
    toaster468's Avatar
    January 2010
    3,260 Posts
    swift and shift: "every project I do in php has been a challenge, because I used php."
    Probably because he has actually done something useful. I don't really do much with it other than a few lines, like my flash game "CMS" which has about 30 lines of code.

    Edited:

    Also, maybe I don't have enough experience with the language or what but why do you guys always say it is a bad language? I've heard StinkyJoe say "you could shoot yourself in the foot" (or something of the like) on previous occasions.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  35. Post #1075
    Gold Member
    wizard`'s Avatar
    August 2009
    949 Posts
    Probably because he has actually done something useful. I don't really do much with it other than a few lines, like my flash game "CMS" which has about 30 lines of code.

    Edited:

    Also, maybe I don't have enough experience with the language or what but why do you guys always say it is a bad language? I've heard StinkyJoe say "you could shoot yourself in the foot" (or something of the like) on previous occasions.
    Sorry I probably should have used less subtlety. It was a joke, I wasn't saying he was wrong or anything I was just attempting to make humour of his almost inevitable response of "php is shit", which is a fine opinion that I would tend to agree with for the most part.
    Reply With Quote Edit / Delete Windows XP Australia Show Events Informative Informative x 1 (list)

  36. Post #1076
    RUBY OVERLORD
    swift and shift's Avatar
    November 2011
    2,115 Posts
    php is shit
    Reply With Quote Edit / Delete Australia Show Events Winner Winner x 12Disagree Disagree x 1 (list)

  37. Post #1077
    Tuba Player Extraordinaire
    Funcoot's Avatar
    January 2006
    3,592 Posts
    I remember back in the day, Facepunch was busy bashing Ruby and PHP frameworks, and talking about how they preferred to write their own PHP frameworks like men.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 1 (list)

  38. Post #1078
    I remember back in the day, Facepunch was busy bashing Ruby and PHP frameworks, and talking about how they preferred to write their own PHP frameworks like men.
    That was when there were less people that knew what the fuck they were doing.

    Edited:

    I remember trying to push php frameworks on people a long time ago though and getting shit for it lol
    Reply With Quote Edit / Delete Mac United States Show Events Programming King Programming King x 2Agree Agree x 1 (list)

  39. Post #1079
    Tuba Player Extraordinaire
    Funcoot's Avatar
    January 2006
    3,592 Posts
    That was when there were less people that knew what the fuck they were doing.

    Edited:

    I remember trying to push php frameworks on people a long time ago though and getting shit for it lol
    Code Igniter, Cake, and the like were always getting heat.
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  40. Post #1080
    secretly a furry
    Jelly's Avatar
    April 2011
    2,023 Posts
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Winner Winner x 6Funny Funny x 2Programming King Programming King x 1 (list)