Problema - Con Le NEWS nel CMS

RabboCorporatio

Utente bannato
Autore del topic
19 Dicembre 2013
73
0
Miglior risposta
0
Assistenza Tecnica Habbo Retroserver
Titolo
Problema Con Le NEWS Nel CMS
Tipologia del tuo problema/richiesta
CMS
CMS/Server/DB/Client Utilizzato
CMS Privato / Phoenix Emulatore Con Source / DataBase Privato / Client Utilizzato Quello Privato :emoji_slight_smile:
Qual è il tuo errore?
Creo Le NEWS , Le Metto Anche In PrimoPiano , In PrimoPiano Appaiono , Ma Nella Schermata Dove Ci Sono Le 3 NEWS No ! Dice Sempre "News Inesistente" (Screen 1)
Screenshot
1 -
Perfavore, Entra oppure Registrati per vedere i Link!

2 -
Perfavore, Entra oppure Registrati per vedere i Link!
Ulteriori informazioni
Vorrei Cortesemente Qualcuno Che Mi Crei La Pagina NEWS.php Con i Rispettivi Dati Del DataBase Che Vi Sono Figurati Nello Screen 2 ! Grazie In Anticipo.
 
Assistenza Tecnica Habbo Retroserver
Titolo
Problema Con Le NEWS Nel CMS
Tipologia del tuo problema/richiesta
CMS
CMS/Server/DB/Client Utilizzato
CMS Privato / Phoenix Emulatore Con Source / DataBase Privato / Client Utilizzato Quello Privato :emoji_slight_smile:
Qual è il tuo errore?
Creo Le NEWS , Le Metto Anche In PrimoPiano , In PrimoPiano Appaiono , Ma Nella Schermata Dove Ci Sono Le 3 NEWS No ! Dice Sempre "News Inesistente" (Screen 1)
Screenshot
1 -
Perfavore, Entra oppure Registrati per vedere i Link!

2 -
Perfavore, Entra oppure Registrati per vedere i Link!
Ulteriori informazioni
Vorrei Cortesemente Qualcuno Che Mi Crei La Pagina NEWS.php Con i Rispettivi Dati Del DataBase Che Vi Sono Figurati Nello Screen 2 ! Grazie In Anticipo.

Postami il news_compose che sta nella cartella dell'hk e postami anche la me.php che vedo delle cose. :soso:
 
Tenga Madame @Cix10

<?php

include('core.php');
include('includes/session.php');
include('includes/news_headlines.php');

if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}

$pagename = $name;
$pageid = "1";

// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");

include('templates/community/subheader.php');
include('templates/community/header.php');

$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[] = "Qual'e' la tua tag preferita?";


srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);

$tag_question = $randomq[$chosen];

$get_flashclient = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_flashclient' AND value = '1'");

///////////////////////////////////////////////////// fix_by_shojib97 ////////////////////////////////////////////////////////
if($vip == 1){

//Sacar ID de Usuario
$sql = "SELECT id FROM users WHERE username='".$name."'";
$result= mysql_query($sql);
$row = mysql_fetch_assoc($result);

//Coger ID
$userid = $row[id];

//Sacar tiempo de expiración Vip
$sql = "SELECT timestampend FROM vip WHERE id_user=$userid ORDER BY timestampend DESC LIMIT 1";
$result= mysql_query($sql);
$row = mysql_fetch_assoc($result);

//Tiempo para finalizar
$expiretime = $row[timestampend];

//Sacar días restantes
$daysLeft = 0;
if ( $expiretime>time() ){
$daysLeft = $expiretime - time();
$daysLeft = round($daysLeft/86400);
}

//Si Expira el tiempo el vip será quitado
if($expiretime < time()){
$sql = "UPDATE users SET vip='0' WHERE id='$my_id'";
mysql_query($sql);

//Degradamos rango
$sql = "UPDATE users SET rank='1' WHERE id='$my_id'";
mysql_query($sql);

//Alertamos al Usuario
$sql = "INSERT INTO cms_alerts (userid,alert) VALUES ('".$my_id."','Le informamos que su suscripción Vip ah finalizado.')";
mysql_query($sql);

//Eliminar de tabla vip
$sql = "DELETE FROM vip WHERE id_user=$userid";
mysql_query($sql);
} }
///////////////////////////////////////////////////// Fix_by_raikas77 ////////////////////////////////////////////////////////


?>

<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>

<div id="container">
<div id="content" style="position: relative" class="clearfix">

<?PHP
$rand =rand(0,100);
if($rand < 85){
//PUBLI EDU
?>


<?PHP
} else {
//PUBLI HECTOR
?>


<?PHP
}
?>

