I got a problem with my UberCMS server

zgamer

New Member
Feb 15, 2012
2
0
Hello All!

As my title say "i got a problem with my ubercms". Every time im trying to find the website its look like this.

here is a link to my problem:

thanks in advance
 

Alam

shietttt
Jul 3, 2011
433
166
Your webbuild is outdated you can edit it on your class.tlp file, I am not sure which is the lastest web build for uber but i am sure you can google it.
 

zgamer

New Member
Feb 15, 2012
2
0
Its still not working...

This is my class.tpl.php code:

class uberTpl
{
private $outputData;
private $params = Array();
private $includeFiles = Array();

public function Init()
{
global $core, $users;

$this->SetParam('', 'Holo');
$this->SetParam('body_id', '');
$this->SetParam('page_title', ' ');
$this->SetParam('flash_build', 'flash_50_9');
$this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/862');
$this->SetParam('web_build_str', '50-BUILD66 - 06.05.2010 22:28 - Novic');
$this->SetParam('req_path', WWW);
$this->SetParam('www', WWW);
$this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
$this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));

if (LOGGED_IN)
{
$this->SetParam('habboLoggedIn', 'true');
$this->SetParam('habboName', USER_NAME);
$this->SetParam('vipbalance', '<b>' . $users->GetUserVar(USER_ID, 'vip_points') . ' <img src="' . WWW . '/images/vipcoin.gif" style="vertical-align: middle;"></b>');
}
else
{
$this->SetParam('habboLoggedIn', 'false');
$this->SetParam('habboName', 'null');

There is much more, but i thing this is the important things in class.tpl.php.
 

Smooth Hotel

Member
Jan 21, 2012
55
2
Your webbuild is outdated you can edit it on your class.tlp file , i am not sure which is the lastest web build for uber but i am sure you can google it.
Doesn't the Habbo webbuild will work for UberCMS?

Hello All!

As my title say "i got a problem with my ubercms". Every time im trying to find the website its look like this.

here is a link to my problem:

thanksin advance
Outdated webbuild. Update, or try this one:
63_1dc60c6d6ea6e089c6893ab4e0541ee0/862
 

HIGHEST

Member
Mar 25, 2012
71
3
Still not working on mine too,

<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

class uberTpl
{
private $outputData;
private $params = Array();
private $includeFiles = Array();

public function Init()
{
global $core, $users, $cdn;

$this->cdn = $cdn->AssignCDN();
$this->SetParam('cdn', $this->cdn);

$this->SetParam('hotel', 'web_build');
$this->SetParam('web_build', '63_1dc60c6d6ea6e089c6893ab4e0541ee0/1194');

// *************************************************************************************************
$this->SetParam('body_id', '');
$this->SetParam('page_title', ' ');
$this->SetParam('flash_build', '');
$this->SetParam('web_build_str', '');
$this->SetParam('req_path', WWW);
$this->SetParam('www', WWW);
$this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
$this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));

if (LOGGED_IN)
{
$this->SetParam('habboLoggedIn', 'true');
$this->SetParam('habboName', USER_NAME);
$this->SetParam('vipbalance', '<b>' . $users->GetUserVar(USER_ID, 'vip_points') . ' <img src="' . WWW . '/images/vipcoin.gif" style="vertical-align: middle;"></b>');
}
else
{
$this->SetParam('habboLoggedIn', 'false');
$this->SetParam('habboName', 'null');
}
}

public function AddIncludeSet($set)
{
switch (strtolower($set))
{
case "frontpage":

$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs2.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/landing.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/frontpage.css', 'stylesheet'));
break;

case "register":

$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/visual.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/common.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/style.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/buttons.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/boxes.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/tooltips.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/embeddedregistration.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/simpleregistration.js'));
break;

case "homes":

$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/common.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs2.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/visual.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/common.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/fullcontent.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/home.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', ' ', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', ' ', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', ' ', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/homeview.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/lightwindow.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/homeauth.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/static/styles/group.css', 'stylesheet'));

