Jamescool12
Member
- Jan 17, 2014
- 139
- 13
Hello i have a problem
2. this wont update in client its suppose to reload every 5 seconds
2. this wont update in client its suppose to reload every 5 seconds
Last edited:
How do I do that java script shit lol ?for 1,open up database, users table,edit rable and change the default value of rank_vip.
for 2,you need to update it by javascript every x seconds
Create a file called usercount.php unded your skin folder and put {online} if you are using revcms, else let me know. then,go to client.php post me code so i can help out more.How do I do that java script shit lol ?
that doesnt help it has to reload it self every 5 secondsCreate a file called usercount.php unded your skin folder and put {online} if you are using revcms, else let me know. then,go to client.php post me code so i can help out more.
Make a javascript bit, that refreshes even 5 seconds or so without reloading the page.that doesnt help it has to reload it self every 5 seconds
<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>
<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>
Sorry I didn't know it was stolen I just asked for it and I got it :/ may you come on my teamviewer and help me out i got it to refresh but now it refreshs fast and it gets faster#1, you shouldn't steal my code which is displayed on a hotel I used to work at. @Zachariah
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.
Create a new file and call it 'on.php' and paste that into it then save it in your style folder.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>
Lastly, replace your client code which you more than likely got from the hotel through view source, with this.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>
Please doYou could do this with a javascript pretty easily, if you want a hand I can show you how.