Cleaning up your hotel config (FOR NOOBS) (R63B ONLY!)

iGlenn

:)
Jul 21, 2015
618
92
If you're using a standard revcms your cms config probably looks similar to this...
PHP:
<?php

if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
#Please fill this all out.

#NOTE: To set up TheHabbos.ORG's API go to wwwroot/mysite/thehabbos_api for IIS, OR, htdocs/thehabbos_api for XAMPP and others.

/*
*
*    MySQL management
*
*/

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.

$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host

$_CONFIG['mysql']['username'] = 'root'; //MySQL username

$_CONFIG['mysql']['password'] = 'Rexiscool123'; //MySQL password

$_CONFIG['mysql']['database'] = 'newstick'; //MySQL database

$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

/*
*
*    Hotel management  - All URLs do not end with an "/"
*
*/

$_CONFIG['hotel']['server_ip'] = '64.31.43.149'; //IP of VPS/DEDI/etc

$_CONFIG['hotel']['url'] = 'http://stick-hotel.com'; //Does not end with a "/"

$_CONFIG['hotel']['name'] = 'Stick'; // Hotel's name

$_CONFIG['hotel']['desc'] = 'Best hotel around!'; //Hotel's description

$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin

$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance

$_CONFIG['hotel']['motto'] = 'Im New To Stick Hotel, Hey!'; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 15000; //Default number of credits users will register with.

$_CONFIG['hotel']['pixels'] = 15000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100'; //Default figure users will register with.

$_CONFIG['hotel']['web_build'] = '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1905'; //Web_Build

$_CONFIG['hotel']['external_vars'] = 'http://stick-hotel.com/r63/external_variables.txt'; //URL to your external vars

$_CONFIG['hotel']['external_texts'] = 'http://stick-hotel.com/r63/external_flash_texts.txt'; //URL to your external texts

$_CONFIG['hotel']['product_data'] = 'http://stick-hotel.com/r63/productdata.txt'; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = 'http://stick-hotel.com/r63/furnidata.txt'; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = 'http://stick-hotel.com/r63'; //URL to your SWF folder(does not end with a '/')

/*
*
*    Templating management - Pick one of our default styles or make yours by following our examples!
*
*/

#RevCMS has 2 default styles, 'Mango' by dannyy94 and 'Priv' by joopie - Others styles are to come, such as RastaLulz's ProCMS style and Nominal's PhoenixCMS 4.0 style.

$_CONFIG['template']['style'] = 'Habbo';

/*
*
*    Other topsites.. thing
*
*/

$_CONFIG['thehabbos']['username'] = 'Stick';
$_CONFIG['retro_top']['user'] = '';

/*
*
*    Recaptcha management - Fill the information below if you have one, else leave it like that and don't worry, be happy.
*
*/

$_CONFIG['recaptcha']['priv_key'] = '6LcZ58USAAAAABSV5px9XZlzvIPaBOGA6rQP2G43';
$_CONFIG['recaptcha']['pub_key'] = '6LcZ58USAAAAAAQ6kquItHl4JuTBWs-5cSKzh6DD';


/*
*
*    Social Networking stuff
*
*/

$_CONFIG['social']['twitter'] = ''; //Hotel's Twitter account

$_CONFIG['social']['facebook'] = 'StickHotels'; //Hotel's Facebook account

?>

Well, it has a lot of unnecessary coding so were going to clean it up.
Replace your current config.php with the one below...
PHP:
<?php

if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
$_CONFIG['mysql']['connection_type'] = 'pconnect';
$_CONFIG['mysql']['hostname'] = '127.0.0.1';
$_CONFIG['mysql']['username'] = 'root';
$_CONFIG['mysql']['password'] = 'lol123';
$_CONFIG['mysql']['database'] = 'db';
$_CONFIG['mysql']['port'] = '3306';
$_CONFIG['hotel']['url'] = 'http://localhost';
$_CONFIG['hotel']['name'] = 'Habbo';
$_CONFIG['hotel']['desc'] = 'Virtual World, Avatar Chat and Pixel Art!';
$_CONFIG['hotel']['in_maint'] = false;
$_CONFIG['hotel']['motto'] = 'I am new to Habbo!';
$_CONFIG['hotel']['credits'] = 100000;
$_CONFIG['hotel']['pixels'] = 100000;
$_CONFIG['hotel']['figure'] = 'hd-180-1.ch-210-66.lg-270-82.sh-290-91.hr-100';
$_CONFIG['template']['style'] = 'Habbo';
error_reporting(0)
?>

This is nothing big but it makes your config look cleaner and more organized with a lot of useless codes removed. It has been tested and works fine for those of you who are scared it will mess up your hotel.
EDIT: I forgot to mention that if youre not using the habbo skin then change it to the skin name youre using but I think even a noob could realize this on their own....

Credits to user @JMG
 
Last edited:

iGlenn

:)
Jul 21, 2015
618
92
Please remember this means you will need to update your client.php accordingly
True, but that's purely setting up their client and whether or not they know how to and if they don't that's a problem :p
 

TheNotorious

Im dying slowly.
Oct 4, 2014
228
41
PHP:
<?php
if(!defined('IN_INDEX')) { die('Noob get away. Or i will come and DDoS y0 with 980/gbps'); }
#yaassboii

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
$_CONFIG['mysql']['username'] = 'root'; //MySQL username
$_CONFIG['mysql']['password'] = 'psw'; //MySQL password
$_CONFIG['mysql']['database'] = 'nah'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

$_CONFIG['hotel']['server_ip'] = 'ip'; //IP of VPS/DEDI/etc
$_CONFIG['hotel']['url'] = 'http://ip'; //Does not end with a "/"
$_CONFIG['hotel']['name'] = 'Hotel'; // Hotel's name
$_CONFIG['hotel']['desc'] = 'Welcome!'; //Hotel's description
$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
$_CONFIG['hotel']['motto'] = 'I Love DanielBlur @Devbest'; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 25000; //Default number of credits users will register with.
$_CONFIG['hotel']['pixels'] = 14000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = '-'; //Default figure users will register with.

$_CONFIG['hotel']['external_vars'] = 'http://ip/swfs/gamedata/external_variables.txt'; //external variables
$_CONFIG['hotel']['external_texts'] = 'http://ip/swfs/gamedata/external_flash_texts.txt'; //external flash texts
$_CONFIG['hotel']['product_data'] = 'http://ip/swfs/gamedata/productdata.txt'; //productdata
$_CONFIG['hotel']['furni_data'] = 'http://ip/swfs/gamedata/furnidata.xml'; //furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://ip/swfs/gordon/PRODUCTION-201604132204-637539863'; //URL to your SWF folder(does not end with a '/')

$_CONFIG['template']['style'] = 'Habbo'; // your pages skin.
error_reporting (0); //Do not Show an error on the fucking page.

?>

Sometimes using this ;)
 

iGlenn

:)
Jul 21, 2015
618
92
PHP:
<?php
if(!defined('IN_INDEX')) { die('Noob get away. Or i will come and DDoS y0 with 980/gbps'); }
#yaassboii

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
$_CONFIG['mysql']['username'] = 'root'; //MySQL username
$_CONFIG['mysql']['password'] = 'psw'; //MySQL password
$_CONFIG['mysql']['database'] = 'nah'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

$_CONFIG['hotel']['server_ip'] = 'ip'; //IP of VPS/DEDI/etc
$_CONFIG['hotel']['url'] = 'http://ip'; //Does not end with a "/"
$_CONFIG['hotel']['name'] = 'Hotel'; // Hotel's name
$_CONFIG['hotel']['desc'] = 'Welcome!'; //Hotel's description
$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
$_CONFIG['hotel']['motto'] = 'I Love DanielBlur @Devbest'; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 25000; //Default number of credits users will register with.
$_CONFIG['hotel']['pixels'] = 14000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = '-'; //Default figure users will register with.