break;

case "process-template":

$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs2.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/visual.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/common.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/fullcontent.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/style.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/buttons.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/boxes.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/tooltips.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/process.css', 'stylesheet'));
break;

case 'myhabbo':

$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs2.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/visual.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/common.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/fullcontent.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/style.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/buttons.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/boxes.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/tooltips.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/myhabbo.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/skins.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/dialogs.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/buttons.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/control.textarea.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo/boxes.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/myhabbo.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/myhabbo/styles/assets.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/homeview.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/lightwindow.css', 'stylesheet'));
break;

case 'default':
default:

$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs2.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/visual.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/libs.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/common.js'));
$this->AddIncludeFile(new IncludeFile('text/javascript', '%web_gallery%/static/js/fullcontent.js'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/style.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/buttons.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/boxes.css', 'stylesheet'));
$this->AddIncludeFile(new IncludeFile('text/css', '%web_gallery%/styles/tooltips.css', 'stylesheet'));
break;
}
}

public function AddGeneric($tplName)
{
$tpl = new Template($tplName);
$this->outputData .= $tpl->GetHtml();
}

public function AddTemplate($tpl)
{
$this->outputData .= $tpl->GetHtml();
}

public function SetParam($param, $value)
{
$this->params[$param] = is_object($value) ? $value->fetch() : $value;
}

public function UnsetParam($param)
{
unset($this->params[$param]);
}

public function AddIncludeFile($incFile)
{
$this->includeFiles[] = $incFile;
}

public function WriteIncludeFiles()
{
foreach ($this->includeFiles as $f)
{
$this->Write($f->GetHtml() . LB);
}
}

public function Write($str)
{
$this->outputData .= $str;
}

public function FilterParams($str)
{
foreach ($this->params as $param => $value)
{
$str = str_ireplace('%' . $param . '%', $value, $str);
}

return $str;
}

public function Output()
{
global $core;

$this->Write(LB . LB . LB . LB);

echo $this->FilterParams($this->outputData);
}
}

class Template
{
private $params = Array();
private $tplName = '';

public function Template($tplName)
{
$this->tplName = $tplName;
}

public function GetHtml()
{
global $users;

extract($this->params);

$file = CWD . 'includes/tpl/' . $this->tplName . '.tpl';

if (!file_exists($file))
{
uberCore::SystemError('Template system error', 'Could not load template: ' . $this->tplName);
}

ob_start();
include($file);
$data = ob_get_contents();
ob_end_clean();

return $this->FilterParams($data);
}

public function FilterParams($str)
{
foreach ($this->params as $param => $value)
{
if (is_object($value))
{
continue;
}

$str = str_ireplace('%' . $param . '%', $value, $str);
}

return $str;
}

public function SetParam($param, $value)
{
$this->params[$param] = $value;
}

public function UnsetParam($param)
{
unset($this->params[$param]);
}
}

class IncludeFile
{
private $type;
private $src;
private $rel;
private $name;

public function IncludeFile($type, $src, $rel = '', $name = '')
{
global $tpl;

$this->type = $type;
$this->src = $src;
$this->rel = $rel;
$this->name = $name;
}

public function GetHtml()
{
switch ($this->type)
{
case 'application/rss+xml':

return '<link rel="' . $this->rel . '" type="' . $this->type . '" title="' . $this->name . '" href="' . $this->src . '" />';

case 'text/javascript':

return '<script src="' . $this->src . '" type="text/javascript"></script>';

case 'text/css':
default:

return '<link rel="' . $this->rel . '" href="' . $this->src . '" type="' . $this->type . '" />';
}
}
}

?>
 

AyJay

Member
Sep 12, 2010
239
8
Latest Web-build : 63_1dc60c6d6ea6e089c6893ab4e0541ee0/1201/
How to change your web-build :


Make sure you go through this, with every step.
 

Users who are viewing this thread

Top