Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

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

Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
UbURF00 - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums

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

m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums


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


m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums

Pictures:
m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums

m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums

m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums

m.tiago - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums



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


DEMO HOTEL FOR KEPLER + RETROCMS:
 

Attachments

You must be registered for see attachments list
Last edited:
Junior Spellweaver
Joined
Jun 1, 2018
Messages
105
Reaction score
40
Looks absolutely great; it makes me very thrilled to see yet another old-school oriented project!
 
Newbie Spellweaver
Joined
Jan 16, 2018
Messages
52
Reaction score
6
Nice release, but, I recommend you to modernize your code, that style of code is like from 2010 lol
 
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
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:
Joined
Sep 10, 2011
Messages
778
Reaction score
138
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
 
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
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...
 
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
UPDATES:

- Index Page Data [100%]:
+ Now i can get all data for the Tab Menu if a Logged or Not
4jhrkxT - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums


- Habbo Homes [25%]:
+ The default sample of Habbo Home as Maded getting the basic Data: Motto , Username , Badge
pCIpNNG - [DEV] RetroCMS ~ The Oldschool Era is BACK !!! - PHP + PDO + MariaDB [DEV] - RaGEZONE Forums




+ 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...
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Jun 1, 2018
Messages
105
Reaction score
40
If I use the same users table as Kepler in a project will your CMS be compatible as well?

 
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
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...



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...);
 
Newbie Spellweaver
Joined
Jan 16, 2018
Messages
52
Reaction score
6
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...






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

Why you dont use json locale file?
 
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
Why you dont use json locale file?
Tanks for the advice , i post that because i want ideas from you guys...


UPDATE 1:
- I read about json locales and i'll try do that on future when i start works on Multi-language Features , tanks for the tip lElectrico :>

UPDATE 2:
+ FOLLOWS BELOW THE NEW DEVELOPMENT SCHEDULE BASED ON FEEDBACKS (TO-DO):

1- Move my project Architecture to MVP ( 6 Hours )

2 - Create Object Class for Users and implement all functions inside ( 6 Hours )

3 - Clean Project ( 2 Hours )

4 - Create Json Locale System ( 12 Hours )
+ Only Portuguese for now but in the next Version will comes with English Translate and Maybe
Spanish

5 - Finish Habbo Homes on Database and load it ( 16 Hours ):
+ Stickers and Background on Database [Home-Itens]
+ Load all Rooms to a Class and Show on Home
+ Load Tags on Home
+ Hide/Show your Habbo Home
+ Dont Show Habbo Home if the users was banned

6 - Make the Figuredata script to Load [ without colors ( depends from Version Selection on Database ] ( 4 Hours )

7 - Make Registration ´[ stolen from Zabboweb the Layout Ha-Ha ] (
12 Hours )

Issues:
- I trying to Make the Old Habbo Javascript Pop-Up works , i having problems with the close button... After i Finished all To-Do , i'll post on Github (I hope u help me guys) , if that works the next step is Enable friend Resquest from Habbo Home , Create Groups and Edit Badge (I hope so) , Add/Remove Tags, Buy Stuff from Website ( Furniture , HC )... ,

RetroCMS 0.5.0 Alpha coming soon...
 
Last edited:
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
UPDATE 3 : FOR My Surprise i got my HD from 2007 working with some Sources Codes , like externals variables and texts ... and the best ( Edit Profile Original Page with CSS) , yeah , i kicked my to-do for a while and:

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


I have to re-make some images based on my old prints and the css files :D
 

Attachments

You must be registered for see attachments list
Skilled Illusionist
Joined
Dec 27, 2008
Messages
311
Reaction score
205
Updates:
Well on this week i'm very busy with my final papper on my University (Finally ha-ha) , but i started working on MVC ( I have to learn again , because i'm using MVVM with my applications ):

- Httpacess working fine
- Controllers call working

Maybe i finished on weekend...
 
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,685
Updates:
Well on this week i'm very busy with my final papper on my University (Finally ha-ha) , but i started working on MVC ( I have to learn again , because i'm using MVVM with my applications ):

- Httpacess working fine
- Controllers call working

Maybe i finished on weekend...

I highly recommend you do your paper first, remember you only get one chance to do your paper, but you can get many chances at creating a CMS in your spare time. :p:
 
Back
Top