Parašė shit-· 2009 Vas. 4 18:02:29
#1
Štai paskutiniai nariai panelė ir kaip išsitampo man:
Gal galite pataisyti ? Viskas būna gerai kai padarai šitą modą didesnį, bet man reikia mažesnio ir tada pasidaro taip.
Modo styles.css
#onair
{
padding: 3px;
height: 100px;
width: 490px;
margin:0 auto;
}
#onair_scroll_left, #onair_scroll_right
{
cursor: pointer;
float: left;
padding-top: 42px;
width: 11px;
}
#onair_container
{
width: 550px;
float: left;
height: 100px;
position: relative;
overflow: hidden;
}
#onair_scroll
{
width: 2740px;
}
#onair_scroll div
{
position: relative;
text-align: center;
font-size: 9px;
float: left;
margin:5 auto;
margin-left: 0px;
padding: 3px;
}
#onair_scroll a
{
border-bottom: none;
}
Modo panelė:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: onair_panel.php
| Version: 1.00
| Author: Domi & fetloser
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
if (file_exists(INFUSIONS."onair_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."onair_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."onair_panel/locale/English.php";
}
opentable($locale['onair011']);
echo "
<link rel='stylesheet' type='text/css' href='".INFUSIONS."onair_panel/onair.css'>
<script type='text/javascript' src='".INFUSIONS."onair_panel/womlib.js'></script>
<script type='text/javascript' src='".INFUSIONS."onair_panel/onair.js'></script>
";
echo '
<div id="onair" align="center">
<div id="onair_scroll_left">
<b>«</b>
</div>
<div id="onair_container">
<div id="onair_scroll">';
//$result=dbquery("SELECT user_name,user_id,user_lastvisit,user_avatar FROM ".$db_prefix."users WHERE user_level < 103 ORDER BY user_lastvisit DESC LIMIT 40"); //This one will hide super admins!
$result=dbquery("SELECT user_name,user_id,user_lastvisit,user_avatar FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 40");
while($data=dbarray($result)){
if (file_exists(INFUSIONS."varcade/index.php"))
{
$resultgamer =dbquery("SELECT * FROM ".$db_prefix."varcade_activeusr where player ='".$data['user_id']."' ");
$gdata=dbarray($resultgamer);
}
else
{
$gdata ="0";
}
if (file_exists(INFUSIONS."the_kroax/kroax.php"))
{
$resultvideo =dbquery("SELECT * FROM ".$db_prefix."kroax_activeusr where member ='".$data['user_id']."' ");
$vdata=dbarray($resultvideo);
}
else
{
$vdata = "0";
}
if (!$data['user_avatar']) {
$image = '<img src="images/noav.gif" width="60" height="55" border"0" alt="'.$data['user_name'].'">';
} else {
$image = '<img src="images/avatars/'.$data['user_avatar'].'" width="60" height="55" alt="'.$data['user_name'].'">';
}
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d",floor($lastseen/604800));
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
$iH=sprintf("%02d",floor((($lastseen%604800)%86400)/3600));
$iM=sprintf("%02d",floor(((($lastseen%604800)%86400)%3600)/60));
$iS=sprintf("%02d",floor((((($lastseen%604800)%86400)%3600)%60)));
if ($lastseen < 60){
$lastseen= $locale['onair001'];
} elseif ($lastseen < 360){
$lastseen= $locale['onair002'];
} elseif ($iW > 0){
if ($iW == 1) { $text = $locale['onair003']; } else { $text = $locale['onair004']; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = $locale['onair005']; } else { $text = $locale['onair006']; }
$lastseen = $iD." ".$text;
} else {
$lastseen = -$iH.":".$iM.":".$iS;
}
$lastseen2 = time() - $data['user_lastvisit'];
if($data['user_id'] == $gdata['player'])
{
$lastseen2 = '<nobr><img src="'.INFUSIONS.'onair_panel/images/games.jpg" height="11" width="13" alt="'.$locale['onair007'].'"></NOBR>';
}
elseif ($data['user_id'] == $vdata['member'])
{
$lastseen2 = '<nobr><img src="'.INFUSIONS.'onair_panel/images/videos.jpg" height="11" width="13" alt="'.$locale['onair009'].'"></NOBR>';
}
elseif ($lastseen2 < 120)
{
$lastseen2 = '<nobr><img src="'.INFUSIONS.'onair_panel/images/user_online.gif" height="11" width="13" alt="'.$locale['onair008'].'"></NOBR>';
}
else
{
$lastseen2 = '<nobr><img src="'.INFUSIONS.'onair_panel/images/user_offline.gif" height="11" width="13" alt="'.$locale['onair010'].'"></NOBR>';
}
echo '
<div>'.trimlink($data['user_name'], 5).' '.$lastseen2.'<br>
<a href="profile.php?lookup='.$data['user_id'].'">'.$image.'</a><br>'.$lastseen.'
</div>';
}
echo '
</div>
</div>
<div id="onair_scroll_right">
<b>»</b>
</div>
</div>';
closetable();
?>
Redagavo shit-· 2009 Vas. 4 18:02:47