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
User count wont update on client
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="Queso" data-source="post: 426797" data-attributes="member: 72618"><p>#1, you shouldn't steal my code which is displayed on a hotel I used to work at. [USER=77357]@Zachariah[/USER] </p><p>ON-TOPIC: The reason why it isn't working because you more than likely do not have the correct JavaScript function which is used to refresh it.</p><p>I'll be generous and give you the actual code used.</p><p>[CODE]<div id="topbar"></p><p><div class="right"></p><p><div id="RefreshBar"></p><p><div id="TheStats"></p><p><div id="ActualStats"></p><p><div class="playerbox" style="z-index:99999999;position:fixed;left: 5px;top: -2px;width: 105px; height: 215px; background-repeat: no-repeat; background-position: right 40px center;</p><p> <div id=" radioPlayer"></p><p><div id="playerdiv"></p><p><div id="refreshradio"></p><p>Welcome (back) <b><?php echo $_SESSION['user']['username'] ?></b></br> There are {online} Gubboer(s) active!<br><strong>LATEST USER</strong><?php</p><p>$latestUser = mysql_query("SELECT username,motto,look,online FROM users ORDER BY ID DESC LIMIT 1");</p><p></p><p>while($rowing = mysql_fetch_assoc($latestUser)){</p><p>$username = $rowing['username'];</p><p>$motto = $rowing['motto'];</p><p>$look = $rowing['look'];echo '<div style="padding: 5px;"></p><p><img src="https://avatar-retro.com/habbo-imaging/avatarimage?figure='.$look.'.&size=m&direction=2&head_direction=3&gesture=sml&headonly=1"/></p><p></div></p><p><strong>'.$username.'</strong></p><p></p><p></p><p>';</p><p></p><p>}</p><p>?><center><a href="/rules" target="_blank">Hotel Rules</a></center></div></p><p></div></p><p></a></p><p></div></p><p></div></p><p></div></p><p></div></p><p></div>[/CODE]</p><p><strong>Create a new file and call it 'on.php' and paste that into it then save it in your style folder.</strong></p><p>[CODE]<script></p><p> var refreshId = setInterval(function()</p><p> {</p><p> $('#refreshradio').fadeOut("slow").load('/index.php?url=on').fadeIn("slow");</p><p> }, 10000);</p><p> </script></p><p> <div id="topbar"></p><p><div class="right"></p><p><div id="RefreshBar"></p><p><div id="TheStats"></p><p><div id="ActualStats"></p><p><div class="playerbox" style="z-index:99999999;position:fixed;left: 5px;top: -2px;width: 105px; height: 215px; background-repeat: no-repeat; background-position: right 40px center;</p><p> <div id=" radioPlayer"></p><p><div id="playerdiv"></p><p><div id="refreshradio"></p><p>Welcome (back) <b><?php echo $_SESSION['user']['username'] ?></b></br> There are {online} Gubboer(s) active!<br><strong>LATEST USER</strong><?php</p><p>$latestUser = mysql_query("SELECT username,motto,look,online FROM users ORDER BY ID DESC LIMIT 1");</p><p></p><p>while($rowing = mysql_fetch_assoc($latestUser)){</p><p>$username = $rowing['username'];</p><p>$motto = $rowing['motto'];</p><p>$look = $rowing['look'];echo '<div style="padding: 5px;"></p><p><img src="https://avatar-retro.com/habbo-imaging/avatarimage?figure='.$look.'.&size=m&direction=2&head_direction=3&gesture=sml&headonly=1"/></p><p></div></p><p><strong>'.$username.'</strong></p><p></p><p></p><p>';</p><p></p><p>}</p><p>?><center><a href="/rules" target="_blank">Hotel Rules</a></center></div></p><p></div></p><p></a></p><p></div></p><p></div></p><p></div></p><p></div></p><p></div>[/CODE]</p><p><strong>Lastly, replace your client code which you more than likely got from the hotel through view source, with this.</strong></p></blockquote><p></p>
[QUOTE="Queso, post: 426797, member: 72618"] #1, you shouldn't steal my code which is displayed on a hotel I used to work at. [USER=77357]@Zachariah[/USER] ON-TOPIC: The reason why it isn't working because you more than likely do not have the correct JavaScript function which is used to refresh it. I'll be generous and give you the actual code used. [CODE]<div id="topbar"> <div class="right"> <div id="RefreshBar"> <div id="TheStats"> <div id="ActualStats"> <div class="playerbox" style="z-index:99999999;position:fixed;left: 5px;top: -2px;width: 105px; height: 215px; background-repeat: no-repeat; background-position: right 40px center; <div id=" radioPlayer"> <div id="playerdiv"> <div id="refreshradio"> Welcome (back) <b><?php echo $_SESSION['user']['username'] ?></b></br> There are {online} Gubboer(s) active!<br><strong>LATEST USER</strong><?php $latestUser = mysql_query("SELECT username,motto,look,online FROM users ORDER BY ID DESC LIMIT 1"); while($rowing = mysql_fetch_assoc($latestUser)){ $username = $rowing['username']; $motto = $rowing['motto']; $look = $rowing['look'];echo '<div style="padding: 5px;"> <img src="https://avatar-retro.com/habbo-imaging/avatarimage?figure='.$look.'.&size=m&direction=2&head_direction=3&gesture=sml&headonly=1"/> </div> <strong>'.$username.'</strong> '; } ?><center><a href="/rules" target="_blank">Hotel Rules</a></center></div> </div> </a> </div> </div> </div> </div> </div>[/CODE] [B]Create a new file and call it 'on.php' and paste that into it then save it in your style folder.[/B] [CODE]<script> var refreshId = setInterval(function() { $('#refreshradio').fadeOut("slow").load('/index.php?url=on').fadeIn("slow"); }, 10000); </script> <div id="topbar"> <div class="right"> <div id="RefreshBar"> <div id="TheStats"> <div id="ActualStats"> <div class="playerbox" style="z-index:99999999;position:fixed;left: 5px;top: -2px;width: 105px; height: 215px; background-repeat: no-repeat; background-position: right 40px center; <div id=" radioPlayer"> <div id="playerdiv"> <div id="refreshradio"> Welcome (back) <b><?php echo $_SESSION['user']['username'] ?></b></br> There are {online} Gubboer(s) active!<br><strong>LATEST USER</strong><?php $latestUser = mysql_query("SELECT username,motto,look,online FROM users ORDER BY ID DESC LIMIT 1"); while($rowing = mysql_fetch_assoc($latestUser)){ $username = $rowing['username']; $motto = $rowing['motto']; $look = $rowing['look'];echo '<div style="padding: 5px;"> <img src="https://avatar-retro.com/habbo-imaging/avatarimage?figure='.$look.'.&size=m&direction=2&head_direction=3&gesture=sml&headonly=1"/> </div> <strong>'.$username.'</strong> '; } ?><center><a href="/rules" target="_blank">Hotel Rules</a></center></div> </div> </a> </div> </div> </div> </div> </div>[/CODE] [B]Lastly, replace your client code which you more than likely got from the hotel through view source, with this.[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
User count wont update on client
Top