Problema risolto Aggiungere i gruppi nella me.

DemonLost

Utente Assiduo
Autore del topic
8 Gennaio 2011
805
0
Miglior risposta
0
Ciao ragazzi vorrei porre una domanda.

Vorrei mettere i gruppi qua ->
1zh2ret.png



Come faccio?

@TheJackpot
 
Ultima modifica:
Riferimento: Gruppi nella me

Evitiamo post inutili, se non sapete utilizzare l'utente non commentate.
 
Riferimento: Gruppi nella me

Rinomino il titolo, se mi posti la me.php ti dico da che tabella si aggiungono.
 
Riferimento: Gruppi nella me

Rinomino il titolo, se mi posti la me.php ti dico da che tabella si aggiungono.

<?php
/*---------------------------------------------------+
| HoloCMS - Website and Content Management System
+----------------------------------------------------+
| Copyright © 2008 Meth0d
+----------------------------------------------------+
| HoloCMS is provided "as is" and comes without
| warrenty of any kind.
+---------------------------------------------------*/

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



$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');

// Query tags
$fetch_tags = mysql_query("SELECT tag,id FROM cms_tags WHERE ownerid = '".$my_id."' LIMIT 20") or die(mysql_error());
$tags_num = mysql_num_rows($fetch_tags);

// Create the random tag questions array
$randomq[] = "Quale La tua Tag Preferita?";

// Select a random question from the array above
srand ((double) microtime() * 1000000);
$chosen = rand(0,count($randomq)-1);

// Appoint the variable
$tag_question = $randomq[$chosen];

?>





<div id="container">
<div id="content">

<div id="container"><div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">


<div id="new-personal-info" style="background-image:url(http://img38.imageshack.us/img38/363/htlviewbrw.png)" />




<div id="enter-hotel">
<?php if($online == "online"){ ?>
<div class="open">
<?php
if(HoloText(getContent('client-widescreen'), true) == "1"){
$wide_enabled = true;
} else {
$wide_enabled = false;
}
?>
<a href="client.php<?php if($wide_enabled == false){ echo "?wide=false"; } ?>" target="client" onclick="openOrFocusHabbo(this); return false;">Entra in Hotel<i></i></a>
<b></b>
</div>
<?php } else { ?>
<div class="closed">
<span>Hotel Chiuso</span>
<b></b>
</div>
<?php } ?>
</div>



<div id="habbo-plate">
<a href="account.php">
<p><img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=<?php echo $myrow['look']; ?>&size=b&action=sit&direction=2direction=4&head_direction=3&action=wlk&gesture=sml&size=s" align='left' style="margin-left: 15px;">
</a>
</div>


<div id="habbo-info">
<div id="motto-container" class="clearfix">
<strong><?php echo $name; ?>:</strong>
<div>
<span title="Clicca per cambiare la tua missione!"><?php if(!empty($myrow['motto'])){ echo FilterText($myrow['motto']); } else { echo "Clicca per creare la tua missione!"; } ?></span>
<p style="display: none"><input type="text" length="30" name="motto" value="<?php echo FilterText($myrow['motto']); ?>"/></p>
</div>
</div>
<div id="motto-links" style="display: none"><a href="#" id="motto-cancel">Annulla</a></div>
</div>




<ul id="link-bar" class="clearfix">
<li class="credits">
<a href="credits.php"><?php echo $myrow['credits']; ?></a> Crediti
</li>
<li class="club">
<a href="club.php"><?php if( !IsHCMember($my_id) ){ echo "Iscriviti al " . $shortname . " Club &raquo;</a>"; } else { echo HCDaysLeft($my_id) . " </a>Giorni " . $shortname . " club!"; }?>
<li class="activitypoints">
<a href="pixel.php"><?php echo $myrow['activity_points']; ?></a> Pixel
</li>

</ul>
</li>



<div id="habbo-feed">
<ul id="feed-items">

<?php
$sqluser = mysql_query("SELECT hc_before FROM users WHERE id='".$my_id."' LIMIT 1");
$user = mysql_query($sqluser);

$sql = mysql_query("SELECT * FROM users_club WHERE userid='".$my_id."' LIMIT 1");
if($user['hc_before'] > 0 && mysql_num_rows($sql) == 0) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi le modifiche</a>
<div>
<?php if(mysql_num_rows($sql) == 0) { ?> La tua iscrizione di <?php echo $shortname; ?> Club e' scaduta. Vuoi rinnovare la tua iscrizzione di <?php echo $shortname; ?> Club?<?php } ?>
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>

<?php
}

if(IsHCMember($my_id)){
if($user['hc_before'] > 0) {
if(HCDaysLeft($my_id) < 6) { ?>
<li id="feed-item-hc-reminder">
<a href="#" class="remove-feed-item" id="remove-hc-reminder" title="Remove notification">Rimuovi Notifica</a>
<div>
La tua iscrizione a <?php echo $shortname; ?> Club scade tra <?php echo HCDaysLeft($my_id); ?> Giorni. Vuoi aumentare la tua iscrizione di <?php echo $shortname; ?> Club?
</div>
<div id="hc-reminder-buttons" class="clearfix">
<a href="#" class="new-button" id="hc-reminder-1" title="31 days, 20 Credits"><b>1 Mese</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-2" title="93 days, 50 Credits"><b>3 Mesi</b><i></i></a>
<a href="#" class="new-button" id="hc-reminder-3" title="186 days, 80 Credits"><b>6 Mesi</b><i></i></a>
</div>
</li>
<script type="text/javascript">
L10N.put("subscription.title", "<?php echo $shortname; ?> CLUB");
</script>

<?php
}
}
}

if($user_rank > 88){
$alerts = mysql_evaluate("SELECT COUNT(*) FROM cms_help WHERE picked_up = '0'");
if($alerts > 0){
echo " <li class=\"small\" id=\"feed-group-discussion\">
<strong>Messaggio per lo staff!</strong><br />Ci sono "; if($alerts == 1){ echo ""; } else { echo ""; } echo " <strong><a href='./housekeeping/index.php?p=helper' target='_self'>" . $alerts . "</a></strong> Messaggio di aiuto!"; if($alerts > 1){ echo ""; } else { echo ""; } echo ".
</li>";
}
}


//<?php
// }

//$sql = mysql_query("SELECT * FROM cms_noobgifts WHERE userid='".$my_id."' LIMIT 1");
//if(mysql_num_rows($sql) > 0) {
//$row = mysql_fetch_assoc($sql); ?>

<?php
// }

$dob = $myrow['birth'];
$bits = explode("-", $dob);
$day = $bits[0];
$month2 = $bits[1];
$year2 = $bits[2];

if($day == $today && $month2 == $month && HoloText(getContent('birthday-notifications'), true) == "1"){

$age = $year - $year2;

// If we have haxxorz that bypassed the age check (only javascript validates it), they may be like, what,
// one year old, so instead of showing 'happy 1th birthday', we properly show 'happy 1st birthday' etc.
if($age == 1 || $age == 21){
$age = $age . "st";
} elseif($age == 2 || $age == 22){
$age = $age . "nd";
} elseif($age == 3 || $age = 33){
$age = $age . "rd";
} else {
$age = $age . "th";
}
?>

<li id="feed-birthday">
<div>
Buon compleanno, <?php echo $name; ?>!<br />Speriamo sia un grande giorno!
</div>
</li>
<?php } ?>
<?php
$sql = mysql_query("SELECT * FROM messenger_requests WHERE from_id = '".$my_id."'");
$count = mysql_num_rows($sql);
if($count != 0){ ?>
<li id="feed-notification">
Tu hai <a href="./client.php" onclick="HabboClient.openOrFocus(this); return false;"><?php echo $count; ?> richieste di amicizia</a> attualmente!
</li>
<?php } ?>
<?php /*
$onlineCutOff = (time() - 601);
$onlineUsers = mysql_evaluate("SELECT COUNT(*) FROM users WHERE online > " . $onlineCutOff);
$get_users = mysql_query("SELECT id,name,email,ipaddress_last,hbirth,online FROM users WHERE online > " . $onlineCutOff . " ORDER BY online DESC LIMIT " . $onlineUsers) or die(mysql_error());

while($row = mysql_fetch_assoc($get_users)){

if(empty($row['ipaddress_last'])){ $row['ipaddress_last'] = "No IP Found"; }
printf(" <tr>
<td class='tablerow1' align='center'>%s</td>
<td class='tablerow2'><strong>%s</strong><div class='desctext'>%s [<a href='http://who.is/whois-ip/ip-address/%s/' target='_blank'>WHOIS</a>]</div></td>
<td class='tablerow2' align='center'><a href='mailto:%s'>%s</a></td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'>%s</td>
<td class='tablerow2' align='center'><a href='index.php?p=edituser&key=%s'><img src='./images/edit.gif' alt='Edit User Data'></a></td>
</tr>", $row['id'], $row['name'], $row['ipaddress_last'], $row['ipaddress_last'], $row['email'], $row['email'], $row['hbirth'], (time() - $row['online']) . " seconds ago", $row['id']);
}
?>

*/ ?>
<li class="small" id="feed-lastlogin">
Ultimo accesso:
<?php echo $myrow['lastvisit']; ?>
</li>


<li id="feed-friends">
Amici online: <?php
$query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$my_id."'");
$i = 0;
while($friends = mysql_fetch_array($query))
{
$getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' LIMIT 1");
if(mysql_num_rows($getfriend) > 0)
{
$i++;
if($friend < 0)
{
echo '';
}
$friend = mysql_fetch_array($getfriend);
echo '<a href="user_profile.php?name='.$friend['username'].'">'.$friend['username'].'</A>'.', ';


}
}
if($i == 0)
echo 'Nessun amico online';
?>

</li>

</ul>
</div>
<p class="last"></p>
</div>

<script type="text/javascript">
HabboView.add(function() {
L10N.put("personal_info.motto_editor.spamming", "Niente Spam!");
PersonalInfo.init("");
});


</script>



<div class="block">





</div>


<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script></br>
<div class="habblet-container minimail" id="mail">
</div>
<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 pi&ugrave &gt;&gt;</a></p>
</div>
</li>
</ul>
</div>





</li>
<?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 red ">
<h2 class="title">VIP
</h2>
<div class="box-content">
Il <b>VIP</b> e' un Gruppo esclusivo dell'Hotel che possiede comandi speciali e diversi permessi <b>Staff</b>.
<h3>Comandi Speciali:</h3>
Per scoprire l'effetto del comando cliccare la parola <b>Informazioni</b> al loro fianco.<br>
Comando: <b>:push <u>Nick</u></b> <a onclick="alert('Bastera digitare :push piu il nome della persona che si vuole spingere in avanti di una casella');return false">Informazioni</a><br>
Comando: <b>:pull <u>Nick</u></b> <a onclick="alert('Bastera digitare :pull piu il nome della persona che si vuole avvicinarla di una casella');return false">Informazioni</a><br>
Comando: <b>:mimic <u>Nick</u></b> <a onclick="alert('Bastera digitare :mimic piu il nome della persona a cui si vuole copiare il Look');return false">Informazioni</a><br>
Comando: <b>:moonwalk</b> <a onclick="alert('Bastera digitare :moonwalk per camminare come Michael Jackson');return false">Informazioni</a><br>
Comando: <b>:flagme</b> <a onclick="alert('Questo comando serve per cambiare il Nickname in Hotel.');return false">Informazioni</a><br><br>
Per acquistare il VIP bastera' andare alla pagina <a href=promo.php>Promozioni</a>.
</div>
</div>
</div>


<div class="cbb clearfix blue ">

