- 8 Dicembre 2010
- 1.495
- 0
- Miglior risposta
- 0
Ciao Sciaxini Su Kekomundo ho trovato questo nuova pagina per phoenix cms e la ho tradotta... Screen: Stringa per esperti (per chi lo sappia inserire): <div class="boxHeader"><center>Utenti Casuali</center></div><br>
<?php $getrandom = mysql_query("SELECT * FROM users ORDER BY RAND() LIMIT 18;"); while($random = mysql_fetch_array($getrandom)) { ?><span class="hotspot" onmouseover="tooltip.show('<?php echo $random['username']; ?>');" onmouseout="tooltip.hide();">"><img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=title=<?php echo $random['look']; ?>" style="margin: -22px -5px -3px -18px;"title="Visita la sua pagina" /></a> </span> <?php } ?> Community.php per chi non sappia inserire la stringa: <?php
define('USERNAME_REQUIRED', TRUE); define('ACCOUNT_REQUIRED', TRUE); include('global.php'); define("THIS_SCRIPT", 'community'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $sitename." - ".$lang['community']; ?></title> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script> <script type="text/javascript" src="Public/JS/jquery.history.js"></script> <link type="text/css" rel="stylesheet" href="Public/Styles/<?php echo $currentstyle ?>/CSS/main.css" /> </head> <body> <div class="mainBox"> <?php include("header.php"); ?> <?php include("system/communitynav.php"); ?> <div class="mid" id="midcontent"> <div class="column" id="column1"> <div class="contentBox"> <div class="boxHeader"><center>Utenti Casuali</center></div><br> <?php $getrandom = mysql_query("SELECT * FROM users ORDER BY RAND() LIMIT 18;"); while($random = mysql_fetch_array($getrandom)) { ?><span class="hotspot" onmouseover="tooltip.show('<?php echo $random['username']; ?>');" onmouseout="tooltip.hide();">"><img src="http://www.habbo.com/habbo-imaging/avatarimage?figure=title=<?php echo $random['look']; ?>" style="margin: -22px -5px -3px -18px;"title="Visita la sua pagina" /></a> </span> <?php } ?> <div class="boxContent"><center><?php echo $lang['community_overview']; ?></center></div> </div> <div class="contentBox"> <div class="boxHeader"><center>Más navegación</center></div> <div class="boxContent" align="center">La navegación aquí </div> </div> </div> <div class="column" id="column2"> <?php $query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 1"); $num = mysql_num_rows($query); if($num > 0) { $news = mysql_fetch_array($query); echo'<div class="newsHeader"> <div class="HeadlineStory" id="'.$news["id"].'" style="background: url('.$news["image"].') no-repeat; display:block;"> <p class="Mainheadline"><a href="articles.php?story='.$news["id"].'">'.stripslashes($news["title"]).'</a></p> <p class="Mainstory">'.strip_tags($news["shortstory"], '<br><br/><br />').'</p> </div> </div>'; $color = 'odd'; $query = mysql_query("SELECT * FROM cms_news ORDER BY published DESC LIMIT 5"); while($news = mysql_fetch_array($query)) { echo'<div class="storybox" id="'.$color.'" ref="'.$news["id"].'"> <p class="headline"><a href="articles.php?story='.$news["id"].'">'.$news["title"].'</a></p> <p class="date">'.@date("d-m-Y", $news['published']).'</p> </div>'; if($color == 'odd') $color='even'; else $color='odd'; } } ?> <div class="storyboxEnd"> <div class="readmore"><a href="articles.php"><?php echo $lang['read_more']; ?></a></div> </div> </div> <?php include("system/sideads.php"); ?> </div> <?php include("system/footer.php"); ?> </div> </body> </html> Beh che dire...alla prossima |
Ultima modifica: