PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 17376
Šiandien: 78
Prisijungę nariai
» Svečių: 1
» Narių: 0

» Viso narių: 10,226
» Naujausias: Piter_NS

Prisijungimų istorija:
tabux 1 Diena
Matze1987 5 Dienos
Piter_NSnepamenu
MariukasRnepamenu
CepelinasXnepamenu
demeexnepamenu
sanpernepamenu
DvBnepamenu
Rasmitasnepamenu
mindagasssnepamenu
kajanasnepamenu
wertynasnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
100% [4 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
0% [0 Balsai]

Balsai: 4
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

2024-02-20 22:14
Aisku dabar tokie laikai, kai turinio valdymo sistemas valdome one-click principu. Ne kaip seniau kode ieskodavom klaidu, norint moda pasileist.. :D paciam reikdavo susidiegt viska i ftp..

2024-02-20 22:03
Sveiki kolegos 👌 kazkada rasiau greit 11 metu bet ziuriu greit 14 metu. 😄 baisuu, reik ta proga kazka sugalvot su php-f kaip jaunima itraukt.

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
Online user panel
Famiz
#1 Spausdinti pranešimą
parašyta 2011-12-16 11:37
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

Sveiki galtumt pataisyt panel, kad rodyt tik nick' ir kas online? T 'Prisijung nariai' ir t.t. i?imt reik, man neisgauna, tad pra?au js pagalbos. ?tai kodas ir foto vaizd?iau:


www.part.lt/img/cff31523ef8d95f3d045abb8c23191e0418.png


Download source  Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Author: ptown67
| Website: http://pennerprofi.bplaced.net
+--------------------------------------------------------+
| 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\"); }

add_to_head(\"
   
   
   
   \");

$result = dbquery(\"SELECT * FROM \".DB_ONLINE.\" WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\"));
if (dbrows($result)) {
   $result = dbquery(\"UPDATE \".DB_ONLINE.\" SET online_lastactive='\".time().\"' WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\").\"\");
} else {
   $result = dbquery(\"INSERT INTO \".DB_ONLINE.\" (online_user, online_ip, online_lastactive) VALUES ('\".($userdata['user_level'] != 0 ? $userdata['user_id'] : \"0\").\"', '\".USER_IP.\"', '\".time().\"')\");
}
$result = dbquery(\"DELETE FROM \".DB_ONLINE.\" WHERE online_lastactive<\".(time()-600).\"\");

openside($locale['global_010']);
$result = dbquery(
   \"SELECT ton.*, tu.user_id,user_name FROM \".DB_ONLINE.\" ton
   LEFT JOIN \".DB_USERS.\" tu ON ton.online_user=tu.user_id\"
);
$guests = 0; $members = array();
while ($data = dbarray($result)) {
   if ($data['online_user'] == \"0\") {
      $guests++;
   } else {
      array_push($members, array($data['user_id'], $data['user_name']));
   }
}

echo THEME_BULLET.\" \".$locale['global_011'].\": \".$guests.\"
\n\";
echo THEME_BULLET.\" \".$locale['global_012'].\": \".count($members).\"
\n\";
echo \"
\";

$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users ORDER BY user_lastvisit DESC LIMIT 0,20\");

   echo \"
\";
   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 = \"'Online'\";
            } elseif ($lastseen < 600){
               $lastseen = \"'online'\";
            } else {
               $lastseen = \"'Offline'\";
            }
         
         if ($data['user_level'] == 103) $userlevel = \"Administratorius\";
         if ($data['user_level'] == 102) $userlevel = \"CoAdmin\";
         if ($data['user_level'] == 101) $userlevel = \"Narys\";
         echo \"\n\";
      }
   }
   echo \"
\";
         echo trimlink($data['user_name'],15).\"
\".$lastseen.\"
\";

echo \"
\n\".THEME_BULLET.\" \".$locale['global_014'].\": \".number_format(dbcount(\"(user_id)\", DB_USERS, \"user_status<='1'\")).\"
\n\";
if (iADMIN && checkrights(\"M\") && $settings['admin_activation'] == \"1\") {
   echo THEME_BULLET.\" \".$locale['global_015'].\"\";
   echo \": \".dbcount(\"(user_id)\", DB_USERS, \"user_status='2'\").\"
\n\";
}
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".DB_USERS.\" WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,20\"));
echo THEME_BULLET.\" \".$locale['global_016'].\": \".trimlink($data['user_name'],15).\"\n\";

closeside();
?>


 
PM
Snekutis
#2 Spausdinti pranešimą
parašyta 2011-12-16 12:25
Savekas



Reputacija: 0

Pranešimai: 224
Įstojo: 2010-05-02

Bandyk tiks gal:

Download source  Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Author: ptown67
| Website: http://pennerprof...
+--------------------------------------------------------+
| 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/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

openside(\"name\");

if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

add_to_head(\"
   
   
   
   \");

$result = dbquery(\"SELECT * FROM \".DB_ONLINE.\" WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\"));
if (dbrows($result)) {
   $result = dbquery(\"UPDATE \".DB_ONLINE.\" SET online_lastactive='\".time().\"' WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\").\"\");
} else {
   $result = dbquery(\"INSERT INTO \".DB_ONLINE.\" (online_user, online_ip, online_lastactive) VALUES ('\".($userdata['user_level'] != 0 ? $userdata['user_id'] : \"0\").\"', '\".USER_IP.\"', '\".time().\"')\");
}
$result = dbquery(\"DELETE FROM \".DB_ONLINE.\" WHERE online_lastactive<\".(time()-600).\"\");

openside($locale['global_010']);
$result = dbquery(
   \"SELECT ton.*, tu.user_id,user_name FROM \".DB_ONLINE.\" ton
   LEFT JOIN \".DB_USERS.\" tu ON ton.online_user=tu.user_id\"
);

$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users ORDER BY user_lastvisit DESC LIMIT 0,20\");

   echo \"
\";
   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 = \"'Online'\";
            } elseif ($lastseen < 600){
               $lastseen = \"'online'\";
            } else {
               $lastseen = \"'Offline'\";
            }
         
         if ($data['user_level'] == 103) $userlevel = \"Administratorius\";
         if ($data['user_level'] == 102) $userlevel = \"CoAdmin\";
         if ($data['user_level'] == 101) $userlevel = \"Narys\";
         echo \"\n\";
      }
   }
   echo \"
\";
         echo trimlink($data['user_name'],15).\"
\".$lastseen.\"
\";

if (iADMIN && checkrights(\"M\") && $settings['admin_activation'] == \"1\") {
   echo THEME_BULLET.\" \".$locale['global_015'].\"\";
   echo \": \".dbcount(\"(user_id)\", DB_USERS, \"user_status='2'\").\"
\n\";
}
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".DB_USERS.\" WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,20\"));

closeside();
?>



Redagavo Snekutis 2011-12-16 12:26
 
PM
Famiz
#3 Spausdinti pranešimą
parašyta 2011-12-16 12:33
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

I?kraipo dizain.
 
PM
SysRq
#4 Spausdinti pranešimą
parašyta 2011-12-16 13:31
Vartotojo avataras

Savekas



Reputacija: 0

Pranešimai: 137
Įstojo: 2011-04-09

Snekutis i? kur kode atsirado 2 openside?
 
PM
Snekutis
#5 Spausdinti pranešimą
parašyta 2011-12-16 13:56
Savekas



Reputacija: 0

Pranešimai: 224
Įstojo: 2010-05-02

Netyia :D

?ita pabandyk:

Download source  Code

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright 2002 - 2008 Nick Jones
| http://www.php-fu...
+--------------------------------------------------------+
| Filename: online_users_panel.php
| Author: ptown67
| Website: http://pennerprof...
+--------------------------------------------------------+
| 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/licen... Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/


if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

add_to_head(\"
   
   
   
   \");

$result = dbquery(\"SELECT * FROM \".DB_ONLINE.\" WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\"));
if (dbrows($result)) {
   $result = dbquery(\"UPDATE \".DB_ONLINE.\" SET online_lastactive='\".time().\"' WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\").\"\");
} else {
   $result = dbquery(\"INSERT INTO \".DB_ONLINE.\" (online_user, online_ip, online_lastactive) VALUES ('\".($userdata['user_level'] != 0 ? $userdata['user_id'] : \"0\").\"', '\".USER_IP.\"', '\".time().\"')\");
}
$result = dbquery(\"DELETE FROM \".DB_ONLINE.\" WHERE online_lastactive<\".(time()-600).\"\");

openside($locale['global_010']);
$result = dbquery(
   \"SELECT ton.*, tu.user_id,user_name FROM \".DB_ONLINE.\" ton
   LEFT JOIN \".DB_USERS.\" tu ON ton.online_user=tu.user_id\"
);

$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users ORDER BY user_lastvisit DESC LIMIT 0,20\");

   echo \"
\";
   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 = \"'Online'\";
            } elseif ($lastseen < 600){
               $lastseen = \"'online'\";
            } else {
               $lastseen = \"'Offline'\";
            }
         
         if ($data['user_level'] == 103) $userlevel = \"Administratorius\";
         if ($data['user_level'] == 102) $userlevel = \"CoAdmin\";
         if ($data['user_level'] == 101) $userlevel = \"Narys\";
         echo \"\n\";
      }
   }
   echo \"
\";
         echo trimlink($data['user_name'],15).\"
\".$lastseen.\"
\";

if (iADMIN && checkrights(\"M\") && $settings['admin_activation'] == \"1\") {
   echo THEME_BULLET.\" \".$locale['global_015'].\"\";
   echo \": \".dbcount(\"(user_id)\", DB_USERS, \"user_status='2'\").\"
\n\";
}
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".DB_USERS.\" WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,20\"));

closeside();
?>




Arba tiesiog panele dk ?ita kod ir bus viskas tvarkoj bent pas mane nei?kraipo dizaino
Eik pridti panele i? ten visk i?trink ir dk tik ?ita kod ir turt veikti.

Download source  Code
if (!defined(\"IN_FUSION\")) { die(\"Access Denied\"); }

add_to_head(\"
   
   
   
   \");

$result = dbquery(\"SELECT * FROM \".DB_ONLINE.\" WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\"));
if (dbrows($result)) {
   $result = dbquery(\"UPDATE \".DB_ONLINE.\" SET online_lastactive='\".time().\"' WHERE online_user=\".($userdata['user_level'] != 0 ? \"'\".$userdata['user_id'].\"'\" : \"'0' AND online_ip='\".USER_IP.\"'\").\"\");
} else {
   $result = dbquery(\"INSERT INTO \".DB_ONLINE.\" (online_user, online_ip, online_lastactive) VALUES ('\".($userdata['user_level'] != 0 ? $userdata['user_id'] : \"0\").\"', '\".USER_IP.\"', '\".time().\"')\");
}
$result = dbquery(\"DELETE FROM \".DB_ONLINE.\" WHERE online_lastactive<\".(time()-600).\"\");

openside($locale['global_010']);
$result = dbquery(
   \"SELECT ton.*, tu.user_id,user_name FROM \".DB_ONLINE.\" ton
   LEFT JOIN \".DB_USERS.\" tu ON ton.online_user=tu.user_id\"
);

$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users ORDER BY user_lastvisit DESC LIMIT 0,20\");

   echo \"
\";
   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 = \"'Online'\";
            } elseif ($lastseen < 600){
               $lastseen = \"'online'\";
            } else {
               $lastseen = \"'Offline'\";
            }
         
         if ($data['user_level'] == 103) $userlevel = \"Administratorius\";
         if ($data['user_level'] == 102) $userlevel = \"CoAdmin\";
         if ($data['user_level'] == 101) $userlevel = \"Narys\";
         echo \"\n\";
      }
   }
   echo \"
\";
         echo trimlink($data['user_name'],15).\"
\".$lastseen.\"
\";

if (iADMIN && checkrights(\"M\") && $settings['admin_activation'] == \"1\") {
   echo THEME_BULLET.\" \".$locale['global_015'].\"\";
   echo \": \".dbcount(\"(user_id)\", DB_USERS, \"user_status='2'\").\"
\n\";
}
$data = dbarray(dbquery(\"SELECT user_id,user_name FROM \".DB_USERS.\" WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,20\"));

closeside();
?>



Redagavo Snekutis 2011-12-16 14:00
 
PM
Famiz
#6 Spausdinti pranešimą
parašyta 2011-12-16 14:03
Vartotojo avataras

Pradinukas



Reputacija: 0

Pranešimai: 33
Įstojo: 2008-10-05

o, dkui, tuo antru kodu ir pasinaudojau :)
 
PM
Snekutis
#7 Spausdinti pranešimą
parašyta 2011-12-16 15:57
Savekas



Reputacija: 0

Pranešimai: 224
Įstojo: 2010-05-02

Nr u? k;]
 
PM
Peršokti į forumą: