Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: small tekstas
Parašė munte1· 2010 Sau. 6 17:01:15
#1
kaip padaryti ant user last senn paneles kad butu sumazintos raides?
Parašė smart· 2010 Sau. 6 17:01:10
#2
<small>tekstas</small>
Parašė munte1· 2010 Sau. 6 17:01:34
#3
Corby parašė:
<small>tekstas</small>
o kur iterpti ta koda?nes kai bandziau man issikraipo visas puslapis.tai yra nebelikoa jokio tekto puslapyje
Parašė smart· 2010 Sau. 6 17:01:24
#4
Duok savo user last seen panelės kodą. Ir nepamiršk dėdamas čia paspausi code ir ten įrašyti.
Parašė munte1· 2010 Sau. 6 17:01:07
#5
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| 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."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."last_seen_users_panel/locale/English.php";
}
openside($locale['lsup000']);
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$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['lsup001'];
} elseif ($lastseen < 360){
$lastseen = $locale['lsup002'];
} elseif ($iW > 0){
if ($iW == 1) {
$text = $locale['lsup003'];
} else {
$text = $locale['lsup004'];
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = $locale['lsup005'];
} else {
$text = $locale['lsup006'];
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side' align='left'>".THEME_BULLET."\n";
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side' align='right'>".$lastseen."</td>\n</tr>\n";
}
}
echo "</table>";
closeside();
?>
Redagavo munte1· 2010 Sau. 6 17:01:49
Parašė smart· 2010 Sau. 6 17:01:03
#6
Kurią tu vietą nori,kad tau būtų sumažinta?
Parašė munte1· 2010 Sau. 6 17:01:56
#7
ten kur rodo nicka ir salimais laika pries kiek laiko ar dienu buvo prisijunges
Parašė smart· 2010 Sau. 6 17:01:03
#8
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| 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."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."last_seen_users_panel/locale/English.php";
}
openside($locale['lsup000']);
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$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['lsup001'];
} elseif ($lastseen < 360){
$lastseen = $locale['lsup002'];
} elseif ($iW > 0){
if ($iW == 1) {
$text = $locale['lsup003'];
} else {
$text = $locale['lsup004'];
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = $locale['lsup005'];
} else {
$text = $locale['lsup006'];
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side' align='left'>".THEME_BULLET."\n";
echo "<small><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'></small>\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side' align='right'><small>".$lastseen."</small></td>\n</tr>\n";
}
}
echo "</table>";
closeside();
?>
Redagavo smart· 2010 Sau. 6 17:01:11
Parašė munte1· 2010 Sau. 6 17:01:56
#9
dekuj.geriau nei buvo, bet nickai didesni negu kur laikas rasosi.ar cia taip turi buti ar eina padaryt vienodus dydzius?
Parašė smart· 2010 Sau. 6 17:01:45
#10
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| 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."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."last_seen_users_panel/locale/English.php";
}
openside($locale['lsup000']);
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$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['lsup001'];
} elseif ($lastseen < 360){
$lastseen = $locale['lsup002'];
} elseif ($iW > 0){
if ($iW == 1) {
$text = $locale['lsup003'];
} else {
$text = $locale['lsup004'];
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = $locale['lsup005'];
} else {
$text = $locale['lsup006'];
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side' align='left'>".THEME_BULLET."\n";
echo "<small><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
echo trimlink($data['user_name'], 15)."</a></small></td><td class='side' align='right'><small>".$lastseen."</small></td>\n</tr>\n";
}
}
echo "</table>";
closeside();
?>
Redagavo smart· 2010 Sau. 6 17:01:51
Parašė munte1· 2010 Sau. 6 17:01:03
#11
DIDELIS DEKUJ
Corby parašė:
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| 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."last_seen_users_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."last_seen_users_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."last_seen_users_panel/locale/English.php";
}
openside($locale['lsup000']);
$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$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['lsup001'];
} elseif ($lastseen < 360){
$lastseen = $locale['lsup002'];
} elseif ($iW > 0){
if ($iW == 1) {
$text = $locale['lsup003'];
} else {
$text = $locale['lsup004'];
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = $locale['lsup005'];
} else {
$text = $locale['lsup006'];
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side' align='left'>".THEME_BULLET."\n";
echo "<small><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\n";
echo trimlink($data['user_name'], 15)."</a></small></td><td class='side' align='right'><small>".$lastseen."</small></td>\n</tr>\n";
}
}
echo "</table>";
closeside();
?>
Parašė smart· 2010 Sau. 6 17:01:12
#12
Įvertink 10 ir parašyk komentarą :D