$_CONFIG['hotel']['external_vars'] = 'http://ip/swfs/gamedata/external_variables.txt'; //external variables
$_CONFIG['hotel']['external_texts'] = 'http://ip/swfs/gamedata/external_flash_texts.txt'; //external flash texts
$_CONFIG['hotel']['product_data'] = 'http://ip/swfs/gamedata/productdata.txt'; //productdata
$_CONFIG['hotel']['furni_data'] = 'http://ip/swfs/gamedata/furnidata.xml'; //furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://ip/swfs/gordon/PRODUCTION-201604132204-637539863'; //URL to your SWF folder(does not end with a '/')

$_CONFIG['template']['style'] = 'Habbo'; // your pages skin.
error_reporting (0); //Do not Show an error on the fucking page.

?>

Sometimes using this ;)
that works too however the swf variables arent needed because their read from the client.php and the server ip, desc, and email lines of code could also be removed
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
PHP:
<?php
if(!defined('IN_INDEX')) { die('Noob get away. Or i will come and DDoS y0 with 980/gbps'); }
#yaassboii

$_CONFIG['mysql']['connection_type'] = 'pconnect'; //Type of connection: It must be connect, or pconnect: if you want a persistent connection.
$_CONFIG['mysql']['hostname'] = 'localhost'; //MySQL host
$_CONFIG['mysql']['username'] = 'root'; //MySQL username
$_CONFIG['mysql']['password'] = 'psw'; //MySQL password
$_CONFIG['mysql']['database'] = 'nah'; //MySQL database
$_CONFIG['mysql']['port'] = '3306'; //MySQL's port

$_CONFIG['hotel']['server_ip'] = 'ip'; //IP of VPS/DEDI/etc
$_CONFIG['hotel']['url'] = 'http://ip'; //Does not end with a "/"
$_CONFIG['hotel']['name'] = 'Hotel'; // Hotel's name
$_CONFIG['hotel']['desc'] = 'Welcome!'; //Hotel's description
$_CONFIG['hotel']['email'] = '[email protected]'; //Where the help queries from users are emailed to.@Priv skin
$_CONFIG['hotel']['in_maint'] = false; //False if hotel is NOT in maintenance. True if hotel IS in maintenance
$_CONFIG['hotel']['motto'] = 'I Love DanielBlur @Devbest'; //Default motto users will register with.

$_CONFIG['hotel']['credits'] = 25000; //Default number of credits users will register with.
$_CONFIG['hotel']['pixels'] = 14000; //Default number of pixels users will register with.

$_CONFIG['hotel']['figure'] = '-'; //Default figure users will register with.

$_CONFIG['hotel']['external_vars'] = 'http://ip/swfs/gamedata/external_variables.txt'; //external variables
$_CONFIG['hotel']['external_texts'] = 'http://ip/swfs/gamedata/external_flash_texts.txt'; //external flash texts
$_CONFIG['hotel']['product_data'] = 'http://ip/swfs/gamedata/productdata.txt'; //productdata
$_CONFIG['hotel']['furni_data'] = 'http://ip/swfs/gamedata/furnidata.xml'; //furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://ip/swfs/gordon/PRODUCTION-201604132204-637539863'; //URL to your SWF folder(does not end with a '/')

$_CONFIG['template']['style'] = 'Habbo'; // your pages skin.
error_reporting (0); //Do not Show an error on the fucking page.

?>

Sometimes using this ;)


Not the most professional but yes, preferred to the above.



On the other hand, one could just edit the class.template.php and end up recoding the whole of the config or the whole RevCMS core.
And either way, this needs explaining on what you've removed so people know how to configure their client.php accordingly.
 

SOUL

┼ ┼ ┼
Nov 10, 2015
224
45
Not the most professional but yes, preferred to the above.



On the other hand, one could just edit the class.template.php and end up recoding the whole of the config or the whole RevCMS core.
And either way, this needs explaining on what you've removed so people know how to configure their client.php accordingly.

why bump a 5 month old thread?
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
Not really @JMG - I am fairly inactive and not too bothered about posts, was just one of the most recent in the tutorials section, I don't look at the date.
 

Users who are viewing this thread

Top