White Screen

EngeldesTodes

Deutsch Techno-Freak WIR SIND EIN
Feb 21, 2011
1,075
77
ok as i fixed most problems in here i left with 1 task and that the white screen nothign else shows up i was wondering who can help me on that as i not sure what gone wrong please note the stars ****** are passwords and ip hidden
here is my config.php
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'] = '******'; //MySQL password

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

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

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

$_CONFIG['hotel']['server_ip'] = '******'; //IP of DDos protected server.

$_CONFIG['hotel']['server_port'] = '30000'; //Port that EMU uses!

$_CONFIG['hotel']['url'] = 'http://xotel.co'; //Does not end with a "/"

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

$_CONFIG['hotel']['desc'] = 'Where the Fun Begins'; //Hotel's description

$_CONFIG['hotel']['online_text'] = Xotel'Members Online!'; // Its the text that is near 15 Bla's online.

$_CONFIG['hotel']['owner1'] = 'MikuHatsune'; //Owner 1

$_CONFIG['hotel']['owner2'] = ''; //If you only have one owner leave this blank!

$_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 a {hotelname} Noobie'; //Default motto users will register with.

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

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

$_CONFIG['hotel']['figure'] = 'lg-3023-88.hd-180-8.ea-1406-63.sh-305-1408.ch-255-76.cp-3120-76.hr-170-34'; //Default figure users will register with.

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

$_CONFIG['hotel']['external_vars'] = 'http://xotel.co/game/gamedata/external_variables.txt'; //URL to your external vars

$_CONFIG['hotel']['external_texts'] = 'http://xotel.co/game/gamedata/external_flash_texts_en.txt'; //URL to your external texts

$_CONFIG['hotel']['product_data'] = 'http://xotel.co/game/gamedata/productdata.txt'; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = 'http://xotel.co/game/gamedata/furnidata_xml_english.xml'; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = 'http://xotel.co/game/gordon/SWFS'; //URL to your SWF folder


//Facts if you enter the fact here it will randomly show at the top of your page!

$_CONFIG['hotel']['fact_1'] = 'Buying VIP helps keep Xotel alive!';

$_CONFIG['hotel']['fact_2'] = 'Xotel peaked at 0 users online!';

$_CONFIG['hotel']['fact_3'] = 'You can get credits by winning rotw\'s, etc!';

$_CONFIG['hotel']['fact_4'] = 'Xotel is owned by ' . $_CONFIG['hotel']['owner1'] . $_CONFIG['hotel']['owner2'];

$_CONFIG['hotel']['fact_5'] = 'Xotel tends to be #1!';


