Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Ubercms Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Joh" data-source="post: 22090" data-attributes="member: 2199"><p>replace your class.tpl with this:</p><p>[CODE]<?php</p><p>/*=======================================================================</p><p>| UberCMS - Advanced Website and Content Management System for uberEmu</p><p>| #######################################################################</p><p>| Copyright (c) 2010, Roy 'Meth0d'</p><p>| http://www.meth0d.org</p><p>| #######################################################################</p><p>| This program is free software: you can redistribute it and/or modify</p><p>| it under the terms of the GNU General Public License as published by</p><p>| the Free Software Foundation, either version 3 of the License, or</p><p>| (at your option) any later version.</p><p>| #######################################################################</p><p>| This program is distributed in the hope that it will be useful,</p><p>| but WITHOUT ANY WARRANTY; without even the implied warranty of</p><p>| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</p><p>| GNU General Public License for more details.</p><p>\======================================================================*/</p><p></p><p>class uberTpl</p><p>{</p><p> private $outputData;</p><p> private $params = Array();</p><p> private $includeFiles = Array();</p><p> </p><p> public function Init()</p><p> {</p><p> global $core, $users;</p><p> </p><p> $this->SetParam('', 'Uber');</p><p> $this->SetParam('body_id', '');</p><p> $this->SetParam('page_title', ' ');</p><p> $this->SetParam('flash_build', 'flash_51_45');</p><p> $this->SetParam('web_build', '58_740cdda5150f14b5e2e3cf44ef1f496f/12');</p><p> $this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk');</p><p> $this->SetParam('req_path', WWW);</p><p> $this->SetParam('www', WWW);</p><p> $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));</p><p> $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));</p><p> </p><p> if (LOGGED_IN)</p><p> {</p><p> $this->SetParam('habboLoggedIn', 'true');</p><p> $this->SetParam('habboName', USER_NAME);</p><p> $this->SetParam('vipbalance', '<b>' . $users->GetUserVar(USER_ID, 'vip_points') . ' <img src="' . WWW . '/images/vipcoin.gif" style="vertical-align: middle;"></b>');</p><p> }</p><p> else</p><p> {</p><p> $this->SetParam('habboLoggedIn', 'false');</p><p> $this->SetParam('habboName', 'null');</p><p> }</p><p> }</p><p> </p><p> public function AddIncludeSet($set)</p><p> {</p><p> switch (strtolower($set))</p><p> {</p><p> case "frontpage":</p><p> </p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http:///wiredhotel.org/libs2.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://wiredhotel.org/landing.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://wiredhotel.org/frontpage.css', 'stylesheet')); </p><p> break;</p><p> </p><p> case "register":</p><p></p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/embeddedregistration.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/simpleregistration.js'));</p><p> break;</p><p> </p><p> case "process-template":</p><p> </p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/process.css', 'stylesheet')); </p><p> break;</p><p> </p><p> case 'myhabbo':</p><p> </p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/myhabbo.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/skins.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/dialogs.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/buttons.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/boxes.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/myhabbo.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://www.habbo.co.uk/myhabbo/styles/assets.css', 'stylesheet'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/homeview.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/lightwindow.css', 'stylesheet'));</p><p> break;</p><p> </p><p> case 'default':</p><p> default:</p><p> </p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));</p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); </p><p> $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); </p><p> break;</p><p> }</p><p> }</p><p> </p><p> public function AddGeneric($tplName)</p><p> {</p><p> $tpl = new Template($tplName);</p><p> $this->outputData .= $tpl->GetHtml();</p><p> }</p><p> </p><p> public function AddTemplate($tpl)</p><p> {</p><p> $this->outputData .= $tpl->GetHtml();</p><p> }</p><p> </p><p> public function SetParam($param, $value)</p><p> {</p><p> $this->params[$param] = is_object($value) ? $value->fetch() : $value;</p><p> }</p><p> </p><p> public function UnsetParam($param)</p><p> {</p><p> unset($this->params[$param]);</p><p> }</p><p> </p><p> public function AddIncludeFile($incFile)</p><p> {</p><p> $this->includeFiles[] = $incFile;</p><p> }</p><p> </p><p> public function WriteIncludeFiles()</p><p> {</p><p> foreach ($this->includeFiles as $f)</p><p> {</p><p> $this->Write($f->GetHtml() . LB);</p><p> }</p><p> }</p><p> </p><p> public function Write($str)</p><p> {</p><p> $this->outputData .= $str;</p><p> }</p><p> </p><p> public function FilterParams($str)</p><p> {</p><p> foreach ($this->params as $param => $value)</p><p> {</p><p> $str = str_ireplace('%' . $param . '%', $value, $str);</p><p> }</p><p> </p><p> return $str;</p><p> }</p><p> </p><p> public function Output()</p><p> {</p><p> global $core;</p><p> </p><p> $this->Write(LB . LB . '<!-- uberCMS: Took ' . (microtime(true) - $core->execStart) . ' to output this page -->' . LB . LB);</p><p> </p><p> echo $this->FilterParams($this->outputData);</p><p> }</p><p>}</p><p></p><p>class Template</p><p>{</p><p> private $params = Array();</p><p> private $tplName = '';</p><p> </p><p> public function Template($tplName)</p><p> {</p><p> $this->tplName = $tplName;</p><p> }</p><p> </p><p> public function GetHtml()</p><p> {</p><p> global $users;</p><p> </p><p> extract($this->params);</p><p> </p><p> $file = CWD . 'inc/tpl/' . $this->tplName . '.tpl';</p><p> </p><p> if (!file_exists($file))</p><p> {</p><p> uberCore::SystemError('Template system error', 'Could not load template: ' . $this->tplName);</p><p> }</p><p> </p><p> ob_start();</p><p> include($file);</p><p> $data = ob_get_contents();</p><p> ob_end_clean(); </p><p> </p><p> return $this->FilterParams($data);</p><p> }</p><p> </p><p> public function FilterParams($str)</p><p> {</p><p> foreach ($this->params as $param => $value)</p><p> {</p><p> if (is_object($value))</p><p> {</p><p> continue;</p><p> }</p><p> </p><p> $str = str_ireplace('%' . $param . '%', $value, $str);</p><p> }</p><p> </p><p> return $str;</p><p> }</p><p> </p><p> public function SetParam($param, $value)</p><p> {</p><p> $this->params[$param] = $value;</p><p> }</p><p> </p><p> public function UnsetParam($param)</p><p> {</p><p> unset($this->params[$param]);</p><p> } </p><p>}</p><p></p><p>class IncludeFile</p><p>{</p><p> private $type;</p><p> private $src;</p><p> private $rel;</p><p> private $name;</p><p></p><p> public function IncludeFile($type, $src, $rel = '', $name = '')</p><p> {</p><p> global $tpl;</p><p> </p><p> $this->type = $type;</p><p> $this->src = $src;</p><p> $this->rel = $rel;</p><p> $this->name = $name;</p><p> }</p><p> </p><p> public function GetHtml()</p><p> {</p><p> switch ($this->type)</p><p> {</p><p> case 'application/rss+xml':</p><p> </p><p> return '<link rel="' . $this->rel . '" type="' . $this->type . '" title="' . $this->name . '" href="' . $this->src . '" />';</p><p> </p><p> case 'text/javascript':</p><p> </p><p> return '<script src="' . $this->src . '" type="text/javascript"></script>';</p><p> </p><p> case 'text/css':</p><p> default:</p><p> </p><p> return '<link rel="' . $this->rel . '" href="' . $this->src . '" type="' . $this->type . '" />';</p><p> }</p><p> }</p><p>}</p><p></p><p>?></p><p>[/CODE]</p><p></p><p>And replace your page-fp with this:</p><p>[CODE]<head> </p><p></p><p><script type="text/javascript"> </p><p>var andSoItBegins = (new Date()).getTime();</p><p></script> </p><p> <link rel="shortcut icon" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" /> </p><p> <link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="http://www.habbo.com/articles/rss.xml" /> </p><p> </p><p><script src="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/static/js/libs2.js" type="text/javascript"></script> </p><p><script src="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/static/js/landing.js" type="text/javascript"></script> </p><p><link rel="stylesheet" href="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/v2/styles/frontpage.css" type="text/css" /> </p><p><link rel="stylesheet" href="http://habbo.com/styles/local/com.css" type="text/css" /> </p><p> </p><p><script src="/js/local/com.js" type="text/javascript"></script> </p><p> </p><p><script type="text/javascript"> </p><p>var ad_keywords = "";</p><p>var ad_key_value = "";</p><p></script> </p><p><script type="text/javascript"> </p><p>document.habboLoggedIn = false;</p><p>var habboName = null;</p><p>var habboId = null;</p><p>var habboReqPath = "";</p><p>var habboStaticFilePath = "http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery";</p><p>var habboImagerUrl = "http://habbo.com/habbo-imaging/";</p><p>var habboPartner = "";</p><p>var habboDefaultClientPopupUrl = "http://www.habbo.com/client";</p><p>window.name = "habboMain";</p><p>if (typeof HabboClient != "undefined") { HabboClient.windowName = "40bfeb4dfae6c55c3a8e93c381eb8378ab4c89ca"; }</p><p> </p><p> </p><p></script> </p><p> </p><p><meta property="fb:app_id" content="183096284873" /> </p><p> </p><p><style type="text/css"> </p><p>body {</p><p> background-color: #000000;</p><p> </p><p>}</p><p>#footer .footer-links { color: #666666; }</p><p>#footer .footer-links a { color: #b3b3b3; }</p><p>#footer .copyright { color: #727272; } </p><p></style> </p><p> </p><p><meta name="description" content="Check into the world’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" /> </p><p><meta name="keywords" content="Habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" /> </p><p> </p><p> </p><p> </p><p><!--[if IE 8]></p><p><link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie8.css" type="text/css" /></p><p><![endif]--> </p><p><!--[if lt IE 8]></p><p><link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie.css" type="text/css" /></p><p><![endif]--> </p><p><!--[if lt IE 7]></p><p><link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie6.css" type="text/css" /></p><p><script src="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/static/js/pngfix.js" type="text/javascript"></script></p><p><script type="text/javascript"></p><p>try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</p><p></script></p><p> </p><p><style type="text/css"></p><p>body { behavior: url(/js/csshover.htc); }</p><p></style></p><p><![endif]--> </p><p><meta name="build" content="57-BUILD30 - 24.08.2010 14:54 - com" /> </p><p></head> </p><p> </p><p><head> </p><p> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> </p><p></head> </p><p> </p><p><body id="frontpage"> </p><p> </p><p><div id="overlay"></div> </p><p> </p><p><div id="site-header"> </p><p> </p><p> </p><p> <form id="loginformitem" name="loginformitem" action="%www%/account/submit" method="post"> </p><p> </p><p> </p><p> <div style="clear: both;"></div> </p><p> </p><p> <div id="site-header-content"> </p><p> </p><p> <div id="habbo-logo"></div> </p><p> </p><p> <div id="login-form"> </p><p> </p><p> </p><p> <div id="login-form-email"> </p><p> <label for="login-username" class="login-text">Username</label> </p><p> <input tabindex="3" type="text" class="login-field" name="credentials.username" id="login-username" value="" maxlength="48"/> </p><p> <br/> </p><p> <input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me" value="true"/> </p><p> <label for="login-remember-me">Keep me logged in</label> </p><p> </p><p><div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;"> </p><p> <div class="bottom-bubble-t"><div></div></div> </p><p> <div class="bottom-bubble-c"> </p><p> By selecting this you will stay logged in to wired, until you &quot;Sign Out&quot;.</p><p> </div> </p><p> <div class="bottom-bubble-b"><div></div></div> </p><p></div> </p><p> </p><p> </div> </p><p> </p><p> <div id="login-form-password"> </p><p> <label for="login-password" class="login-text">Password</label> </p><p> <input tabindex="4" type="password" class="login-field" name="credentials.password" id="login-password" maxlength="32"/> </p><p> </p><p> <div id="login-forgot-password"> </p><p> <a href="%www%" id="forgot-password"><span>Forgot your password?</span></a> </p><p> </div> </p><p> </div> </p><p> </p><p> <div id="login-form-submit"> </p><p> <input type="submit" value="Login" class="login-top-button" id="login-submit-button"/> </p><p> <a href="#" tabindex="5" id="login-submit-new-button"><span>Login</span></a> </p><p> </div> </p><p> </p><p> </div> </p><p> </p><p> <div id="rpx-login"> </p><p> <li> </p><p><div id="fb-root"></div> </p><p></p><p> <span class="whos-online"><font color="white">%hotel_status%</font>/span> </p><p></a> </p><p> </p><p><script type="text/javascript"> </p><p> function logged_in(response) {</p><p> var redirectUrl = "/facebook?connect=true&partner=FBC";</p><p> if (response.session) {</p><p> window.location.replace(redirectUrl);</p><p> } else if (response.status == 'connected') {</p><p> FB.getLoginStatus(function(response) {</p><p> if (response.session) {</p><p> window.location.replace(redirectUrl);</p><p> }</p><p> }, true);</p><p> }</p><p> }</p><p></script> </li> </p><p> </p><p> <li> </p><p> </p><p> <a class="rpxnow" onclick="return false;" href="#">More ways to login</a> </p><p></div> </li> </p><p> </p><p> </div> </p><p> </p><p> <script type="text/javascript"> </p><p> HabboView.add(function() {fieldFocus('login-username');popdownSetupRun();});</p><p> HabboView.add(function() {LandingPage.init();});</p><p> </script> </p><p> </p><p> </div> </p><p> </p><p> </form> </p><p> </p><p></div> </p><p> </p><p><div id="fp-container"> </p><p> <div id="content"> </p><p> <div id="column1" class="column"> </p><p> </p><p> </p><p> </p><p><script type="text/javascript"> </p><p>HabboView.add(function() {</p><p> var button = $$("#join-now-button")[0];</p><p> var cont = $("geoip-ad-container");</p><p> cont.setStyle({left: button.getStyle("left")});</p><p> var top = parseInt(button.getStyle("top"));</p><p> top += button.getHeight() + 10;</p><p> cont.setStyle({top: top + "px"});</p><p> cont.setStyle({visibility: "visible"});</p><p>});</p><p></script> </p><p> </p><p> </p><p> </p><p> </div> </p><p> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </p><p> </p><p> </p><p> </p><p> <div class="habblet-container "> </p><p> </p><p></p><p></div> </p><p> </p><p><div id="frontpage-image-container"> </p><p> </p><p> </p><p> </p><p> <div id="join-now-button"> </p><p> <a href="/register" onclick="location.href=this.href"> </p><p> <div id="join-now-text-big">Join Wired</div> </p><p> <div id="join-now-text-small">for Free</div> </p><p> </a> </p><p> <span></span> </p><p> </div> </p><p> <a href="https://www.wiredhotel.com/register" id="frontpage-image" style="background-image: url('http://images.habbo.com/c_images/Frontpage_images/hotel_view_low_wired.png')"></a> </p><p></div> </p><p> </p><p> </p><p><div id="tags-main-container"> </p><p> </p><p> </p><p> <div id="tags-container" style="width: 650px;"> </p><p> <div class="roundedrect" id="tag-cloud-slim" > </p><p> <span class="tags-habbos-like">Wired's Like:</span> </p><p> </p><p> <ul class="tag-list"> </p><p> <?php include 'tagcloud.tpl'; ?></li> </p><p> </ul> </p><p> </div> </p><p> </div> </p><p></div></p><p> </p><p> </p><p> </p><p> </p><p></body> </p><p></html> </p><p></p><p>[/CODE]</p><p></p><p>If that doesn't work, post the error here.</p></blockquote><p></p>
[QUOTE="Joh, post: 22090, member: 2199"] replace your class.tpl with this: [CODE]<?php /*======================================================================= | UberCMS - Advanced Website and Content Management System for uberEmu | ####################################################################### | Copyright (c) 2010, Roy 'Meth0d' | http://www.meth0d.org | ####################################################################### | 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; $this->SetParam('', 'Uber'); $this->SetParam('body_id', ''); $this->SetParam('page_title', ' '); $this->SetParam('flash_build', 'flash_51_45'); $this->SetParam('web_build', '58_740cdda5150f14b5e2e3cf44ef1f496f/12'); $this->SetParam('web_build_str', '51-BUILD45 - 18.05.2010 16:16 - uk'); $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', 'http:///wiredhotel.org/libs2.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://wiredhotel.org/landing.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://wiredhotel.org/frontpage.css', 'stylesheet')); break; case "register": $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/embeddedregistration.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/simpleregistration.js')); break; case "process-template": $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/process.css', 'stylesheet')); break; case 'myhabbo': $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/myhabbo.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/skins.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/dialogs.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/buttons.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/boxes.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/myhabbo.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://www.habbo.co.uk/myhabbo/styles/assets.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/homeview.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/lightwindow.css', 'stylesheet')); break; case 'default': default: $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js')); $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css', 'stylesheet')); $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/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 . '<!-- uberCMS: Took ' . (microtime(true) - $core->execStart) . ' to output this page -->' . 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 . 'inc/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 . '" />'; } } } ?> [/CODE] And replace your page-fp with this: [CODE]<head> <script type="text/javascript"> var andSoItBegins = (new Date()).getTime(); </script> <link rel="shortcut icon" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon" /> <link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="http://www.habbo.com/articles/rss.xml" /> <script src="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/static/js/libs2.js" type="text/javascript"></script> <script src="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/static/js/landing.js" type="text/javascript"></script> <link rel="stylesheet" href="http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery/v2/styles/frontpage.css" type="text/css" /> <link rel="stylesheet" href="http://habbo.com/styles/local/com.css" type="text/css" /> <script src="/js/local/com.js" type="text/javascript"></script> <script type="text/javascript"> var ad_keywords = ""; var ad_key_value = ""; </script> <script type="text/javascript"> document.habboLoggedIn = false; var habboName = null; var habboId = null; var habboReqPath = ""; var habboStaticFilePath = "http://images.habbo.com/habboweb/61_c0f99b7b02ed27ad5d4d5661fe02784f/14/web-gallery"; var habboImagerUrl = "http://habbo.com/habbo-imaging/"; var habboPartner = ""; var habboDefaultClientPopupUrl = "http://www.habbo.com/client"; window.name = "habboMain"; if (typeof HabboClient != "undefined") { HabboClient.windowName = "40bfeb4dfae6c55c3a8e93c381eb8378ab4c89ca"; } </script> <meta property="fb:app_id" content="183096284873" /> <style type="text/css"> body { background-color: #000000; } #footer .footer-links { color: #666666; } #footer .footer-links a { color: #b3b3b3; } #footer .copyright { color: #727272; } </style> <meta name="description" content="Check into the world’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" /> <meta name="keywords" content="Habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" /> <!--[if IE 8]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie8.css" type="text/css" /> <![endif]--> <!--[if lt IE 8]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie.css" type="text/css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/v2/styles/ie6.css" type="text/css" /> <script src="http://images.habbo.com/habboweb/57_2e3408bf59a2a5d170796f9ed32eb6fe/4/web-gallery/static/js/pngfix.js" type="text/javascript"></script> <script type="text/javascript"> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {} </script> <style type="text/css"> body { behavior: url(/js/csshover.htc); } </style> <![endif]--> <meta name="build" content="57-BUILD30 - 24.08.2010 14:54 - com" /> </head> <head> <script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> </head> <body id="frontpage"> <div id="overlay"></div> <div id="site-header"> <form id="loginformitem" name="loginformitem" action="%www%/account/submit" method="post"> <div style="clear: both;"></div> <div id="site-header-content"> <div id="habbo-logo"></div> <div id="login-form"> <div id="login-form-email"> <label for="login-username" class="login-text">Username</label> <input tabindex="3" type="text" class="login-field" name="credentials.username" id="login-username" value="" maxlength="48"/> <br/> <input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me" value="true"/> <label for="login-remember-me">Keep me logged in</label> <div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;"> <div class="bottom-bubble-t"><div></div></div> <div class="bottom-bubble-c"> By selecting this you will stay logged in to wired, until you "Sign Out". </div> <div class="bottom-bubble-b"><div></div></div> </div> </div> <div id="login-form-password"> <label for="login-password" class="login-text">Password</label> <input tabindex="4" type="password" class="login-field" name="credentials.password" id="login-password" maxlength="32"/> <div id="login-forgot-password"> <a href="%www%" id="forgot-password"><span>Forgot your password?</span></a> </div> </div> <div id="login-form-submit"> <input type="submit" value="Login" class="login-top-button" id="login-submit-button"/> <a href="#" tabindex="5" id="login-submit-new-button"><span>Login</span></a> </div> </div> <div id="rpx-login"> <li> <div id="fb-root"></div> <span class="whos-online"><font color="white">%hotel_status%</font>/span> </a> <script type="text/javascript"> function logged_in(response) { var redirectUrl = "/facebook?connect=true&partner=FBC"; if (response.session) { window.location.replace(redirectUrl); } else if (response.status == 'connected') { FB.getLoginStatus(function(response) { if (response.session) { window.location.replace(redirectUrl); } }, true); } } </script> </li> <li> <a class="rpxnow" onclick="return false;" href="#">More ways to login</a> </div> </li> </div> <script type="text/javascript"> HabboView.add(function() {fieldFocus('login-username');popdownSetupRun();}); HabboView.add(function() {LandingPage.init();}); </script> </div> </form> </div> <div id="fp-container"> <div id="content"> <div id="column1" class="column"> <script type="text/javascript"> HabboView.add(function() { var button = $$("#join-now-button")[0]; var cont = $("geoip-ad-container"); cont.setStyle({left: button.getStyle("left")}); var top = parseInt(button.getStyle("top")); top += button.getHeight() + 10; cont.setStyle({top: top + "px"}); cont.setStyle({visibility: "visible"}); }); </script> </div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> <div class="habblet-container "> </div> <div id="frontpage-image-container"> <div id="join-now-button"> <a href="/register" onclick="location.href=this.href"> <div id="join-now-text-big">Join Wired</div> <div id="join-now-text-small">for Free</div> </a> <span></span> </div> <a href="https://www.wiredhotel.com/register" id="frontpage-image" style="background-image: url('http://images.habbo.com/c_images/Frontpage_images/hotel_view_low_wired.png')"></a> </div> <div id="tags-main-container"> <div id="tags-container" style="width: 650px;"> <div class="roundedrect" id="tag-cloud-slim" > <span class="tags-habbos-like">Wired's Like:</span> <ul class="tag-list"> <?php include 'tagcloud.tpl'; ?></li> </ul> </div> </div> </div> </body> </html> [/CODE] If that doesn't work, post the error here. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Ubercms Help
Top