[DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

Page 1 of 7 1234567 LastLast
Results 1 to 15 of 100
  1. #1
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    happy [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]


    What is this
    Hi Everyone , i'm Marcos and i from Brazil. I'm a old member from the Ragezone since Debbo Era and Habbo Hotel from 2005. I'm a player from the best era of Habbo Hotel .In 2010 i started the development of RetroCMS , a CMS from v12 Habbo Version , in 2010 we dont have any server avaliable for test , so i used the Hablog v15 [Crazy] i know... Today visiting the development section i saw that our badass Moderator Quackster started a new server project "Kepler" , so i solved try get my old project back to life , considering that I am a student of cumputer science today... Basicly the RetroCMS is a v12 Habbo Website compatible with Kepler Emulator [v13 - v21] ,

    What i use for the development
    - PHP with PDO
    - MariaDB

    Issues
    - The Kepler Database have so many differences , so i have to change a lot of features for now
    - Old Libraries used on my project are deprecated now , i have to migrate my SQL structure for PDO

    Features:
    - Login/Logout [100%]
    - News [ 70%]
    - Groups [20%]
    - Habbo Homes [20%]
    - Buy Club and Furni on Website [80%]
    - Promos [100%]
    - Housekeeping [ 20%]
    - SSO Login [ Waiting for Quackster feedback about that ]
    - Online users counter [0%]
    - Edit Profile [ 50% with the Old Flash , i will give a option between the old and new flash ]
    - Registration [15%]
    - Reedem Credit Codes [100%]
    - Forum [0%]

    I dont know if i can finish Habbo Homes and Groups and Foruns , but i'll make the basic works like edit create group and edit badges...

    I want to give support for two versions [ V16 and V21 ] i have the DCRs from 2009 on my old Hard-drive :D ,including the Old Avatar Image working for v16 converting to the Web 2.0 avatarimage is something like that:
    8010119509240212700129506 -> hr-829-00.hd-195-09.ch-240-110.lg-270-01.sh-295-06.ha-1011-72.fa-1201-96



    Code:
    <?php 
    $figura2=Converta('8010119509240212700129506'); 
    function Converta($figureID){ 
        $start = 0; 
        $parts = array(); 
        $increase_start = array(0, 5, 10, 15, 20); 
        for($i = 0; $i < 14; $i++) { 
                $length = (in_array($start, $increase_start)) ? 3 : 2; 
            if ( $i < 10 ){ 
                $parts[$i] = substr($figureID, $start, $length); 
                $start = $start + $length; 
                if( $i == 3){ 
                echo "$parts[$i]"; 
                $parts[$i] = ConvertHead($parts[$i]); 
                } 
            //Chest 
                if( $i == 5){ 
                //echo "$parts[$i]"; 
                $parts[$i] = ConvertChest($parts[$i]); 
                } 
    
            }else{ 
            $parts[$i] = '0'; 
                } 
         } 
        //Casos Especiais 
        switch ($parts[0]) { 
            //Coelho com Nariz de Bolha 
                case 590: 
            $parts[0]= '000'; 
            $parts[1]='00'; 
            $parts[10] = '1008'; 
            $parts[11] = '00'; 
            $parts[12] = '1202'; 
            $parts[13] ='71'; 
                break; 
            //Chapeu de Rena 
            case 580: 
            echo 'llala'; 
            $parts[0]= '000'; 
            $parts[1]='00'; 
            $parts[10] = '1007'; 
            $parts[11] = '00'; 
            $parts[12] = '1202'; 
            $parts[13] ='96'; 
                break; 
            //Gorro 
                case 585: 
            $parts[0]= '000'; 
            $parts[1]='00'; 
            $parts[10] = '1006'; 
            $parts[11] = '00'; 
                break; 
            //Sambista 
            case 801: 
            $parts[0]= '829'; 
            $parts[1]='00'; 
            $parts[10] = '1011'; 
            $parts[11] = '72'; 
            $parts[12] = '1201'; 
            $parts[13] = '96'; 
            break; 
            //Cowboy 
            case 802: 
            $parts[0]= '802'; 
            $parts[1]= ConvertHair($parts[1]); 
            $parts[10] = '1013'; 
            $parts[11] = ConvertHair($parts[1]); 
            break; 
            //CowGirl 
            case 802: 
            $parts[0]= '802'; 
            $parts[1]='ConvertHair($parts[1])'; 
            $parts[10] = '1013'; 
            $parts[11] = ConvertHair($parts[1]); 
            break; 
            //Reggie 
            case 120: 
            $parts[0]= '829'; 
            $parts[1]='00'; 
            $parts[10] = '1001'; 
            $parts[11] = '72'; 
            $parts[12] = '1201'; 
            $parts[13] = '96'; 
            break; 
            //Construtor: 
            case 178: 
            $parts[0]= '00'; 
            $parts[1]='00'; 
            $parts[10] = '1009'; 
            $parts[11] = '1321'; 
            break; 
            //Nenhum dos Casos Especiais 
                default: 
            $parts[10] = '00'; 
            $parts[11] = '00'; 
            $parts[12] = '00'; 
            $parts[13] ='00'; 
                 
            } 
        $figureID = 'hr-'.$parts[0].'-'.$parts[1].'.hd-'.$parts[2].'-'.$parts[3].'.ch-'.$parts[4].'-'.$parts[5].'.lg-'.$parts[6].'-'.$parts[7].'.sh-'.$parts[8].'-'.$parts[9].'.ha-'.$parts[10].'-'.$parts[11].'.fa-'.$parts[12].'-'.$parts[13];   
        return $figureID; 
    } 
    function ConvertChest($Color){ 
    if ( $Color == '02'  || $Color == '04' || $Color == '02' || $Color == '43' || $Color == '19' || $Color==21 || $Color == 14){ 
    $Color = '110'; 
    } 
    if ( $Color == '06'){ 
    $Color = '82'; 
    } 
    return $Color; 
    } 
    
    
    function ConvertHead($Color){ 
    if ( $Color == '13'){ $Color = '1'; } 
    if ( $Color == '02'){ $Color = '28'; } 
    if ( $Color == '03'){ $Color = '10'; } 
    if ( $Color == '18'){ $Color = '05'; } 
    if ( $Color == '25'){ $Color = '1373'; } 
    return $Color; 
    } 
    
    function ConvertHair($Color){ 
    if ( $Color == '01'){ $Color = '72'; } 
    return $Color; 
    } 
    ?> 
    
    
    <img src="http://habbo.com.br/habbo-imaging/avatarimage?figure=<?php echo "$figura2"; ?>&size=b&action=stand,&direction=4&head_direction=4&gesture=sml&size=m" alt="Smiley face">


    Pictures:






    UPDATE 03/03/2018:
    - I started the public release in a Alpha Preview Branch , that as the skeletion of the CMS , please help-me to improve before i start to implement(Move) the cool features on CMS :D

    GITHUB DEVELOPMENT BRANCH
    https://github.com/Negociation/RetroCMS/tree/Alpha

    DEMO HOTEL FOR KEPLER + RETROCMS:
    Kumma Hotel ~ Inicio
    Last edited by m.tiago; 5 Days Ago at 03:48 AM.


  2. #2
    Member treebeard is online now
    MemberRank
    Jun 2018 Join Date
    North AmericaLocation
    32Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Looks absolutely great; it makes me very thrilled to see yet another old-school oriented project!

  3. #3
    Member lElectrico is offline
    MemberRank
    Jan 2018 Join Date
    SpainLocation
    49Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Nice release, but, I recommend you to modernize your code, that style of code is like from 2010 lol

  4. #4
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by lElectrico View Post
    Nice release, but, I recommend you to modernize your code, that style of code is like from 2010 lol
    I just testing the system when i coded that... I'll make using Objects of PDO and Maybe Storage Procedures/Functions on Database :D


    For now i working on treatments of exceptions with black box testing... When i finished i wanna work in httpacess file to make friendly URLs like the version of 2007:

    <SERVER>/account/login
    <SERVER>/home/<USERNAME>
    <SERVER>/groups/<ID>/id
    <SERVER>/client
    ...

    The next step after that will works on Site Settings [CHANGE VERSION of SERVER between v18 or less ]a fully register page...

    If you dont understand me sorry ... its my english...
    Last edited by m.tiago; 10-06-18 at 05:30 PM.

  5. #5
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by lElectrico View Post
    Nice anyways :P
    And i have a good surprise for everyone , i'll recreate 95% of users settings page , i have the old prints from 2007 on my imageshack , so cross fingers :D

  6. #6
    Account Upgraded | Title Enabled! LeChris is online now
    True MemberRank
    Sep 2011 Join Date
    United StatesLocation
    652Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by m.tiago View Post
    I just testing the system when i coded that... I'll make using Objects of PDO and Maybe Storage Procedures/Functions on Database :D


    For now i working on treatments of exceptions with black box testing... When i finished i wanna work in httpacess file to make friendly URLs like the version of 2007:

    <SERVER>/account/login
    <SERVER>/home/<USERNAME>
    <SERVER>/groups/<ID>/id
    <SERVER>/client
    ...

    The next step after that will works on Site Settings [CHANGE VERSION of SERVER between v18 or less ]a fully register page...

    If you dont understand me sorry ... its my english...
    Chances are using something like Laravel or Cake, (any PHP framework really) will speed up your development and help from having to have a bloated httpaccess file

  7. #7
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by LeChris View Post
    Chances are using something like Laravel or Cake, (any PHP framework really) will speed up your development and help from having to have a bloated httpaccess file

    Tanks for the advice , i will learn about that... , because i remeber how bored is coded .httpacess , i do that in 2010 with my custom HoloCMS...

  8. #8
    Registered Relevance is offline
    MemberRank
    May 2018 Join Date
    17Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Seems very nice!

    I like the old-school Habbo style

  9. #9
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    UPDATES:

    - Index Page Data [100%]:
    + Now i can get all data for the Tab Menu if a Logged or Not


    - Habbo Homes [25%]:
    + The default sample of Habbo Home as Maded getting the basic Data: Motto , Username , Badge




    + Whats comes Next ?
    - I plann to get all Rooms from a user to Habbo Home
    - Fix the Habbo Imager
    - Try to Get the Httpacess working
    - Try to put all elements from Habbo Home into Database and push back with a query...
    - Enable Private your Habbo Home
    - Check if user as Banned...

    Probably i'll post a Alpha preview until next friday... with all programmed features and the Register working...

  10. #10
    Oldskool Resurrector Navine is offline
      V.I.P  Rank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,330Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Is it MVC? Is there multi-language support? And is the figure image 100% accurate?
    Other than that, it looks amazing! I really LOVE this style, one of my favourites!
    Developer of Aurora (huge oldskool & Habbo BETA project):
    http://forum.ragezone.com/f331/v9-r3...netty-1132388/

    - C# developer
    - Webdeveloper

    Contact me @ discord: navv13#8055

  11. #11
    Member treebeard is online now
    MemberRank
    Jun 2018 Join Date
    North AmericaLocation
    32Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    If I use the same users table as Kepler in a project will your CMS be compatible as well?

    Sent from my SM-G530T using Tapatalk

  12. #12
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by treebeard View Post
    If I use the same users table as Kepler in a project will your CMS be compatible as well?

    Sent from my SM-G530T using Tapatalk
    Of course :) , but u need to import extra tables for news... Site config ...

  13. #13
    Member lElectrico is offline
    MemberRank
    Jan 2018 Join Date
    SpainLocation
    49Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by m.tiago View Post
    Of course :) , but u need to import extra tables for news... Site config ...
    But Kepler does not need that (?)
    Microsoft bought GitHub.
    Moving to GitLab.
    Twitter: https://twitter.com/KeenGomezz
    Discord: Ken#6059

  14. #14
    Account Upgraded | Title Enabled! LeChris is online now
    True MemberRank
    Sep 2011 Join Date
    United StatesLocation
    652Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by lElectrico View Post
    But Kepler does not need that (?)
    No, his CMS needs that.

  15. #15
    Hardcore Member m.tiago is offline
    MemberRank
    Dec 2008 Join Date
    BrazilLocation
    132Posts

    Re: [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV]

    Quote Originally Posted by lElectrico View Post
    But Kepler does not need that (?)
    No , i use all Kepler database structure , but i needed to make extra tables for the rest of website. I talking with Quackster about that because i have some tables Like Tags where the server can use on future...

    - - - Updated - - -

    Quote Originally Posted by Navine View Post
    Is it MVC? Is there multi-language support? And is the figure image 100% accurate?
    Other than that, it looks amazing! I really LOVE this style, one of my favourites!

    I not using any arquiteture yet , because 'm just testing pieces of code... For now i have a Index.php and a Functions.php where i just call and they send me a response. But i have plans to move everthing to MVP (its easy...).

    About the Multi-Language yes , i'll make English and Portuguese... In users table will have a column called User_Language [ en , pt ( maybe spanish ) ].

    I just need to find a way to get the texts (i dont wanna make a php locale file (too bad... , maybe get from database (Website_Locales ???)...) . ) its complicated ... for now i want to work in the rest , i'm using scrum for development... and my Sprint burndown (well... its a mess...);



Page 1 of 7 1234567 LastLast

Advertisement