Habbo4.1 [PHP5, OOP, TPL, MySQLi]

Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 56
  1. #26

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    This cms works perfectly with IIS!

  2. #27
    Typescript XOXO LeChris is offline
    Grand MasterRank
    Sep 2011 Join Date
    750Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    A CMS isn't so much for design. A CMS has the functions which you need, and should be easy to edit. This CMS achieves that in my eyes, the design is easy to edit, and shouldn't take much time. Honestly, rather than waiting on the dev to finish the other two themes why not make your own or steal one and use it lol.

  3. #28
    Member Boston21 is offline
    MemberRank
    Dec 2013 Join Date
    42Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Did you have to do anything specific to get it to work with IIS?

  4. #29

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    No ..... :)

  5. #30
    Banned Rizzie is offline
    BannedRank
    Jan 2013 Join Date
    11Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Very nice! Little but nice.

  6. #31
    Grand Master Jamal7 is offline
    Grand MasterRank
    Dec 2013 Join Date
    547Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Tnxx for this release maybe an good layout for an RP?

  7. #32
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Quote Originally Posted by Dannie View Post
    This cms works perfectly with IIS!
    Glad to hear, hadn't tested yet.

    Sent from my GT-I8260 using Tapatalk

  8. #33
    Banned bugme is offline
    BannedRank
    Feb 2007 Join Date
    1,380Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Jamal:

    Don't think it's a layout that you'd use for roleplay hotels but anyway good luck!

  9. #34
    Loyalty Vaulient is offline
    Grand MasterRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Actually it is better off for a rp.

  10. #35
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Going to update it tomorrow with the latest version. It now has cached avatars.

  11. #36
    Web & Interaction Design Gangnam is offline
    Grand MasterRank
    Dec 2010 Join Date
    Lincoln, UKLocation
    1,983Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Quote Originally Posted by Vaulient View Post
    Actually it is better off for a rp.
    And how do you work that out?

  12. #37
    Loyalty Vaulient is offline
    Grand MasterRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    The skin itself , it's more suitable for a rp

  13. #38
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Update 13:
    Spoiler:

    - Fixed SSO problem

    https://mega.co.nz/#!x1JhWAxD!EERvuQ...EeNQxIUvZHKKfI

  14. #39
    Sorcerer Supreme Phosfor is offline
    Member +Rank
    Jul 2010 Join Date
    FranceLocation
    286Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Have you already tried RainTPL for your template system ?

    I use it for personal purpose, it's lightweight ( compared to the famous
    Smarty and others ) but powerful and easy to use.

  15. #40
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    I used it on earlier projects. I wanted to create my own engine now.

  16. #41
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Busy on new theme!
    Spoiler:



  17. #42
    Member Johnix1337 is offline
    MemberRank
    Jul 2013 Join Date
    27Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Hey.
    I want to give you some tips with your code.

    PHP Code:
    class User{
        public function 
    database($h$u$p$db){
            
    $this->conn = new mysqli($h,$u,$p,$db); // So i don't have to use global.
        
    }

    public function 
    grabData($k) {
        
    $q $this->conn->query("SELECT * FROM users WHERE username = '$this->session'");
        
    $r mysqli_fetch_assoc($q);

        return 
    $r[$k];
    }

    The grabData() method is pretty inefficient. I would store the result which is given in a private attribute, so it doesn't have to run the query everytime grabData is called.
    Another tip is, that you use dependency injection with the database. The method database() will create an mysqli instance everytime when you use the User object.
    I would pass the Database as a parameter so the database() method looks a bit like this.

    PHP Code:
    class User{
    /* ... */
    public function database(MySQLi $connection)
    {
    this->conn $connection;

    And if you want to call this function, you simply do this:
    PHP Code:
    $connection = new MySQLi('bla','bla','bla','bla');

    $user = new User('blabla');
    $user->database($connection); 
    I would put the $connection variable in the core file, so you only use one instance of it.

    I've rewritten the User class with minor adjustments:
    PHP Code:
    class User {
        
        private 
    $row null;
        
        public function 
    __construct($session) {
            
    $this->session $session;
        }
        
        public function 
    database($connection){
            
    $this->conn $connection// Dependency Injection, maybe put this in the constructor
        
    }

        public function 
    grabData($k) {
            if (
    is_null($this->row)){
            
    $q $this->conn->query("SELECT * FROM users WHERE username = '$this->session'");
            
    $this->row mysqli_fetch_assoc($q);
            }
            
            return 
    $this->row[$k];
        }
        
        
    // Call RefreshRow() if something has been updated in the database
        
    public function RefreshRow()
        {
            
    $q $this->conn->query("SELECT * FROM users WHERE username = '$this->session'");
            
    $this->row mysqli_fetch_assoc($q);
        }

    I didnt't test anything so forgive me if I made any mistakes.
    Hope I could help!
    Last edited by Johnix1337; 04-01-14 at 01:15 PM.

  18. #43
    Newbie zSanta is offline
    MemberRank
    Jan 2014 Join Date
    1Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    It looks really good. Keep up the good work!


    Verzonden vanaf mijn iPhone met behulp van Tapatalk

  19. #44
    Newbie Even Retro is offline
    MemberRank
    Dec 2013 Join Date
    Behind youLocation
    5Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    I got a white client, how do i fix it? Plz reply fast!

  20. #45
    Grand Master Emily is offline
    Grand MasterRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    $q = $this->conn->query("SELECT * FROM users WHERE username = '$this->session'");

    This is where prepared statements are for...

    Also, I hate the style (no offence) but it looks TOO small in my opinion and really messy. I don't know much about your PHP but like above: that's what prepared statements are for..

    Won't use it as I use my own custom CMS but still good attempt.

  21. #46
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Quote Originally Posted by Tha View Post
    $q = $this->conn->query("SELECT * FROM users WHERE username = '$this->session'");

    This is where prepared statements are for...

    Also, I hate the style (no offence) but it looks TOO small in my opinion and really messy. I don't know much about your PHP but like above: that's what prepared statements are for..

    Won't use it as I use my own custom CMS but still good attempt.
    I used them, but i tought that they didn't work. So i replaced them with normal querys. I will try to update them along the month. And i don't like the style either. I made it so the cms wasn't empty. But im busy on an improved design with a talented designer. No worries!

    Sent from my GT-I8260 using Tapatalk

    - - - Updated - - -

    So there was another sso problem. Fixed it again:
    https://mega.co.nz/#!Y0IwGCzS!LGSyWVo1s8p80FcDYl85iBZ3TCUz5RzyXnI4WkMD_7g

  22. #47

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Design is good, well done!

  23. #48
    Newbie Volx is offline
    MemberRank
    Dec 2012 Join Date
    6Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]


  24. #49
    Member Finley7 is offline
    MemberRank
    Feb 2013 Join Date
    In tha NedzLocation
    61Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Quote Originally Posted by Volx View Post
    If it does't work, use any of these dbs: phoenix, swift and bc storm

  25. #50
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Habbo4.1 [PHP5, OOP, TPL, MySQLi]

    Finley is so easy to be trolled. :$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ahum ahum

    OT: Well done ;)



Page 2 of 3 FirstFirst 123 LastLast

Advertisement