Hallo,
Ich hab ein kleines problem
da bei mir die Lobe nicht funken.
Hab ich mir in der Me lobe script gecodet.
Aber das problem is mann kann nur User Loben tiere kraulen geht nicht.
Obwohl es eingebaut is.
Hoffe ihr könnt mir helfen
PHP
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
$notlogin = true;
require_once('./data_classes/server-data.php_data_classes-session.php.php');
$pagename = $name;
$pageid = "1";
$fetch_tags = mysql_query("SELECT tag,id FROM user_tags WHERE user_id = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);
$randomq[] = "Was ist deine Lieblins Sendung?";
$randomq[] = "Wer ist dein Lieblings Schauspieler?";
$randomq[] = "Wer ist deine Lieblings Schauspielerin?";
$randomq[] = "Was machst du am Liebsten?";
$randomq[] = "Was ist dein Lieblings Lied?";
$randomq[] = "Wie beschreibst du dich?";
$randomq[] = "Was ist deine Lieblings Band";
$randomq[] = "Was ist deine Lieblings Comic";
$randomq[] = "Was ist deine Lieblings Zeit des Jahres?";
$randomq[] = "Was ist dein Lieblings Essen?";
$randomq[] = "Was für Sport machst du?";
$randomq[] = "Wer war deine erste Liebe?";
$randomq[] = "Was ist dein Lieblings Film?";
$randomq[] = "Was ist dein Lieblings Tier?";
$randomq[] = "Was ist deine Lieblings Farbe?";
$randomq[] = "Hast du ein Lieblings Mitarbeiter?";
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);
$tag_question = $randomq[$chosen];
require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');
?>
<link rel="stylesheet" href="/new/style/new/lightweightmepage2.css" type="text/css" />
<script src="<?php echo $path; ?>/new/JS/lightweightmepage.js" type="text/javascript"></script>
<?php
$news1_3 = mysql_query("SELECT * FROM cms_news ORDER BY ID DESC LIMIT 5") or die(mysql_error());
if(mysql_num_rows($news1_3) > 0){
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<style type="text/css">#redeem-habblet div.redeem-balance{width:165px;}#redeem-habblet a:link,#redeem-habblet a:visited{color:#FC6204;text-decoration:none;}#column3{margin-top:-276px}</style>
<div class="column" id="column7">
<div class="habblet-container ">
<div class="cbb clearfix darkgray ">
<div id="habblet box-content">
<div id="redeem-habblet">
<center>
<div class="redeem-balance">
<img src="/c_images/icons/purse.gif">
<p>
<a href="./credits">
<span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount5">
<?php echo HoloText($myrow['credits']); ?> Taler
</span>
</a>
</p>
</div>
<div class="redeem-balance">
<img src="/c_images/icons/pixels.png">
<p>
<a href="./credits/pixels">
<span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount2">
<?php echo HoloText($myrow['activity_points']); ?> Pixel
</span>
</a>
</p>
</div>
<div class="redeem-balance">
<img src="/c_images/icons/STAR.png">
<p>
<span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount3">
<?php echo $userinfo['Respect']; ?> Lobe
</span>
</p>
</div>
<div class="redeem-balance">
<strong>
<img src="/c_images/icons/vip.png">
<p>
<a href="./client">
<span style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;" class="redeem-balance-amount4">
<p>
<span class="redeem-balance-amount4" style="text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;">
<?php if($hc > 0){ ?>
<a href="./credits/habboclub">
<font color="white">
<?php echo getHCDays($my_id); ?> Tage VIP
</font>
</a>
<?php } else { ?>
<a href="./VIP.php">
<font color="white"> VIP Kaufen
</font>
</a>
<?php } ?>
</span>
</p>
</span>
</a>
</p>
</strong>
</div>
</center>
</div>
</div>
</div>
</div>
<font color="black">
<script src="<?php echo $path; ?>/new/JS/lightweightmepage.js" type="text/javascript"></script>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>/profile.php">
<img alt="hiphopiplay" src="<?php echo $avatar; echo $myrow['look']; ?>&direction=4&head_direction=4" width="64" height="110"/>
</a>
</div>
<div id="name-box" class="info-box">
<div class="label">
<font color="black"> Name:
</font>
</div>
<div class="content">
<font color="black">
<?php echo $name; ?>
</font>
</div>
</div>
<div id="motto-box" class="info-box">
<div id="motto-container" class="clearfix">
<div>
<span>
<b>
<font color="black"> Motto:
</b>
</br>
<?php echo HoloText($myrow['motto']); ?>
</font>
</span>
</div>
</div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">
<font color="black"> Letzter Login:
</div>
<div class="content">
<?php echo date('d-M-Y H:i:s', $myrow['last_online']); ?>
</font>
</div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="<?php echo $path; ?>/client" target="f8c6032f11698450c4c096bf3e9b3ba1f2f601fd" onclick="HabboClient.openOrFocus(this); return false;">
<font color="black"> Einchecken
</font>
</a>
<b>
</b>
</div>
</div>
</div>
<style type="text/css">
div.title > a.titlestuff {
text-decoration: none;
color: #fff;
}
div.title > a.titlestuff:hover {
text-decoration: underline;
}
</style>
<div id="promo-box">
<div id="promo-bullets"></div>
<?php
$i = 0;
$back = '1';
while($news = mysql_fetch_assoc($news1_3)){
$i++;
?>
<div class="promo-container" style="<?php if($i != '1'){ ?>display: none;<?php } ?>background-image: url(<?php echo $site; ?>/new/Images/new/web_promo_0<?php echo $back; ?>.png)">
<div class="promo-content">
<div class="title"><?php echo ($news['title']); ?></div>
<div class="body"><?php echo ($news['longstory']); ?></div>
</div>
<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="<?php echo $site.'/articles/'.$news['id']; ?>">
<font color="black"> Lies mehr!
</font>
</a>
<b>
</b>
</div>
</div>
<a href="http://www.facebook.com/pages/Fobbi-Hotel/316731545032449" target="_blank" class="facebook-link"></a>
</div>
<?php
if($back == '1'){
$back = '2';
} else if($back == '2') {
$back = '3';
} else if($back == '3') {
$back = '4';
} else if($back == '4') {
$back = '5';
} else {
$back = '1';
} }
?>
</div>
</div>
<script type="text/javascript"> document.observe("dom:loaded", function() { PromoSlideShow.init(); });</script>
<?php } ?>
</div>
</font>
</div>
</div>
<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>
<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php
$date_now = strtotime($date_normal);
$lobe_date = strtotime($myrow['getmoney_date']);
$datum1 = date("d.m.y", $date_now);
$datum2 = date("d.m.y", $lobe_date);
require_once('./templates/community_footer.php');
if($myrow['rank'] == "1"){
mysql_query("UPDATE users SET rank = '2' WHERE id = '".$myrow['id']."'") or die(mysql_error());
}
if($date_now > $lobe_date){
mysql_query("UPDATE users SET getmoney_date = '".$date_normal."' WHERE id = '".$myrow['id']."'") or die(mysql_error());
mysql_query("UPDATE user_stats SET DailyRespectPoints = '3' WHERE id = '".$myrow['id']."'") or die(mysql_error());
}
if($date_now > $lobe_date){
mysql_query("UPDATE users SET getmoney_date = '".$date_normal."' WHERE id = '".$myrow['id']."'") or die(mysql_error());
mysql_query("UPDATE user_stats SET daily_pet_respect_points = '3' WHERE id = '".$myrow['id']."'") or die(mysql_error());
}
?>
Alles anzeigen