/*
*
*    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';
?>
 

Attachments

  • white screen.jpg
    white screen.jpg
    66.3 KB · Views: 3

EngeldesTodes

Deutsch Techno-Freak WIR SIND EIN
Feb 21, 2011
1,075
77
client.php file please?
PHP:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Client</title>
       
        <link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">
       
        <script type="text/javascript" src="{url}/app/tpl/skins/Habbo/web-gallery/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "{swf_folder}";
            var flashvars =
            {
                "client.starting" : "Please wait, {hotelName} is loading",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "{server_ip}",
                "connection.info.port" : "{server_port}",
                "site.url" : "{url}",
                "url.prefix" : "{url}",
                "client.reload.url" : "{url}/client",
                "client.fatal.error.url" : "{url}/me",
                "client.connection.failed.url" : "{url}/me",
                "external.variables.txt" : "{external_vars}",
                "external.texts.txt" : "{external_texts}",
                "productdata.load.url" : "{product_data}",
                "furnidata.load.url" : "{furni_data}",
                "use.sso.ticket" : "1",
                "sso.ticket" : "{sso}",
                "processlog.enabled" : "0",
                "flash.client.url" : BaseUrl,
                "flash.client.origin" : "popup"
            };
            var params =
            {
                "base" : BaseUrl + "/",
                "allowScriptAccess" : "always",
                "menu" : "false"               
            };
            swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);
        </script>
    </head>
   
    <body>
   
        <div id="client"></div>
   
    </body>
</html>
 

EngeldesTodes

Deutsch Techno-Freak WIR SIND EIN
Feb 21, 2011
1,075
77
Ok, is the skin you're using, called Habbo? And class.template.php please :p
yes it is called Habbo
PHP:
<?php

namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class template implements iTemplate
{

    public $tpl;
   
    private $params = array();

    final public function Initiate()
    {
        global $_CONFIG, $users, $engine, $core, $template;
        $this->setParams('hotelName', $_CONFIG['hotel']['name']);
        $this->setParams('hotelDesc', $_CONFIG['hotel']['desc']);
        $this->setParams('url', $_CONFIG['hotel']['url']);
        $this->setParams('online', $core->getOnline());
        $this->setParams('status', $core->getStatus());
        $this->setParams('web_build', $_CONFIG['hotel']['web_build']);
        $this->setParams('external_vars', $_CONFIG['hotel']['external_vars']);
        $this->setParams('external_texts', $_CONFIG['hotel']['external_texts']);
        $this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']);
        $this->setParams('furni_data', $_CONFIG['hotel']['furni_data']);
        $this->SetParams('product_data', $_CONFIG['hotel']['product_data']);
        $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);
       
        $this->setParams('mysql_host', $_CONFIG['mysql']['hostname']);
        $this->setParams('mysql_port', $_CONFIG['mysql']['port']);
       
        $this->setParams('skin', $_CONFIG['template']['style']);
       
        if($users->isLogged())
        {   
            $this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
            $this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));
            $this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));
            $this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));
            $this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
            $this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));
            $this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));
            $this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));
           
            if($this->params['rank'] > 3)
            {
                $this->setParams('housekeeping', '<li><a href="ase/">Housekeeping</a></li>');
            }
            else
            {
                $this->setParams('housekeeping', '');
            }
           
            if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community')
            {
                $template->form->getPageHome();               
            }
           
            if($_GET['url'] == 'news' || $_GET['url'] == 'articles')
            {
                $template->form->getPageNews();
            }       
        }
       
    }
   
    final public function setParams($key, $value)
    {   
        $this->params[$key] .= $value;
    }
   
    final public function filterParams($str)
    {
        foreach($this->params as $key => $value)
        {
            $str = str_ireplace('{' . $key . '}', $value, $str);
        }

        return $str;
    }
      
    final public function write($str)
    {
        $this->tpl .= $str;
    }
   
    final public function outputTPL()
    {
        echo $this->filterParams($this->tpl);
        unset($this->tpl);
    }
}
?>
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
$_CONFIG['hotel']['external_vars'] = ' '; //URL to your external vars

$_CONFIG['hotel']['external_texts'] = ' '; //URL to your external texts

$_CONFIG['hotel']['product_data'] = ' '; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = ' '; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = ' '; //URL to your SWF folder

Underneath
$this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);
, add
PHP:
$this->setParams('server_port', $_CONFIG['hotel']['server_port']);
and save it.

Then for the client.php file, make sure
app/tpl/skins/Habbo/web-gallery/js/swfobject.js
link works (ON THE VPS), as otherwise may make your client white. Then with the config.php, make sure
$_CONFIG['hotel']['external_vars'] = ' '; //URL to your external vars

$_CONFIG['hotel']['external_texts'] = ' '; //URL to your external texts

$_CONFIG['hotel']['product_data'] = ' '; //URL to your productdata

$_CONFIG['hotel']['furni_data'] = ' '; //URL to your furnidata

$_CONFIG['hotel']['swf_folder'] = ' '; //URL to your SWF folder
your SWF paths are all working by double clicking and seeing if they bring you to the correct file.
 

EngeldesTodes

Deutsch Techno-Freak WIR SIND EIN
Feb 21, 2011
1,075
77
Underneath , add
PHP:
$this->setParams('server_port', $_CONFIG['hotel']['server_port']);
and save it.

Then for the client.php file, make sure link works (ON THE VPS), as otherwise may make your client white. Then with the config.php, make sure your SWF paths are all working by double clicking and seeing if they bring you to the correct file.
ok i done most of that cinfused on 1 of them the
PHP:
$_CONFIG['hotel']['external_vars'] = 'http://xotel.co/game/gamedata/external_variables.txt'; //URL to your external vars
$_CONFIG['hotel']['external_texts'] = 'http://xotel.co/game/gamedata/external_flash_texts_en.txt'; //URL to your external texts
$_CONFIG['hotel']['product_data'] = 'http://xotel.co/game/gamedata/productdata.txt'; //URL to your productdata
$_CONFIG['hotel']['furni_data'] = 'http://xotel.co/game/gamedata/furnidata_xml_english.xml'; //URL to your furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://xotel.co/game/gordon/SWFS'; //URL to your SWF folder
what do i do wuth them again as i know they work cause i checked the link
 

RyanzRetros

Developer of ChakCMS
Jan 14, 2015
978
182
ok i done most of that cinfused on 1 of them the
PHP:
$_CONFIG['hotel']['external_vars'] = 'http://xotel.co/game/gamedata/external_variables.txt'; //URL to your external vars
$_CONFIG['hotel']['external_texts'] = 'http://xotel.co/game/gamedata/external_flash_texts_en.txt'; //URL to your external texts
$_CONFIG['hotel']['product_data'] = 'http://xotel.co/game/gamedata/productdata.txt'; //URL to your productdata
$_CONFIG['hotel']['furni_data'] = 'http://xotel.co/game/gamedata/furnidata_xml_english.xml'; //URL to your furnidata
$_CONFIG['hotel']['swf_folder'] = 'http://xotel.co/game/gordon/SWFS'; //URL to your SWF folder
what do i do wuth them again as i know they work cause i checked the link
Oh, ok, I was saying to double click the links and check they work.
 

Users who are viewing this thread

Top