<h2 class="title">Fan Page
</h2>
<div id="promogroups-habblet-list-container" class="habblet-list-container groups-list">
<ul class="habblet-list two-cols clearfix">

<center><div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/it_IT/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="http://www.facebook.com/pages/Sake-Italia/262708467086230" data-width="292" data-show-faces="false" data-stream="false" data-header="true"></div>
<br>
</center>

</ul>






</div>





<?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>
<?php } ?>

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





<?php /* Recommend Groups */?>











</div>





<?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; Indietro</a><span>1</span> / 3<a href="#" class="next">Avanti &raquo;</a></div>
</div>
<ul class="widelist">
<li class="even">

<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="odd">
<a href="news.php?id=<?php echo $news_5_id; ?>"><?php echo $news_5_title; ?> &raquo;</a><div class="newsitem-date"><?php echo $news_5_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 /* Recommend Groups */?>









<?php /*Groups*/ ?>
<div class="habblet-container ">
<div class="cbb clearfix red">
<div class="box-tabs-container clearfix">
<h2>Scelti dallo Staff</h2>
<ul class="box-tabs">
<li id="tab-rooms"><a href="#">Stanze</a><span class="tab-spacer"></span></li>

<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>








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







<?php $sql = mysql_query("SELECT * FROM cms_recommended WHERE type = 'room' ORDER BY id ASC") or die(mysql_error());
while($row = mysql_fetch_assoc($sql)) {
$i++;

$roomsql = mysql_query("SELECT * FROM rooms WHERE id = '".$row['rec_id']."' LIMIT 1");
$roomrow = mysql_fetch_assoc($roomsql);

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


?>
<li class="<?php echo $even; ?>">




<div class="hotcampaign-container">
<img src="./habbo-imaging/rooms/space.png"><br><img src="./habbo-imaging/rooms/space2.png" align="left"><img src="./habbo-imaging/rooms/stanza.png" align="left"><img src="./habbo-imaging/rooms/space.png"><br>&nbsp;<b><?php echo HoloText($roomrow['caption']); ?></b><br>&nbsp;Di: <a href="user_profile.php?name=<?php echo HoloText($roomrow['owner']); ?>"><?php echo HoloText($roomrow['owner']); ?></a><br>&nbsp;




</li>
<?php } ?>














</div>










<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_details 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']; ?>"><?php echo HoloText($grouprow['name']); ?></a>
</li>
<?php } ?>
</ul>
</div>


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

<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title">Radio
</tr>

<?php /* Groups */ ?>



</div>
<div class="habblet-container ">




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


</div>




<div class="habblet-container ">
<div class="ad-container">




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

</script>




<?php

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

?>


@TheJackpot non c'è la sezione group
 
Ultima modifica:
Riferimento: Aggiungere i gruppi nella me.

Vai nella tabella cms_recommended e fammi uno screen.
 
Riferimento: Aggiungere i gruppi nella me.

Si che ci sono
--------------- AGGIUNTA AL POST ---------------


Si che ci sono

Nel Hk c'è una pagina creata per fare questo ovvero vai in"Housekeeping->Sito & contenuti->Raccomandati dallo staff(sotto nel menu a sinistra)-Inserisci oggetti raccomandati"

E poi li metti se vuoi una stanza o un gruppo metti l'id della stanza o del gruppo ;)

Spero di esserti stato utile ;)
 
Riferimento: Aggiungere i gruppi nella me.

Nel Hk c'è una pagina creata per fare questo ovvero vai in"Housekeeping->Sito & contenuti->Raccomandati dallo staff(sotto nel menu a sinistra)-Inserisci oggetti raccomandati"

E poi li metti se vuoi una stanza o un gruppo metti l'id della stanza o del gruppo ;)

Spero di esserti stato utile ;)
Grazie mille! Problema risolto segnalo @Jeckoz @Aqui10
 
Riferimento: Aggiungere i gruppi nella me.

Sposto e rinomino in problemi risolti.