Witam wszystkich forumowiczów!!Przerabiam już od jakichś 2 tygodni welcome_message_panel.Chce w nim dac w sumie 4 panele.Najpierw będzie widoczny dla gości last seen users obok najnowsze posty i ostatnio dodane pliki a po zalogowaniu usera znika ostatnio dodane pliki i pojawia sie moj panel z jakimiś linkami.W sumie juz zaczalem go pisac mam w nim last seen users a po zalogowaniu usera last seen users i moj panel ale za chiny nie moge wstawic i znalezc skryptu na ostatnio dodane i najnowsze posty.A do tego nie chce tej ramki co jest tylko <FIELDSET></FIELDSET>
Adres strony:http://www.bielsk... patrzcie na welcome message panel
A oto skrypt już cześciowo zmodyfikowanego welcome_message_panel jeszcze bez ramek:<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
opentable($locale['024']);
echo stripslashes($settings['siteintro'])."\n
<hr>";
echo "<table cellpadding='0' cellspacing='10' width='100%'>
<tr>
<td width='50%' valign='top'>\n";
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";
}
$result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,5");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n";
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= "Online";
} elseif ($lastseen < 360){
$lastseen= "< 5 mins";
} elseif ($iW > 0){
if ($iW == 1) { $text = "week"; } else { $text = "weeks"; }
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) { $text = "day"; } else { $text = "days"; }
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n";
echo "<td class='side-small' align='left'><img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>".trimlink($data['user_name'], 20)."</a></td>\n";
echo "<td class='side-small' align='right'>".$lastseen."</td>\n";
echo "</tr>\n";
}
echo "</table>\n";
}
echo "<br><hr><br>\n";
// Zarejestrowanych
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
// Oczekuj±cych na aktywację
if ($settings['admin_activation'] == "1")
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
// Najnowszy uzytkownik
$data = dbarray(dbquery("SELECT user_id,user_name,user_color,user_prefix FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."<br></a>\n";
// Gosci online
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].dbrows($result);
if (iMEMBER) {
echo "</td>\n<td width='50%' valign='top'>\n";
include INFUSIONS."welcome_message_panel/locale/Polish.php";
echo " <img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."infusions/usergalerie/edit_usergalerie.php' class='side'> Twój Fotoalbum</a><br>\n";
echo " <img src='".THEME."images/bullet.gif' alt=''><a href='".BASEDIR."infusions/error_reports/error_reports.php' class='side'> ".$locale['DENIM_3']."</a><br>\n";
echo " <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."infusions/eXtreme_cytat/cytat_add.php' class='side'>".$locale['DENIM_2']."</a><br>\n";
echo " <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."infusions/eXtreme_joke/joke_add.php' class='side'>".$locale['JAZOON_105']."</a><br>\n";
echo " <img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."movie_add.php' class='side'>".$locale['DENIM_1']."</a>\n";
echo "</td>\n";
}
echo "</tr>
</table>";
closetable();
?>
Edytowane przez miczeg dnia 27.08.2006 16:42:57
|