<style>
.credits_small {
background-color: #98721A;
background-image: url("web-gallery/v2/images/credit.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #D19E25;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 25%;
float: left;
}
.Rubys_small {
background-color: #537384;
background-image: url("http://www.sciax2.it/forum/images/ruby.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #719DBA;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
.mon_small {
background-color: #50C878;
background-image: url("http://www.sciax2.it/forum/images/zaffiri.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #090;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
</style>



<div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&head_direction=3&gesture=sml&action=&size=l" width="64" height="110"/>
</a>
</div>

<div id="name-box" class="info-box">
<div class="label">Nome:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Motto:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Ultimo Accesso:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>

<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="/client.php" target="01080cec2ad93526df3c8baaeb130bf04025261d" onclick="HabboClient.openOrFocus(this); return false;">Entra In Rabbo<i></i></a>
<b></b>
</div>
</div>

</div>

<div class="block">

<div class="credits_small"><?php echo $myrow['credits'];?> Crediti</a></div>

<div class="Rubys_small"><?php echo $myrow['activity_points'];?> Pixel</a></div>

<div class="mon_small"><?php echo $myrow['vip_points'];?> Zaffiri</a></div>
</div>

<?php

require_once('./nuovanews.php');

?>


<div id="column1" class="column">

<div class="habblet-container ">
<div class="cbb clearfix orange ">

<h2 class="title">In Primo Piano
</h2>
<?php $sql = mysql_query("SELECT * FROM cms_news WHERE primopiano = '1'") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$newssql = mysql_query("SELECT * FROM cms_news WHERE num = '".$row['id']."' LIMIT 1");
$newsrow = mysql_fetch_assoc($newssql);

if(IsEven($i)){
$even = "left";
} else {
$even = "even right";
}


?>





<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<li class="<?php echo $even;?>">
<div class="hotcampaign-container">
<a href="/news.php?id=<?php echo HoloText($newsrow['id']);?>"><img src="<?php echo HoloText($newsrow['imgprimopiano']);?>" align="left" alt="" /></a>

<h3><?php echo HoloText($newsrow['title']);?></h3>
<p><?php echo HoloText($newsrow['short_story']);?></p>
<p class="link"><a href="/news.php?id=<?php echo HoloText($newsrow['id']);?>">Scopri Di Piu'</a></p>
</div>
</li>
</ul>
</div>





</li>
<?php } ?>
</div>



</div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>




<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">I Miei Avatar | <a href="/add_avatar.php">Aggiungi Altri</a></h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$myrowq = mysql_query("SELECT * FROM users WHERE mail = '".$myrow['mail']."' ORDER BY lastvisit DESC LIMIT 100");
while($myrow = mysql_fetch_array($myrowq)) {
$i++;
if(IsEven($i)) {
$oddeven = "even";
} else {
$oddeven = "odd";
}
echo "
<li class=".$oddeven.">

<div class=\"hotcampaign-container\">
<img src=\"http://www.habbo.it/habbo-imaging/avatarimage?figure=".$myrow['look']."&size=s\" figure=\"".$myrow['look']."\" alt=\"".$myrow['username']."\" class=\"avatar\" /><font size=\"2\"><span style=\"font-weight: bold;\">".$myrow['username']."</span></font><br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Ultimo accesso: ".$myrow['lastvisit']."<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <a href=\"check_avatar.php?name=".$myrow['username']."\"><b>Gioca</b></a><br>
</div>
</li>";
}
?>
</ul>
</div>


</div>

</div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


<?php /* Noob Gift ?>
<?php
$sql = mysql_query("SELECT noob,gift,roomid,sort FROM users WHERE id='".$my_id."' LIMIT 1");
$row = mysql_query($sql);
if($row['noob'] == 0 && $row['gift'] == 0 && $row['roomid'] == 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="roomselection">
<div class="cbb clearfix rooms ">

<h2 class="title">Select your room!
<span class="habblet-close" id="habblet-close-roomselection"></span></h2>
<div id="roomselection-plp-intro" class="box-content">
Hey! You haven't chosen your pre-decorated room, which comes with free furniture! Choose one below:
</div>

<ul id="roomselection-plp" class="clearfix">
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=0" target="client" onclick="return RoomSelectionHabblet.create(this, 0);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=1" target="client" onclick="return RoomSelectionHabblet.create(this, 1);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=2" target="client" onclick="return RoomSelectionHabblet.create(this, 2);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=3" target="client" onclick="return RoomSelectionHabblet.create(this, 3);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=4" target="client" onclick="return RoomSelectionHabblet.create(this, 4);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=5" target="client" onclick="return RoomSelectionHabblet.create(this, 5);"><b>Select</b><i></i></a>
</li>
</ul>

<script type="text/javascript">
L10N.put("roomselection.hide.title", "Hide room selection");
L10N.put("roomselection.old_user.done", "And you\'re done! The hotel will now open in a new window and you\'ll be redirected to your room in no time!");
HabboView.add(RoomSelectionHabblet.initClosableHabblet);
</script>



</div>
</div>
<?php }elseif($row['noob'] == 1 && $row['roomid'] != 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="giftqueue">
<div class="cbb clearfix rooms ">

<h2 class="title">Your next gift!
<span class="habblet-close" id="habblet-close-giftqueue"></span></h2>
<div class="box-content" id="gift-container">
<?php if($row['gift'] < 2) { ?>

<div class="gift-img"><?php if($row['gift'] == 0) { ?><img src="http://images.habbohotel.com/habboweb/<?php echo $habboversion; ?>/web-gallery/v2/images/welcome/newbie_furni/noob_stool_<?php echo $row['sort']; ?>.png" alt="My first Obbah stool" /><?php }elseif($row['gift'] == 1) { ?><img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/welcome/newbie_furni/noob_plant.png"><?php } ?></div>
<div class="gift-content-container">

<p class="gift-content">
Your next piece of free furniture will be <strong><?php if($row['gift'] == 0) { echo "My first stool"; }elseif($row['gift'] == 1) { echo "plant"; } ?></strong>
</p>

<p>
<b>Time left:</b> <span id="gift-countdown"></span>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>
<br style="clear: both" />
</div>

<?php
// calculate time

$time = time();
$day = date("j");
$month = date("n");
$year = date("y");
$date = mktime(0,0,0, $month, $day, $year);
$timeleft = $date-$time; ?>

<script type="text/javascript">
L10N.put("time.hours", "{0}h");
L10N.put("time.minutes", "{0}min");
L10N.put("time.seconds", "{0}s");
GiftQueueHabblet.init(<?php echo $timeleft; ?>);
</script>
<?php }else{ ?>
<p>
How do you get more furniture into Your room?
</p>

<p>
You could buy a set of furniture for just 3 credits including a lamp, mat, and two armchairs. How do you do that?
</p>

<ul><li>1. Buy some credits from the <a href="/credits">credits</a> section</li><li>2. Open the catalogue from the Hotel toolbar (Chair icon)</li><li>3. Open the deals section</li><li>4. Pick up the furni set You want</li><li>5. Thank You for shopping!</li></ul>

<p class="aftergift-img">
<img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/giftqueue/aftergifts.png" alt="" width="381" height="63"/>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>

<script type="text/javascript">
HabboView.add(GiftQueueHabblet.initClosableHabblet);
</script>
<?php } ?>

</div>

</div>
</div>


<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container ">
<div class="cbb clearfix orange ">

<h2 class="title">Noticiones
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">

</div>
</div>



<?php */ ?>
<?php /*Habbo Search*/ ?>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>

<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {

$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage


// Base room icon based on this - percantage levels may not be habbolike

}
?>
</ul>
</div>
</div>



</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>

</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">


<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>ULTIME NEWS</h4>
<h3><a href="news.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>

<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_1_id; ?>">Leggi &raquo;</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="news.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi &raquo;</a>
</p>


</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi &raquo;</a>
</p>

</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Precedente</a><span>1</span> / 3<a href="#" class="next">Successiva &raquo;</a></div>
</div>
<ul class="widelist">
<li class="even">

<a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="news.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="news.php">Altre News &raquo;</a></li>
</ul>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>



<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Raccomandati</h2>
<ul class="box-tabs">

<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>
</li>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script> </div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);

if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&amp;roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><strong><?php echo HoloText($grouprow['name']); ?></strong></a>
</li>
<?php } ?>
</ul>
</div>
</div></div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>

<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>
<?php /* DISABLED AS HABBO NO LONGER HAS THESE!!! --- Users Online ?>
<div class="cbb clearfix white">
<div class="box-content">

<p>
<ul id="feed-items">

<li id="feed-friends">
<img src="./web-gallery/album1/users_online.PNG" border="0" alt="Server Status" align="left">
<?php if($enable_status_image == "0" || $enable_status_image == "1" & $online == "online"){ ?>
<b><?php echo $online_count; ?></b> users online right now
<?php } else { ?>
<?php echo $sitename; ?> &egrave <b>offline</b>
<?php } ?>
</li>
<br />
</ul>
</p>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Random Rooms ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix">
<h2>Random Rooms</h2>
<ul class="box-tabs">
</ul>
</div>
<div id="tab-0-2-content" >

<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">
<ul class="habblet-list">

<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms WHERE owner IS NOT NULL ORDER BY RAND() LIMIT 5") or die(mysql_error());

while ($row = mysql_fetch_assoc($getem)) {
if($row['owner'] !== ""){ // Public Rooms (and possibly bugged rooms) have no owner, thus do not display them
$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage
if($row['incnt_max'] == 0){ $row['incnt_max'] = 1; }
$data[$i] = ($row['incnt_now'] / $row['incnt_max']) * 100;

// Base room icon based on this - percantage levels may not be habbolike
if($data[$i] == 99 || $data[$i] > 99){
$room_fill = 5;
} elseif($data[$i] > 65){
$room_fill = 4;
} elseif($data[$i] > 32){
$room_fill = 3;
} elseif($data[$i] > 0){
$room_fill = 2;
} elseif($data[$i] < 1){
$room_fill = 1;
}

printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Enter</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Owner: <a href=\"user_profile.php?name=%s\">%s</a></span>
</span>
</li>", $even, $room_fill, $row['id'], HoloText($row['name']), FilterText($row['descr']), $row['owner'], $row['owner']);
}
}
?>

</ul>
<div class="clearfix"></div>
</div>
<script type="text/javascript">
L10N.put("show.more", "Show more rooms");
L10N.put("show.less", "Show fewer rooms");
var roomListHabblet_h105 = new RoomListHabblet("rooms-habblet-list-container-h105", "room-toggle-more-data-h105", "room-more-data-h105");
</script>
</div>

</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
*/ ?>
</div>

<footer>

<style>#clouds {position:fixed;top:5%;height:328px;left:0px;z-index:-2;}</style> <div id='clouds'><marquee scrollamount='3' direction='right'><img src='./clouds.png' alt='' /><img src='./clouds.png' alt='' style='margin-top:100px;' /></marquee></div> </footer>

<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php

include('templates/community/footer.php');

?>

<style type="text/css">body, a:hover {cursor: url(
Perfavore, Entra oppure Registrati per vedere i Link!
), url(
Perfavore, Entra oppure Registrati per vedere i Link!
), progress !important;}</style><a href="http://www.cursors-4u.com/cursor/2010/02/24/animated-cool-shiny-blue-pointer.html" target="_blank" title="Animated Cool Shiny Blue Pointer"><img src="http://cur.cursors-4u.net/cursor.png" border="0" alt="Animated Cool Shiny Blue Pointer" style="position:absolute; top: 0px; right: 0px;" /></a>
 
Ultima modifica:
Ancora Niente ... Ho Inserito Il Nuovo NEWS.php e Il NewsCompose.php Ma Nulla Da Fare...Quelle Maledette NEWS Non Appaiono Nella Me :emoji_slight_frown: Altre Soluzioni ? @Cix10
 
Madame @Cix10 Ho Provato...Dava Sempre Lo Stesso Problema...Comunque Ho Risolto Da Solo Togliendo Dalla HomePage La Classica Visiva Delle NEWS e Creandone Una Con Stile Tutto Nuovo :natale2:


Grazie Lo Stesso Del Tuo Aiuto @Cix10 :natale:


Potete Chiudere Il Thread ! Ho Risolto :leggi: @orlando1994

- - - Aggiornato - - -
@Cix10 , Gia' Che Ci Siamo...Potresti Aiutarmi a Fixare Le MiniMail Nella HomePage ? :banana4:
Praticamente Ho Preso i File Delle MiniMail Dal CMS HaDDo CMS v1 ... Ora Vorrei Fixarle Nel Mio CMS...Puoi Dirmi Come ?
Ti Ringrazierei Il Doppio xD
 
Madame @Cix10 Ho Provato...Dava Sempre Lo Stesso Problema...Comunque Ho Risolto Da Solo Togliendo Dalla HomePage La Classica Visiva Delle NEWS e Creandone Una Con Stile Tutto Nuovo :natale2:


Grazie Lo Stesso Del Tuo Aiuto @Cix10 :natale:


Potete Chiudere Il Thread ! Ho Risolto :leggi: @orlando1994

- - - Aggiornato - - -
@Cix10 , Gia' Che Ci Siamo...Potresti Aiutarmi a Fixare Le MiniMail Nella HomePage ? :banana4:
Praticamente Ho Preso i File Delle MiniMail Dal CMS HaDDo CMS v1 ... Ora Vorrei Fixarle Nel Mio CMS...Puoi Dirmi Come ?
Ti Ringrazierei Il Doppio xD

Hai copiato la tabella per le minimail ed inserito nel tuo db?
 
@Cix10 Ovvio Che Si :emoji_relieved: Ho Preso Le Tabelle MiniMail Da HaDDo DataBase e Le Cartelle Minimail Del CMS Da HaDDo CMS....Non So Come Fixarle Nella Me.php >.<
 
ASD Non Hai Capito... AHAH ! Allora Ti Spiego Meglio :emoji_slight_smile: Praticamente Il Mio CMS è Stato Creato Da 0% , Giusto ?
Ecco....Nel CMS Non C'è Il BoX Per Inviare MiniMail...Ma Vorrei Inserirlo...Nel DataBase Ho Gia' Messo Le Opposite Tabelle Prese Da HaDDo DB e Nel CMS Ho Messo La Cartella MiniMail Che C'Era In HaDDo CMS...Quindi Dovrebbero Funzionare...Ma Ora Devo Metterle Nella Me.php !
Puoi Farlo Tu ? La Me è Quella Che Ti Ho Dato Poco Fa ;D
Buona Fortuna xD
 
Inserisci questo nella me.php:
PHP:
Perfavore, Entra oppure Registrati per vedere i codici!
E' prendi da un Database abbastanza fixato le tabelle messenger_friendships è cms_minimail
 
@Cix10 Scusa Ma Non Puoi Inserirlo Tu Nella Me e Me La Ricopi ?
Io Non So Proprio Dove Mettere Mani xD Non Ho Mai Avuto Nulla a Che Fare Con Le MiniMail °_°
 
@Heart Sotto Grazie :emoji_slight_smile: ... Lasciali Dormire a Loro...Non Sanno Fixare Le MiniMail e Fanno Finta Di Non Vedere La Me.php Cosi' La Riposto Vediamo Se Sono Cosi' Genius Come Si Credono !

<?php

include('core.php');
include('includes/session.php');
include('includes/news_headlines.php');

if($_GET['do'] == "RemoveFeedItem" && is_numeric($_GET['key'])){
mysql_query("DELETE FROM cms_alerts WHERE userid = '".$my_id."' AND id = '".FilterText($_GET['key'])."' ORDER BY id ASC LIMIT 1") or die(mysql_error());
}

$pagename = $name;
$pageid = "1";

// Header for minimail
$messages = mysql_query("SELECT COUNT(*) FROM cms_minimail WHERE to_id = '".$my_id."'") or $messages = 0;
header("X-JSON: {\"totalMessages\":".$messages."}");

include('templates/community/subheader.php');
include('templates/community/header.php');

$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[] = "Qual'e' la tua tag preferita?";


srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);

$tag_question = $randomq[$chosen];

$get_flashclient = mysql_query("SELECT * FROM cms_settings WHERE variable = 'cms_flashclient' AND value = '1'");

///////////////////////////////////////////////////// fix_by_shojib97 ////////////////////////////////////////////////////////
if($vip == 1){

//Sacar ID de Usuario
$sql = "SELECT id FROM users WHERE username='".$name."'";
$result= mysql_query($sql);
$row = mysql_fetch_assoc($result);

//Coger ID
$userid = $row[id];

//Sacar tiempo de expiración Vip
$sql = "SELECT timestampend FROM vip WHERE id_user=$userid ORDER BY timestampend DESC LIMIT 1";
$result= mysql_query($sql);
$row = mysql_fetch_assoc($result);

//Tiempo para finalizar
$expiretime = $row[timestampend];

//Sacar días restantes
$daysLeft = 0;
if ( $expiretime>time() ){
$daysLeft = $expiretime - time();
$daysLeft = round($daysLeft/86400);
}

//Si Expira el tiempo el vip será quitado
if($expiretime < time()){
$sql = "UPDATE users SET vip='0' WHERE id='$my_id'";
mysql_query($sql);

//Degradamos rango
$sql = "UPDATE users SET rank='1' WHERE id='$my_id'";
mysql_query($sql);

//Alertamos al Usuario
$sql = "INSERT INTO cms_alerts (userid,alert) VALUES ('".$my_id."','Le informamos que su suscripción Vip ah finalizado.')";
mysql_query($sql);

//Eliminar de tabla vip
$sql = "DELETE FROM vip WHERE id_user=$userid";
mysql_query($sql);
} }
///////////////////////////////////////////////////// Fix_by_raikas77 ////////////////////////////////////////////////////////


?>

<link rel="stylesheet" href="./web-gallery/static/styles/lightweightmepage.css" type="text/css" />
<script src="./web-gallery/static/js/lightweightmepage.js" type="text/javascript"></script>

<div id="container">
<div id="content" style="position: relative" class="clearfix">

<?PHP
$rand =rand(0,100);
if($rand < 85){
//PUBLI EDU
?>


<?PHP
} else {
//PUBLI HECTOR
?>


<?PHP
}
?>

<style>
.credits_small {
background-color: #98721A;
background-image: url("web-gallery/v2/images/credit.gif");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #D19E25;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 25%;
float: left;
}
.Rubys_small {
background-color: #537384;
background-image: url("images/ruby.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #719DBA;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
.mon_small {
background-color: #50C878;
background-image: url("images/zaffiri.png");
background-position: 2px 50%;
background-repeat: no-repeat;
border: 2px solid #090;
border-radius: 5px 5px 5px 5px;
color: white;
font-size: 12px;
font-weight: bold;
text-shadow: #000 1px 1px 0px;color:#fff;font-weight:bold;
margin: 3px;
padding: 3px;
text-align: center;
width: 26%;
float: left;
}
</style>



<div id="wide-personal-info">
<div id="habbo-plate">
<a href="<?php echo $path; ?>account.php">
<img alt="<?php echo $name; ?>" src="http://www.habbo.it/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&direction=3&head_direction=3&gesture=sml&action=&size=l" width="64" height="110"/>
</a>
</div>

<div id="name-box" class="info-box">
<div class="label">Nome:</div>
<div class="content"><?php echo $name; ?></div>
</div>
<div id="motto-box" class="info-box">
<div class="label">Motto:</div>
<div class="content"><?php echo $myrow['motto']; ?></div>
</div>
<div id="last-logged-in-box" class="info-box">
<div class="label">Ultimo Accesso:</div>
<div class="content"><?php echo date('d-m-Y H:i:s', $myrow['last_online']); echo""; ?> </div>
</div>

<div class="enter-hotel-btn">
<div class="open enter-btn">
<a href="/client.php" target="01080cec2ad93526df3c8baaeb130bf04025261d" onclick="HabboClient.openOrFocus(this); return false;">Entra In Rabbo<i></i></a>
<b></b>
</div>
</div>

</div>

<div class="block">

<div class="credits_small"><?php echo $myrow['credits'];?> Crediti</a></div>

<div class="Rubys_small"><?php echo $myrow['activity_points'];?> Pixel</a></div>

<div class="mon_small"><?php echo $myrow['vip_points'];?> Zaffiri</a></div>
</div>

<?php

require_once('./nuovanews.php');

?>


<div id="column1" class="column">

<div class="habblet-container ">
<div class="cbb clearfix orange ">

<h2 class="title">In Primo Piano
</h2>
<?php $sql = mysql_query("SELECT * FROM cms_news WHERE primopiano = '1' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$newssql = mysql_query("SELECT * FROM cms_news WHERE num = '".$row['num']."' LIMIT 1");
$newsrow = mysql_fetch_assoc($newssql);

if(IsEven($i)){
$even = "left";
} else {
$even = "even right";
}


?>





<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<li class="<?php echo $even; ?>">
<div class="hotcampaign-container">
<a href="/news.php?id=<?php echo HoloText($newsrow['num']); ?>"><img src="<?php echo HoloText($newsrow['imgprimopiano']); ?>" align="left" alt="" /></a>

<h3><?php echo HoloText($newsrow['title']); ?></h3>
<p><?php echo HoloText($newsrow['short_story']); ?></p>
<p class="link"><a href="/news.php?id=<?php echo HoloText($newsrow['num']); ?>">Scopri Di Piu' &gt;&gt;</a></p>
</div>
</li>
</ul>
</div>





</li>
<?php } ?>
</div>



</div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>




<div class="habblet-container ">
<div class="cbb clearfix blue ">
<h2 class="title">I Miei Avatar | <a href="/add_avatar.php">Aggiungi Altri</a></h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">
<?php
$myrowq = mysql_query("SELECT * FROM users WHERE mail = '".$myrow['mail']."' ORDER BY lastvisit DESC LIMIT 100");
while($myrow = mysql_fetch_array($myrowq)) {
$i++;
if(IsEven($i)) {
$oddeven = "even";
} else {
$oddeven = "odd";
}
echo "
<li class=".$oddeven.">

<div class=\"hotcampaign-container\">
<img src=\"http://www.habbo.it/habbo-imaging/avatarimage?figure=".$myrow['look']."&size=s\" figure=\"".$myrow['look']."\" alt=\"".$myrow['username']."\" class=\"avatar\" /><font size=\"2\"><span style=\"font-weight: bold;\">".$myrow['username']."</span></font><br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;Ultimo accesso: ".$myrow['lastvisit']."<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp;
&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <a href=\"check_avatar.php?name=".$myrow['username']."\"><b>Gioca</b></a><br>
</div>
</li>";
}
?>
</ul>
</div>


</div>

</div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>


<?php /* Noob Gift ?>
<?php
$sql = mysql_query("SELECT noob,gift,roomid,sort FROM users WHERE id='".$my_id."' LIMIT 1");
$row = mysql_query($sql);
if($row['noob'] == 0 && $row['gift'] == 0 && $row['roomid'] == 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="roomselection">
<div class="cbb clearfix rooms ">

<h2 class="title">Select your room!
<span class="habblet-close" id="habblet-close-roomselection"></span></h2>
<div id="roomselection-plp-intro" class="box-content">
Hey! You haven't chosen your pre-decorated room, which comes with free furniture! Choose one below:
</div>

<ul id="roomselection-plp" class="clearfix">
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=0" target="client" onclick="return RoomSelectionHabblet.create(this, 0);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=1" target="client" onclick="return RoomSelectionHabblet.create(this, 1);"><b>Select</b><i></i></a>
</li>
<li class="top">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=2" target="client" onclick="return RoomSelectionHabblet.create(this, 2);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=3" target="client" onclick="return RoomSelectionHabblet.create(this, 3);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=4" target="client" onclick="return RoomSelectionHabblet.create(this, 4);"><b>Select</b><i></i></a>
</li>
<li class="bottom">
<a class="roomselection-select new-button green-button" href="client.php?createRoom=5" target="client" onclick="return RoomSelectionHabblet.create(this, 5);"><b>Select</b><i></i></a>
</li>
</ul>

<script type="text/javascript">
L10N.put("roomselection.hide.title", "Hide room selection");
L10N.put("roomselection.old_user.done", "And you\'re done! The hotel will now open in a new window and you\'ll be redirected to your room in no time!");
HabboView.add(RoomSelectionHabblet.initClosableHabblet);
</script>



</div>
</div>
<?php }elseif($row['noob'] == 1 && $row['roomid'] != 0) { ?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container " id="giftqueue">
<div class="cbb clearfix rooms ">

<h2 class="title">Your next gift!
<span class="habblet-close" id="habblet-close-giftqueue"></span></h2>
<div class="box-content" id="gift-container">
<?php if($row['gift'] < 2) { ?>

<div class="gift-img"><?php if($row['gift'] == 0) { ?><img src="http://images.habbohotel.com/habboweb/<?php echo $habboversion; ?>/web-gallery/v2/images/welcome/newbie_furni/noob_stool_<?php echo $row['sort']; ?>.png" alt="My first Obbah stool" /><?php }elseif($row['gift'] == 1) { ?><img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/welcome/newbie_furni/noob_plant.png"><?php } ?></div>
<div class="gift-content-container">

<p class="gift-content">
Your next piece of free furniture will be <strong><?php if($row['gift'] == 0) { echo "My first stool"; }elseif($row['gift'] == 1) { echo "plant"; } ?></strong>
</p>

<p>
<b>Time left:</b> <span id="gift-countdown"></span>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>
<br style="clear: both" />
</div>

<?php
// calculate time

$time = time();
$day = date("j");
$month = date("n");
$year = date("y");
$date = mktime(0,0,0, $month, $day, $year);
$timeleft = $date-$time; ?>

<script type="text/javascript">
L10N.put("time.hours", "{0}h");
L10N.put("time.minutes", "{0}min");
L10N.put("time.seconds", "{0}s");
GiftQueueHabblet.init(<?php echo $timeleft; ?>);
</script>
<?php }else{ ?>
<p>
How do you get more furniture into Your room?
</p>

<p>
You could buy a set of furniture for just 3 credits including a lamp, mat, and two armchairs. How do you do that?
</p>

<ul><li>1. Buy some credits from the <a href="/credits">credits</a> section</li><li>2. Open the catalogue from the Hotel toolbar (Chair icon)</li><li>3. Open the deals section</li><li>4. Pick up the furni set You want</li><li>5. Thank You for shopping!</li></ul>

<p class="aftergift-img">
<img src="http://images.habbohotel.com/habboweb/23_deebb3529e0d9d4e847a31e5f6fb4c5b/9/web-gallery/v2/images/giftqueue/aftergifts.png" alt="" width="381" height="63"/>
</p>

<p class="last">
<a class="new-button green-button" href="client.php?forwardId=2&roomId=<?php echo $row['roomid']; ?>" target="client" onclick="HabboClient.roomForward(this, '<?php echo $row['roomid']; ?>', 'private'); return false;"><b>Go to your room &gt;&gt;</b><i></i></a>
</p>

<script type="text/javascript">
HabboView.add(GiftQueueHabblet.initClosableHabblet);
</script>
<?php } ?>

</div>

</div>
</div>


<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<div class="habblet-container ">
<div class="cbb clearfix orange ">

<h2 class="title">Noticiones
</h2>
<div id="hotcampaigns-habblet-list-container">
<ul id="hotcampaigns-habblet-list">

</div>
</div>



<?php */ ?>
<?php /*Habbo Search*/ ?>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>

<?php /* Events */ ?>
<?php
//$res = mysql_query("show table status like 'events'")
//or die(mysql_error());
//$table_exists = mysql_num_rows($res) == 1;
if($table_exists == 1){ ?>

<?php
//$getem = mysql_query("SELECT * FROM events WHERE category = '1'");
while ($row = mysql_fetch_assoc($getem)) {

$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage


// Base room icon based on this - percantage levels may not be habbolike

}
?>
</ul>
</div>
</div>



</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php } ?>

</div>
<script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<div id="column2" class="column">
<div class="habblet-container news-promo">
<div class="cbb clearfix notitle ">


<div id="newspromo">
<div id="topstories">
<div class="topstory" style="background-image: url(<?php echo $news_1_topstory; ?>)">
<h4>ULTIME NEWS</h4>
<h3><a href="news.php?id=<?php echo $news_1_id; ?>"><?php echo $news_1_title; ?></a></h3>

<p class="summary">
<?php echo $news_1_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_1_id; ?>">Leggi &raquo;</a>
</p>
</div>
<div class="topstory" style="background-image: url(<?php echo $news_2_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="news.php?id=<?php echo $news_2_id; ?>"><?php echo $news_2_title; ?></a></h3>
<p class="summary">
<?php echo $news_2_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi &raquo;</a>
</p>


</div>
<div class="topstory" style="background-image: url(<?php echo $news_3_topstory; ?>); display: none">
<h4>Ultime News</h4>

<h3><a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?></a></h3>
<p class="summary">
<?php echo $news_3_snippet; ?>
<p>
<a href="news.php?id=<?php echo $news_2_id; ?>">Leggi &raquo;</a>
</p>

</div>
<div id="topstories-nav" style="display: none"><a href="#" class="prev">&laquo; Precedente</a><span>1</span> / 3<a href="#" class="next">Successiva &raquo;</a></div>
</div>
<ul class="widelist">
<li class="even">

<a href="news.php?id=<?php echo $news_3_id; ?>"><?php echo $news_3_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_3_date; ?></div>
</li>
<li class="odd">
<a href="news.php?id=<?php echo $news_4_id; ?>"><?php echo $news_4_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_4_date; ?></div>
</li>
<li class="last"><a href="news.php">Altre News &raquo;</a></li>
</ul>
</div>

<script type="text/javascript">
document.observe("dom:loaded", function() { NewsPromo.init(); });
</script>
</div></div>



<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Raccomandati</h2>
<ul class="box-tabs">

<li id="tab-groups" class="selected"><a href="#">Gruppi</a><span class="tab-spacer"></span></li>
</ul>
</div>
<div id="tab-rooms-content" style="height: 165px;overflow-x: scroll;display: none;" id="promogroups-habblet-list-container"><br>
</li>
<script type="text/javascript">
Rounder.addCorners($("habbo-search-error"), 8, 8);
</script> </div>
<div id="tab-groups-content" >
<div style="height: 155px;overflow-x: scroll;" id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">
<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'group' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$groupsql = mysql_query("SELECT * FROM groups WHERE id = '".$row['rec_id']."' LIMIT 1");
$grouprow = mysql_fetch_assoc($groupsql);

if(IsEven($i)){
$even = "even left";
} else {
$even = "even right";
}
?>
<li class="<?php echo $even; ?>" style="background-image: url(./habbo-imaging/badge.php?badge=<?php echo $grouprow['badge']; ?>.gif)">
<?php if($grouprow['roomid'] != 0) { ?><a href="client.php?forwardId=2&amp;roomId=<?php echo $grouprow['roomid']; ?>" onclick="HabboClient.roomForward(this, '<?php echo $grouprow['roomid']; ?>', 'private'); return false;" target="client" class="group-room"></a><?php } ?>
<a class="item" href="group_profile.php?id=<?php echo $grouprow['id']; ?>"><strong><?php echo HoloText($grouprow['name']); ?></strong></a>
</li>
<?php } ?>
</ul>
</div>
</div></div>

<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /*Tags */ ?>

<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>
<?php /* DISABLED AS HABBO NO LONGER HAS THESE!!! --- Users Online ?>
<div class="cbb clearfix white">
<div class="box-content">

<p>
<ul id="feed-items">

<li id="feed-friends">
<img src="./web-gallery/album1/users_online.PNG" border="0" alt="Server Status" align="left">
<?php if($enable_status_image == "0" || $enable_status_image == "1" & $online == "online"){ ?>
<b><?php echo $online_count; ?></b> users online right now
<?php } else { ?>
<?php echo $sitename; ?> &egrave <b>offline</b>
<?php } ?>
</li>
<br />
</ul>
</p>


</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
<?php /* Random Rooms ?>
<div class="habblet-container ">
<div class="cbb clearfix green ">
<div class="box-tabs-container clearfix">
<h2>Random Rooms</h2>
<ul class="box-tabs">
</ul>
</div>
<div id="tab-0-2-content" >

<div id="rooms-habblet-list-container-h105" class="recommendedrooms-lite-habblet-list-container">
<ul class="habblet-list">

<?php
$i = 0;
$getem = mysql_query("SELECT * FROM rooms WHERE owner IS NOT NULL ORDER BY RAND() LIMIT 5") or die(mysql_error());

while ($row = mysql_fetch_assoc($getem)) {
if($row['owner'] !== ""){ // Public Rooms (and possibly bugged rooms) have no owner, thus do not display them
$i++;

if(IsEven($i)){
$even = "odd";
} else {
$even = "even";
}

// Calculate percentage
if($row['incnt_max'] == 0){ $row['incnt_max'] = 1; }
$data[$i] = ($row['incnt_now'] / $row['incnt_max']) * 100;

// Base room icon based on this - percantage levels may not be habbolike
if($data[$i] == 99 || $data[$i] > 99){
$room_fill = 5;
} elseif($data[$i] > 65){
$room_fill = 4;
} elseif($data[$i] > 32){
$room_fill = 3;
} elseif($data[$i] > 0){
$room_fill = 2;
} elseif($data[$i] < 1){
$room_fill = 1;
}

printf("<li class=\"%s\">
<span class=\"clearfix enter-room-link room-occupancy-%s\" title=\"Go to room\" roomid=\"%s\">
<span class=\"room-enter\">Enter</span>
<span class=\"room-name\">%s</span>
<span class=\"room-description\">%s</span>
<span class=\"room-owner\">Owner: <a href=\"user_profile.php?name=%s\">%s</a></span>
</span>
</li>", $even, $room_fill, $row['id'], HoloText($row['name']), FilterText($row['descr']), $row['owner'], $row['owner']);
}
}
?>

</ul>
<div class="clearfix"></div>
</div>
<script type="text/javascript">
L10N.put("show.more", "Show more rooms");
L10N.put("show.less", "Show fewer rooms");
var roomListHabblet_h105 = new RoomListHabblet("rooms-habblet-list-container-h105", "room-toggle-more-data-h105", "room-more-data-h105");
</script>
</div>

</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
*/ ?>
</div>

<footer>

<style>#clouds {position:fixed;top:5%;height:328px;left:0px;z-index:-2;}</style> <div id='clouds'><marquee scrollamount='3' direction='right'><img src='./clouds.png' alt='' /><img src='./clouds.png' alt='' style='margin-top:100px;' /></marquee></div> </footer>

<script type="text/javascript">
HabboView.add(LoginFormUI.init);
</script>
<?php

include('templates/community/footer.php');

?>

<style type="text/css">body, a:hover {cursor: url(
Perfavore, Entra oppure Registrati per vedere i Link!
), url(
Perfavore, Entra oppure Registrati per vedere i Link!
), progress !important;}</style><a href="http://www.cursors-4u.com/cursor/2010/02/24/animated-cool-shiny-blue-pointer.html" target="_blank" title="Animated Cool Shiny Blue Pointer"><img src="http://cur.cursors-4u.net/cursor.png" border="0" alt="Animated Cool Shiny Blue Pointer" style="position:absolute; top: 0px; right: 0px;" /></a>

- - - Aggiornato - - -
@Cix10 e @intervip93 Ho Postato La ME :yd6:
 
@RabboCorporatio No, semplicemente non sono online, o avranno altro da fare, non siamo dovuti ad aiutare 24h su 24h, comunque aspetta che mi scarico un CMS, cosí vedo di non fare errori ;) 5 minuti e faccio.
 
@Heart Guarda Che Sono Entrambi Online...Sai Pero'...Odio i Lamerini Che Quando Non Sanno Risolvere Un Problema Abbandonano Senza Dire Nulla >.<
@Heart Gia' Che Ci Sei Vedi Nel CMS Che Stai Scaricando Se Ci Sono Anche i Distintivi Dei Gruppi FiX Nel CMS...Cioe' Che Modifico Il Distintivo Del Gruppo e Posso Salvarlo ^^ Dovrebbero Essere Delle Pagine Nominate "save_group_badge.php" o "badge_update"
 
Ultima modifica: