Hallo guten Tag RT, ich benutze eine ReCMS mit den Gold Tree Emulator 3.0 + mit diese Datenbank eben xD
Wenn ich auf Community.php gehe kommt folgendes.
Wie kann ich dass beheben? Danke in vorraus
Hallo guten Tag RT, ich benutze eine ReCMS mit den Gold Tree Emulator 3.0 + mit diese Datenbank eben xD
Wenn ich auf Community.php gehe kommt folgendes.
Wie kann ich dass beheben? Danke in vorraus
Hat nix gebracht.
Poste mal den Code wo er die SQL Abfrage macht
Poste mal den Code wo er die SQL Abfrage macht
Das Problem da steht nicht wo er nach die sql abfragt.
Da steht nur folgendes:
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<div class="box-tabs-container clearfix">
<h2>Infomation</h2>
<ul class="box-tabs">
<li id="tab-0-1-2" class="selected"><a href="#">Neuste Infos</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-0-1-1-content" style="display: none">
<div class="progressbar"><img src="./web-gallery/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/proxy.php?hid=h122" class="tab-ajax"></a>
</div>
<div id="tab-0-1-2-content" >
<div class="progressbar"><img src="./web-gallery/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/proxy.php?hid=h122" class="tab-ajax"></a>
</div>
</div>
</div>
Ist das alles was in der community.php Datei steht?
<!---------GRUPPEN---------->
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<div class="box-tabs-container clearfix">
<h2>Infomation</h2>
<ul class="box-tabs">
<li id="tab-0-1-2" class="selected"><a href="#">Neuste Infos</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-0-1-1-content" style="display: none">
<div class="progressbar"><img src="./web-gallery/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/proxy.php?hid=h122" class="tab-ajax"></a>
</div>
<div id="tab-0-1-2-content" >
<div class="progressbar"><img src="./web-gallery/v2/images/page_loader.gif" alt="" width="29" height="6" /></div>
<a href="./habblet/proxy.php?hid=h122" class="tab-ajax"></a>
</div>
</div>
</div>
<!---------ENDE--------->
<!--------------Hotel Statistiken----------------------------->
<div id="column1" class="column">
<div class="habblet-container">
<div class="cbb clearfix yellow">
<h2 class="title"><?php echo $sitename; ?> Hotel Statistiken</h2>
<div class="habblet box-content">
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>Erstellte Räume:</b> <?php echo mysql_evaluate("SELECT COUNT(*) FROM rooms WHERE id ");?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>Registrierte User:</b> <?php echo mysql_evaluate("SELECT COUNT(*) FROM users WHERE id ");?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b><?php echo $sitename; ?> Teammitglieder:</b> <?php echo mysql_evaluate("SELECT COUNT(*) FROM users WHERE id AND rank >= '3'");?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>Alle Möbel:</b> <?php echo mysql_evaluate("SELECT COUNT(*) FROM furniture WHERE 1 ");?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>Gebannte <?php echo $sitename; ?>s:</b> <?php echo mysql_evaluate("SELECT COUNT(*) FROM bans WHERE id ");?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>User Rekord:</b> <?php $sql = "SELECT users FROM system_stats"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)) { echo $row["users"]; } mysql_free_result($result); ?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
<b>Dein Design:</b>
<?php if($myrow['theme'] == "classic") { ?>
Klassisches Design
<?php } else { ?>
<?php if($myrow['theme'] == "default") { ?>
<?php echo $sitename; ?> Standard
<?php } else { ?>
<?php if($myrow['theme'] == "blue") { ?>
Blaues Design
<?php } else { ?>
<?php if($myrow['theme'] == "yellow") { ?>
Gelbes Design
<?php } else { ?>
<?php if($myrow['theme'] == "green") { ?>
Grünes Design
<?php } else { ?>
<?php if($myrow['theme'] == "red") { ?>
Rotes Design
<?php } else { ?>
<?php if($myrow['theme'] == "lila") { ?>
Lila Design
<?php } else { ?>
<?php if($myrow['theme'] == "goldgrau") { ?>
Goldgraues Design
<?php } else { ?>
<?php if($myrow['theme'] == "black") { ?>
Schwarzes Design
<?php } else { ?>
<?php if($myrow['theme'] == "orange") { ?>
Orangenes Design
<?php } else { ?>
<?php if($myrow['theme'] == "oldschool") { ?>
Oldschool Design
<?php } else { ?>
<?php if($myrow['theme'] == "xmas") { ?>
Weihnachts Design 2012
<?php } else { ?>
<?php if($myrow['theme'] == "fruehling") { ?>
Frühlings Design 2013
<?php } else { ?>
<?php if($myrow['theme'] == "april") { ?>
April Design 2013
<?php } else { ?>
<font color="red">Das ReCMS Design ist so Cool!</font>
<?php } } } } } } } } } } } } } } ?>
<div id="slickDiv" style="display:block;margin: 5px 0;"></div>
</div>
</div>
</div>
</div>
<!--------------Hotel Statistiken ende------------------------>
<!--------------Neuster Userser (c) LizeCF-------------------->
<?php
$i = 0;$getem = mysql_query("SELECT * FROM users ORDER BY id DESC LIMIT 1") or die(mysql_error());
while ($row = mysql_fetch_assoc($getem)) {$i++;$list_id = $i - 1;
if($row['online'] == "1"){ $image = "online_anim_big";} else { $image = "offline_big";}
$badge = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$row['id']."' AND badge_slot = '1'");
$get_groups = mysql_query("SELECT * FROM group_membershipss WHERE userid = '".$row['id']."' AND is_current = '1'");
$members_row = mysql_fetch_assoc($get_groups);
if(mysql_num_rows($badge) > 0){
$badgerow = mysql_fetch_assoc($badge);
$badge = "<img src=\"".$cimagesurl.$badgesurl.$badgerow['badge_id'].".gif\">";}else{
$badge = "<br>";}
if(mysql_num_rows($get_groups) > 0){
$grouprow = mysql_query("SELECT * FROM groups WHERE id = '".$members_row['id_group']."' LIMIT 1");
$group = mysql_fetch_assoc($grouprow);
$groupbadge = "<a href=\"".$path."/groups/".$group['id']."\"><img src=\"".$path."/habbo-imaging/badge.php?badge=".$group['badge'].".gif\"></a>";}else{ $groupbadge = "<br>";}?>
<div id="column1" class="column"> <div class="habblet-container "> <div class="cbb clearfix pink "> <h2 class="title">Der neuste User</h2> <table style="font-size: 11px;"> <tr> <td valign="middle" width="25"> <div id="avatarbx"> <img style="margin-top: -10px;" src="<?php echo $avatar; echo $row['look']; ?>&size=b&direction=2&head_direction=3&gesture=sml&action=wav&size=l"><br /> <img src='/web-gallery/images/myhabbo/habbo_<?php echo $image; ?>.gif' style='margin-left:8px;' align="left"> </div> </td> <td valign="top"> <br /> <a href='/home/<?php echo $row['username']; ?>'><b><?php echo $row['username']; ?></b></a><br /><br /> <b>Motto:</b> „<i><?php echo $row['motto']; ?></i>” <br /> <b>Letzer Login:</b> <?php echo date('d.m.Y - H:i', $row['last_online']); ?> Uhr <br /> <br /> </td> </tr> </table>
</div>
</div> <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> </div><?php } ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<!--------------ENDE------------------------------------------>
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title"><?php echo $sitename; ?> der Woche</h2>
<?php $user_der_woche = mysql_fetch_assoc($info = mysql_query("SELECT * FROM users WHERE user_of_the_week = '1'")); ?>
<?php $badge_0 = mysql_query("SELECT * FROM user_badges WHERE user_id = '".$user_der_woche['id']."' AND badge_slot = '10'");
if(mysql_num_rows($badge_0) > 0){
$badgerow = mysql_fetch_assoc($badge_0);
$badge_0 = "<img align=\"right\" src=\"".$cimagesurl.$badgesurl.$badgerow['badge_id'].".gif\">"; }else{ $badge_0 = ""; } ?>
<div class="box-content">
<?php echo $badge_0; ?>
<center>
<span style="display:block;font-weight:bold;">
<a style="color:#972F89;text-decoration:none;" href="/home/<?php echo $user_der_woche['username']; ?>"><?php echo $user_der_woche['username']; ?></a></span>
<img src="http://habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $user_der_woche['look']; ?>" onmouseover="this.src='http://habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $user_der_woche['look']; ?>&action=wav,crr=667&direction=2&head_direction=3&gesture=sml'" onmouseout="this.src='http://habbo.nl/habbo-imaging/avatarimage?figure=<?php echo $user_der_woche['look']; ?>'"><br />
<strong>Status:</strong> <?php if($user_der_woche['online'] == "1") { ?>
<span style="font-weight:bold;color:green;background: url(../web-gallery/images/bling.gif)">Online</span> <?php } else { ?> <span style="font-weight:bold;color:red;">Offline</span> <?php } ?><br />
<strong>Mission:</strong> <?php echo $user_der_woche['motto']; ?><br />
</center><br/></div></div>
<div>
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title">Geburtstage im Cabbo</h2>
<div class="box-content">
<img src="/web-gallery/images/frank/bdaysorry.png"> </div>
</div>
</div>
</center><br/></div></div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<div id="column3" class="column">
</div>
</div>
Was ist mit dieser Datei: ./habblet/proxy.php
Der Code von Proxy.php
<?php
require_once('../inc/server-data.php_inc-core.php.php');
require_once('../inc/server-data.php_inc-session.php.php');
$hid = FilterText($_GET['hid']);
$first = FilterText($_GET['first']);
?>
<?php if($hid == "h120"){ ?>
<head>
</head>
<div id="rooms-habblet-list-container-h120" class="recommendedrooms-lite-habblet-list-container">
<ul class="habblet-list">
<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms ORDER BY score DESC LIMIT 5") or die(mysql_error());
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}
$roomcount = $row['users_now'] / $row['users_max'] * 100;
if($roomcount == 99 $roomcount > 99){
$rl = 5;
} elseif($roomcount > 65){
$rl = 4;
} elseif($roomcount > 32){
$rl = 3;
} elseif($roomcount > 0){
$rl = 2;
} elseif($roomcount < 1){
$rl = 1;
}
printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Betreten</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Besitzer: <a href=\"".$path."/home/%s\">%s</a></span>
</span>
</li>", $even, $rl, $row['id'], HoloText($row['caption']), FilterText($row['description']), $row['owner'], $row['owner']);
}
?>
</ul>
<div id="room-more-data-h120" style="display: none">
<ul class="habblet-list room-more-data">
<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms ORDER BY score DESC LIMIT 15 OFFSET 5") or die(mysql_error());
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}
$get_owner = mysql_query("SELECT username FROM users WHERE id = '".$row['owner']."'");
$owner = mysql_fetch_assoc($get_owner);
$roomcount = $row['users_now'] / $row['users_max'] * 100;
if($roomcount == 99 $roomcount > 99){
$rl = 5;
} elseif($roomcount > 65){
$rl = 4;
} elseif($roomcount > 32){
$rl = 3;
} elseif($roomcount > 0){
$rl = 2;
} elseif($roomcount < 1){
$rl = 1;
}
printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Betreten</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Besitzer: <a href=\"".$path."/home/%s\">%s</a></span>
</span>
</li>", $even, $rl, $row['id'], HoloText($row['caption']), FilterText($row['description']), $row['owner'], $row['owner']);
}
?>
</ul>
</div>
<div class="clearfix">
<a href="#" class="room-toggle-more-data" id="room-toggle-more-data-h120">Mehr Räume anzeigen</a>
</div>
</div>
<script type="text/javascript">
L10N.put("show.more", "Mehr Räume anzeigen");
L10N.put("show.less", "Weniger Räume anzeigen");
var roomListHabblet_h120 = new RoomListHabblet("rooms-habblet-list-container-h120", "room-toggle-more-data-h120", "room-more-data-h120");
</script>
<?php }elseif($hid == "h122"){ ?>
<head>
<script src="../web-gallery/static/js/moredata.js" type="text/javascript"></script>
</head>
<div id="hotgroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php
$i = 0;
$j = 1;
$getem = mysql_query("SELECT * FROM group_details ORDER BY views DESC LIMIT 10") or die(mysql_error());
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$left = "right";
} else {
$left = "left";
$j++;
}
if(IsEven($j)){
$even = "even";
} else {
$even = "odd";
}
?>
<li class="<?php echo $even; ?> <?php echo $left; ?>" style="background-image: url(<?php echo $path; ?>/habbo-imaging/badge.php?badge=<?php echo $row['badge']; ?>)">
<a class="item" href="<?php echo $path; ?>/groups/<?php echo $row['id']; ?>"><span class="index"><?php echo $i; ?>.</span> <?php echo HoloText($row['name']); ?></a>
</li>
<?php } ?>
</ul>
<div id="hotgroups-list-hidden-h122" style="display: none">
<ul class="habblet-list two-cols clearfix">
<?php
$i = 10;
$j = 1;
$getem = mysql_query("SELECT * FROM group_details ORDER BY views DESC LIMIT 40 OFFSET 10") or die(mysql_error());
while ($row = mysql_fetch_assoc($getem)) {
$i++;
if(IsEven($i)){
$left = "left";
} else {
$left = "right";
$j++;
}
if(IsEven($j)){
$even = "odd";
} else {
$even = "even";
}
?>
<li class="<?php echo $even; ?> <?php echo $left; ?>" style="background-image: url(<?php echo $path; ?>/habbo-imaging/badge.php?badge=<?php echo $row['badge']; ?>)">
<a class="item" href="<?php echo $path; ?>/groups/<?php echo $row['id']; ?>"><span class="index"><?php echo $i; ?>.</span> <?php echo HoloText($row['name']); ?></a>
</li>
<?php } ?>
</ul>
</div>
<div class="clearfix">
<a href="#" class="hotgroups-toggle-more-data secondary" id="hotgroups-toggle-more-data-h122">Mehr Gruppen anzeigen</a>
</div>
<script type="text/javascript">
L10N.put("show.more.groups", "Mehr Gruppen anzeigen");
L10N.put("show.less.groups", "Weniger Gruppen anzeigen");
var hotGroupsMoreDataHelper = new MoreDataHelper("hotgroups-toggle-more-data-h122", "hotgroups-list-hidden-h122","groups");
</script>
</div>
<?php } ?>
Danke hat geklappt
#closed
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!