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 Releases
CMS Releases
[Release] Jays UberCMS Edit
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="HotelHoster" data-source="post: 252769" data-attributes="member: 37666"><p>Sure just replace all of generic-top.tpl with the code below if you have this problem <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p><p></p><p>[CODE]<?php</p><p>$getSettings = dbquery("SELECT * FROM users WHERE username = '" . USER_NAME . "'");</p><p>$userAccount = mysql_fetch_assoc($getSettings);</p><p>?></p><p><body id="%body_id%" class="<?php if (!LOGGED_IN) { echo 'anonymous'; } ?> "></p><p><link rel="stylesheet" href="%www%/css/top.css" type="text/css" /></p><p><div id="top"> </p><p><p class="alignleft"><b>Welcome Back %habboName% | <img src="/images/test/new_04.png"/> <?php echo number_format($userAccount["credits"]); ?> Credits | <img src="/images/test/cat_1.png"/><?php echo number_format($userAccount["activity_points"]); ?> Points |</p><p><p class="alignright"> Logged in as <b>%habboName%</b> | <a href="/client" target="uberClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter Hotel</b><i></i></a></p><p><div style="clear: both;"></div></div> </p><p><div id="overlay"></div></p><p><div id="header-container"></p><p> <div id="header" class="clearfix"></p><p> <h1><a href="%www%"></a></h1></p><p> <div id="subnavi" class=wide></p><p> <div id="subnavi-search"></p><p> <div id="subnavi-search-upper"></p><p> <ul id="subnavi-search-links"></p><p><li></p><p></li></p><p> </ul></p><p> </div></p><p> </div></p><p> <div id="to-hotel"> </p><p> <?php if ($users->HasFuse(USER_ID, 'fuse_housekeeping_login')) { ?></p><p> <a href="/allseeingeye/index.php?_cmd=login" class="new-button red-button" style="margin-top: -65px;"><b>Housekeeping</b><i></i></a></p><p> <?php ?></p><p> </div> </p><p> </div></p><p> <script type="text/javascript"></p><p> L10N.put("purchase.group.title", "Create a group");</p><p> document.observe("dom:loaded", function() {</p><p> $("signout").observe("click", function() {</p><p> HabboClient.close();</p><p> });</p><p> });</p><p> </script></p><p> <?php } else { ?></p><p> </p><p> <form action="%www%/account/submit" method="post" id="login-form"></p><p> <input type="hidden" name="page" value="%www%<?php echo $_SERVER['PHP_SELF']; ?>" /></p><p> <ul></p><p> <li></p><p> <input type="submit" id="login-submit-button" value="Sign in" class="submit"/></p><p> </li></p><p> </ul></p><p> </form></p><p> <div id="subnavi-login-help" class=""></p><p> </p><p> </div></p><p><div id="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 'remember me' you will stay signed in on this computer until you click 'Sign Out'. If this is a public computer please do not use this feature.</p><p> </div></p><p> <div class="bottom-bubble-b"><div></div></div></p><p></div></p><p> </div></p><p> </div></p><p> <script type="text/javascript"></p><p> LoginFormUI.init();</p><p> RememberMeUI.init("right");</p><p> </script></p><p> <?php } ?></p><p> </p><p><ul id="navi"></p><p><?php</p><p></p><p>$data = dbquery("SELECT id,caption,class,url,visibility FROM site_navi WHERE parent_id = '0' ORDER BY order_id ASC");</p><p></p><p>while ($link = mysql_fetch_assoc($data))</p><p>{</p><p> $allowDisplay = true;</p><p> </p><p> switch ($link['visibility'])</p><p> {</p><p> default:</p><p> case 0:</p><p> </p><p> $allowDisplay = false;</p><p> break;</p><p> </p><p> case 1:</p><p> </p><p> break;</p><p> </p><p> case 2:</p><p> </p><p> if (!LOGGED_IN)</p><p> {</p><p> $allowDisplay = false; </p><p> }</p><p> </p><p> break;</p><p> </p><p> case 3:</p><p> </p><p> if (LOGGED_IN)</p><p> {</p><p> $allowDisplay = false;</p><p> }</p><p> </p><p> break;</p><p> }</p><p></p><p> if (!$allowDisplay)</p><p> {</p><p> continue;</p><p> }</p><p></p><p> $class = clean($link['class']);</p><p> $showLink = true;</p><p> </p><p> if (defined('TAB_ID') && TAB_ID == $link['id'])</p><p> {</p><p> $class .= ' selected';</p><p> $showLink = false;</p><p> }</p><p></p><p> echo ' <li ' . (($class == "tab-register-now") ? 'id="tab-register-now"' : '') . ' class="' . $class . '">';</p><p> </p><p> if ($showLink)</p><p> {</p><p> echo '<a href="' . clean($link['url']) . '">';</p><p> }</p><p> else</p><p> {</p><p> echo '<strong>';</p><p> }</p><p> </p><p> echo clean($link['caption']);</p><p> </p><p> if ($showLink)</p><p> {</p><p> echo '</a>';</p><p> }</p><p> else</p><p> {</p><p> echo '</strong>';</p><p> }</p><p> </p><p> echo ' <span></span></p><p> </li>' . LB;</p><p>}</p><p></p><p>?></p><p></ul></p><p></p><p> <div id="habbos-online"><div class="rounded"><span>%hotel_status%</span></div></div></p><p> </p><p> </div></p><p></div></p><p></p><p></p><p><div id="content-container"></p><p></p><p><?php if (LOGGED_IN || defined('TAB_ID')) { ?></p><p><div id="navi2-container" class="pngbg"></p><p> <div id="navi2" class="pngbg clearfix"></p><p> <ul></p><p> <?php</p><p> </p><p> $i = 0;</p><p> $lookupParent = '1';</p><p> </p><p> if (defined('TAB_ID'))</p><p> {</p><p> $lookupParent = TAB_ID;</p><p> }</p><p> </p><p> $getSub = dbquery("SELECT id,caption,url,visibility FROM site_navi WHERE parent_id = '" . $lookupParent . "' ORDER BY order_id ASC");</p><p> </p><p> while ($subLink = mysql_fetch_assoc($getSub))</p><p> {</p><p> $allowDisplay = true;</p><p></p><p> switch ($subLink['visibility'])</p><p> {</p><p> default:</p><p> case 0:</p><p> </p><p> $allowDisplay = false;</p><p> break;</p><p> </p><p> case 1:</p><p> </p><p> break;</p><p> </p><p> case 2:</p><p> </p><p> if (!LOGGED_IN)</p><p> {</p><p> $allowDisplay = false; </p><p> }</p><p> </p><p> break;</p><p> </p><p> case 3:</p><p> </p><p> if (LOGGED_IN)</p><p> {</p><p> $allowDisplay = false;</p><p> }</p><p> </p><p> break;</p><p> }</p><p> </p><p> $i++;</p><p> </p><p> if (!$allowDisplay)</p><p> {</p><p> continue;</p><p> }</p><p> </p><p> $class = '';</p><p> $showLink = true;</p><p> </p><p> if (defined('PAGE_ID') && PAGE_ID == $subLink['id'])</p><p> {</p><p> $class .= ' selected';</p><p> $showLink = false;</p><p> }</p><p> </p><p> if ($i == mysql_num_rows($getSub))</p><p> {</p><p> $class .= ' last';</p><p> }</p><p> </p><p> echo '<li class="' . $class . '">';</p><p> if ($showLink) echo '<a href="' . clean($subLink['url']) . '">';</p><p> echo clean($subLink['caption']);</p><p> if ($showLink) echo '</a>';</p><p> echo '</li>';</p><p> }</p><p> </p><p> ?></p><p> </ul></p><p> </div></p><p></div></p><p><?php } ?></p><p></p><p><div id="container"></p><p><div id="content" style="position: relative" class="clearfix">[/CODE]</p></blockquote><p></p>
[QUOTE="HotelHoster, post: 252769, member: 37666"] Sure just replace all of generic-top.tpl with the code below if you have this problem :) [CODE]<?php $getSettings = dbquery("SELECT * FROM users WHERE username = '" . USER_NAME . "'"); $userAccount = mysql_fetch_assoc($getSettings); ?> <body id="%body_id%" class="<?php if (!LOGGED_IN) { echo 'anonymous'; } ?> "> <link rel="stylesheet" href="%www%/css/top.css" type="text/css" /> <div id="top"> <p class="alignleft"><b>Welcome Back %habboName% | <img src="/images/test/new_04.png"/> <?php echo number_format($userAccount["credits"]); ?> Credits | <img src="/images/test/cat_1.png"/><?php echo number_format($userAccount["activity_points"]); ?> Points | <p class="alignright"> Logged in as <b>%habboName%</b> | <a href="/client" target="uberClientWnd" onclick="HabboClient.openOrFocus(this); return false;"><b>Enter Hotel</b><i></i></a> <div style="clear: both;"></div></div> <div id="overlay"></div> <div id="header-container"> <div id="header" class="clearfix"> <h1><a href="%www%"></a></h1> <div id="subnavi" class=wide> <div id="subnavi-search"> <div id="subnavi-search-upper"> <ul id="subnavi-search-links"> <li> </li> </ul> </div> </div> <div id="to-hotel"> <?php if ($users->HasFuse(USER_ID, 'fuse_housekeeping_login')) { ?> <a href="/allseeingeye/index.php?_cmd=login" class="new-button red-button" style="margin-top: -65px;"><b>Housekeeping</b><i></i></a> <?php ?> </div> </div> <script type="text/javascript"> L10N.put("purchase.group.title", "Create a group"); document.observe("dom:loaded", function() { $("signout").observe("click", function() { HabboClient.close(); }); }); </script> <?php } else { ?> <form action="%www%/account/submit" method="post" id="login-form"> <input type="hidden" name="page" value="%www%<?php echo $_SERVER['PHP_SELF']; ?>" /> <ul> <li> <input type="submit" id="login-submit-button" value="Sign in" class="submit"/> </li> </ul> </form> <div id="subnavi-login-help" class=""> </div> <div id="remember-me-notification" class="bottom-bubble" style="display:none;"> <div class="bottom-bubble-t"><div></div></div> <div class="bottom-bubble-c"> By selecting 'remember me' you will stay signed in on this computer until you click 'Sign Out'. If this is a public computer please do not use this feature. </div> <div class="bottom-bubble-b"><div></div></div> </div> </div> </div> <script type="text/javascript"> LoginFormUI.init(); RememberMeUI.init("right"); </script> <?php } ?> <ul id="navi"> <?php $data = dbquery("SELECT id,caption,class,url,visibility FROM site_navi WHERE parent_id = '0' ORDER BY order_id ASC"); while ($link = mysql_fetch_assoc($data)) { $allowDisplay = true; switch ($link['visibility']) { default: case 0: $allowDisplay = false; break; case 1: break; case 2: if (!LOGGED_IN) { $allowDisplay = false; } break; case 3: if (LOGGED_IN) { $allowDisplay = false; } break; } if (!$allowDisplay) { continue; } $class = clean($link['class']); $showLink = true; if (defined('TAB_ID') && TAB_ID == $link['id']) { $class .= ' selected'; $showLink = false; } echo ' <li ' . (($class == "tab-register-now") ? 'id="tab-register-now"' : '') . ' class="' . $class . '">'; if ($showLink) { echo '<a href="' . clean($link['url']) . '">'; } else { echo '<strong>'; } echo clean($link['caption']); if ($showLink) { echo '</a>'; } else { echo '</strong>'; } echo ' <span></span> </li>' . LB; } ?> </ul> <div id="habbos-online"><div class="rounded"><span>%hotel_status%</span></div></div> </div> </div> <div id="content-container"> <?php if (LOGGED_IN || defined('TAB_ID')) { ?> <div id="navi2-container" class="pngbg"> <div id="navi2" class="pngbg clearfix"> <ul> <?php $i = 0; $lookupParent = '1'; if (defined('TAB_ID')) { $lookupParent = TAB_ID; } $getSub = dbquery("SELECT id,caption,url,visibility FROM site_navi WHERE parent_id = '" . $lookupParent . "' ORDER BY order_id ASC"); while ($subLink = mysql_fetch_assoc($getSub)) { $allowDisplay = true; switch ($subLink['visibility']) { default: case 0: $allowDisplay = false; break; case 1: break; case 2: if (!LOGGED_IN) { $allowDisplay = false; } break; case 3: if (LOGGED_IN) { $allowDisplay = false; } break; } $i++; if (!$allowDisplay) { continue; } $class = ''; $showLink = true; if (defined('PAGE_ID') && PAGE_ID == $subLink['id']) { $class .= ' selected'; $showLink = false; } if ($i == mysql_num_rows($getSub)) { $class .= ' last'; } echo '<li class="' . $class . '">'; if ($showLink) echo '<a href="' . clean($subLink['url']) . '">'; echo clean($subLink['caption']); if ($showLink) echo '</a>'; echo '</li>'; } ?> </ul> </div> </div> <?php } ?> <div id="container"> <div id="content" style="position: relative" class="clearfix">[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Release] Jays UberCMS Edit
Top