[RELEASE] HabboExtreme REVCMS THEME

Spirit100

Member
Jul 24, 2012
97
71
Oh thats decent then, just being held up with the release because of college work. This weekend i should be releasing hopefully.
 

Spirit100

Member
Jul 24, 2012
97
71
Thread updated i didn't see point in doing another thread as its basically just the same anyway a part from bugs fixed! :D
 

Evilsmoothie

Mad kung-fu artist
Feb 11, 2013
446
57
Code:
<div class="habblet-container ">
 
<div class="cbb clearfix activehomes">
 
<h2 class="title"><font size=1>{hotelName} Statistics! </h2> </font>
 
<div id="notfound-content" class="box-content"> <center>
 
          Users online: <?php $sql = "SELECT COUNT(*) FROM users WHERE online = '1'";
$query = mysql_query($sql) or die(mysql_error());
$hoeveel = mysql_result($query,0,0);
 
echo $hoeveel;  ?> <br>
Registered Users:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalleden FROM users") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalleden'];
?>
<br />Rooms:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalkamers FROM rooms") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalkamers'];
?>
<br />Badges:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalbadges FROM user_badges") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalbadges'];
?>
<br />Favorite rooms:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalfavouritekamers FROM user_favorites") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalfavouritekamers'];
?>
<br />Furniture:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM Furniture") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalmeubels'];
?>
<br />Furniture in the catalog:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM catalog_items") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalmeubels'];
?>
<br /><br>
 
                    </center></a></div></div>
                    </div>
                   
               
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                    </div>
Not all of those is a part of the database. Just check if what it says after "FROM" exists in the database or not.
 

Destruct

FateRP Founder
Feb 12, 2012
548
6
Code:
<div class="habblet-container ">
 
<div class="cbb clearfix activehomes">
 
<h2 class="title"><font size=1>{hotelName} Statistics! </h2> </font>
 
<div id="notfound-content" class="box-content"> <center>
 
          Users online: <?php $sql = "SELECT COUNT(*) FROM users WHERE online = '1'";
$query = mysql_query($sql) or die(mysql_error());
$hoeveel = mysql_result($query,0,0);
 
echo $hoeveel;  ?> <br>
Registered Users:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalleden FROM users") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalleden'];
?>
<br />Rooms:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalkamers FROM rooms") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
yeah i have this problem also. So what do I do with this.
 
echo $data['aantalkamers'];
?>
<br />Badges:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalbadges FROM user_badges") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalbadges'];
?>
<br />Favorite rooms:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalfavouritekamers FROM user_favorites") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalfavouritekamers'];
?>
<br />Furniture:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM Furniture") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalmeubels'];
?>
<br />Furniture in the catalog:
<?php
$query = mysql_query("SELECT COUNT(*) AS aantalmeubels FROM catalog_items") or die(mysql_error());
$data = mysql_fetch_assoc($query);
 
echo $data['aantalmeubels'];
?>
<br /><br>
 
                    </center></a></div></div>
                    </div>
                 
             
                        <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
                    </div>
Not all of those is a part of the database. Just check if what it says after "FROM" exists in the database or not.
 

JamesFTW

New Member
Apr 11, 2013
21
4
Awesome CMS, Quite a heavy edit of RevCMS, but it look absolutely proffesional, I LOVE THESE CMS, You have to release more kinds of this cms!
 

Users who are viewing this thread

Top