Obsah fóra
PravidláRegistrovaťPrihlásenie




Odpovedať na tému [ Príspevkov: 4 ] 
AutorSpráva
Offline

Užívateľ
Užívateľ
Scháním mod-který ukáže kolik lidi bylo na foru

Registrovaný: 17.11.06
Prihlásený: 12.07.09
Príspevky: 65
Témy: 16
Príspevok NapísalOffline : 22.11.2006 12:05

Scháním mod-který ukáže kolik lidí bylo na foru ,ale jako jména za posledních 24 hodin

tenhle mod to neni tem sem skusil

http://www.pcforum.sk/posts-in-last-24- ... t7361.html


Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Scháním mod-který ukáže kolik lidi bylo na foru

Registrovaný: 01.05.05
Príspevky: 13348
Témy: 1496
Bydlisko: Bratislava
Príspevok NapísalOffline : 22.11.2006 12:07

nieje to mozno preto ze sa to vola Posts in Last 24 Hours :)

a tu mas mod, vola sa Users of the day

Kód:
########################################################
##
## MOD Title:   Users of the day
## MOD Version: 2.1
## Author:     ZoZo <zozo@etoiles.net>
##
## Description: 
## Displays, under the online users list, a list of the registered users
## who have visited during the last XX hours. Can also display the list
## of the users who didn't come. (see "Edit below")
##
## Installation Level:  easy
## Installation Time:  2-3 minutes
##
## Files To Edit:         3
##                   - /templates/subSilver/index_body.tpl
##                   - /language/lang_english/lang_main.php
##                   - /includes/page_header.php
##
## Included Files:      None
##
########################################################
## VERSION HISTORY:
##
## October 22th 2004: v2.1
## 1. Now admins are displayed first, then mods then users.
## 2. Corrected a problem in the text file with Easy Mod Installer.
##
## June 20th 2003: v2.0
## 1. The list's delay is customizable, but you must give a number in hours, 24 by default.
## 2. There's now a counter for each list.
## 3. The MOD doesn't display the list of the users who didn't visit by default.
##
## October 28th 2002: v1.1
## 1. The MOD uses the database variable "user_session_time" instead of "user_lastvisit", which is updated only when the user logs out.
## 
## October 15th 2002: v1.0
## 1. Created main features.
##   
########################################################
## TODO LIST:
##
## 1. Don't restrict the time unit to hours.
##
########################################################
##        PLEASE REPORT ANY BUGS OR SUGGESTIONS       ##
########################################################

#
#-----[ ACTION: open ]---------------------------------
#
/templates/subSilver/index_body.tpl
#
#-----[ ACTION: find ]---------------------------------
#
   <td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
#
#-----[ ACTION: replace by ]---------------------------
#
   <td class="row1" align="center" valign="middle" rowspan="3"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
#
#-----[ ACTION: find ]---------------------------------
#
    <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
#
#-----[ ACTION: add after ]----------------------------
#
  </tr>
  <tr>
   <td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td>
#
#-----[ ACTION: repeat for all templates ]-------------
#



#
#-----[ ACTION: open ]--------------------------------
#
/language/lang_english/lang_main.php
#
#-----[ ACTION: find ]--------------------------------
#
$lang['Registered_users'] = 'Registered Users:';
#
#-----[ ACTION: add before ]--------------------------
#
$lang['Day_users'] = '%d registered users visit during the last %d hours:';
$lang['Not_day_users'] = '%d registered users <span style="color:red">DIDN\'T</span> visit during the last %d hours:';
#
#-----[ ACTION: repeat for all languages ]------------
#



#
#-----[ ACTION: open ]--------------------------------
#
/includes/page_header.php
#
#-----[ ACTION: find ]--------------------------------
#
   'LOGGED_IN_USER_LIST' => $online_userlist,
#
#-----[ ACTION: add after ]---------------------------
#
   'USERS_OF_THE_DAY_LIST' => $day_userlist,
#
#-----[ ACTION: find ]--------------------------------
#
//
// Obtain number of new private messages
// if user is logged in
//
#
#-----[ ACTION: add before ]--------------------------
#
//
// Users of the day MOD
//

// ############ Edit below ############
// #
$display_not_day_userlist = 0;   // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24;      // change here to the number of hours wanted for the list
// #
// ############ Edit above ############

$sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time
   FROM ".USERS_TABLE."
   WHERE user_id > 0
   ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}

$day_userlist = '';
$day_users = 0;
$not_day_userlist = '';
$not_day_users = 0;

while( $row = $db->sql_fetchrow($result) )
{
   $style_color = '';
   if ( $row['user_level'] == ADMIN )
   {
      $row['username'] = '<b>' . $row['username'] . '</b>';
      $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
   }
   else if ( $row['user_level'] == MOD )
   {
      $row['username'] = '<b>' . $row['username'] . '</b>';
      $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
   }
   if ( $row['user_allow_viewonline'] )
   {
      $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
   }
   else
   {
      $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
   }
   if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
   {
      if ( $row['user_session_time'] >= ( time() - $users_list_delay * 3600 ) )
      {
         $day_userlist .= ( $day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;
         $day_users++;
      }
      else
      {
         $not_day_userlist .= ( $not_day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;
         $not_day_users++;
      }
   }
}

$day_userlist = ( ( isset($forum_id) ) ? '' : sprintf($lang['Day_users'], $day_users, $users_list_delay) ) . ' ' . $day_userlist;

$not_day_userlist = ( ( isset($forum_id) ) ? '' : sprintf($lang['Not_day_users'], $not_day_users, $users_list_delay) ) . ' ' . $not_day_userlist;

if ( $display_not_day_userlist )
{
   $day_userlist .= '<br />' . $not_day_userlist;
}

//
// End of MOD
//



#
#-----[ ACTION: save/close all ]----------------------
#

#
#-----[ ACTION: upload the modified files ]-----------
#

#
#-----[ ACTION: enjoy ]-------------------------------
#

#
#-----[ PLEASE REPORT ANY BUGS OR SUGGESTIONS]--------
#







_________________
Streacom DA2 | SilverStone Titanium SX800-LTI 800W | ASRock X299E-ITX/ac | Intel Core i9-9980XE & be quiet! Dark Rock TF | Kingston HyperX Impact 64 GB DDR4 2666 MHz | NVIDIA Titan RTX 24 GB | Intel SSD Optane 905P 480 GB NVMe U.2 & Intel SSD 750 1,2 TB NVMe U.2 & Intel SSD 660p 2 TB NVMe M.2 & Seagate BackUp Plus Portable 56 TB USB | 55" 4K OLED Dell Alienware AW5520QF & 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech G603 | Logitech F710 | Harman Kardon Sabre SB 35 & Sennheiser RS 175 | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 | iPhone X 256 GB & Pitaka Aramid | SilverStone ML05B Milo | Corsair SF600 SFX 600W | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 & NOCTUA NH-L12S | Kingston HyperX Savage 32 GB DDR4 2400 MHz | NVIDIA GeForce GT 710 1 GB | Intel SSD Optane Memory 32 GB NVMe M.2 & Intel SSD 730 240 GB SATA | Ubuntu Server
Offline

Užívateľ
Užívateľ
Scháním mod-který ukáže kolik lidi bylo na foru

Registrovaný: 17.11.06
Prihlásený: 12.07.09
Príspevky: 65
Témy: 16
Príspevok Napísal autor témyOffline : 22.11.2006 12:19

aha díky moc a co tem 1 dělá když už ho tam mám - přidalo mněto řádek vedle

Uživatelé zaslali celkem 4822 příspěvků. - 68 of them in the last 24 hours


Offline

Užívateľ
Užívateľ
Scháním mod-který ukáže kolik lidi bylo na foru

Registrovaný: 17.11.06
Prihlásený: 12.07.09
Príspevky: 65
Témy: 16
Príspevok Napísal autor témyOffline : 22.11.2006 13:34

Citácia:
#-----[ ACTION: add after ]----------------------------
#
</tr>
<tr>
<td class="row1" align="left"><span class="gensmall">{USERS_OF_THE_DAY_LIST}</span></td>
#

stýmto řádkem mám problém furt mně tam dělá čtvereček prázdný


a kdyš sem ted odstranil tento řádek tak se to srovnalo

Citácia:
</tr>
<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>


nemá se na tomto řádku něco nastavit aby to tam taky mohlo být


Odpovedať na tému [ Príspevkov: 4 ] 


Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy. Schánim mod proti proksům

v Redakčné systémy

2

514

23.01.2007 1:28

KillerSVK Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Zmizel čas strávený na fóru

v Správy pre vedenie fóra

2

927

14.11.2005 21:19

Intelman Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Vir v administraci na fóru

v Redakčné systémy

7

658

27.02.2009 16:25

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. POMOC pri inštalovaní mi ukáže toto :

v Operačné systémy Microsoft

10

599

15.02.2011 20:14

chitichitibb Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. V Číně bylo objeveno dalších 22 falešných obchodů Apple

v Novinky

2

648

13.08.2011 10:48

jawakiller Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. orange modem blika, ukaze sa iba kurzor

v Ostatné

3

609

04.04.2009 19:35

OmeGa Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. KVŮLI VÝBUCHU TABLETU APPLE IPAD AIR BYLO NUTNÉ EVAKUOVAT PO

v Novinky

21

1147

12.12.2013 14:59

KocuR Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Sháním nějaké lidi na Comp-tuning

v Ponuka práce

0

1518

15.01.2006 19:40

andrej Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Staňte se iPhone fetišistou jako stamiliony lidí

[ Choď na stránku:Choď na stránku: 1, 2 ]

v Novinky

39

1299

08.09.2010 16:11

ElNorka Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. 100 milionů lidí chodí na Facebook z iPhonu

v Novinky

15

1443

03.09.2010 18:28

JanoF Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. V roce 2013 prorazí 4096×2304 QuadHD a Intel ukáže Haswell!

v Novinky

7

781

30.01.2012 21:41

shiro Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kolik je vám let?

[ Choď na stránku:Choď na stránku: 1 ... 52, 53, 54 ]

v Krčma

1595

73080

24.12.2023 3:44

InVader Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kolik máte mobilních telefonů?

v Ostatné

16

2084

21.09.2006 17:04

Ingenium Deerro Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Kolik mají odpory wattů?

v Elektronika

29

1484

17.12.2007 18:08

Spirit Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. H: Sapphire HD4850 Dual-Slot (pencil-mod, v-mod)

v Modifikácie, návody a projekty

0

1856

18.01.2009 18:57

Vladio Zobrazenie posledných príspevkov

V tomto fóre nie sú ďalšie neprečítané témy. Orange & Black mod - mod by borec

v Modifikácie, návody a projekty

16

3134

07.08.2008 22:49

Orses Zobrazenie posledných príspevkov


Nemôžete zakladať nové témy v tomto fóre
Nemôžete odpovedať na témy v tomto fóre
Nemôžete upravovať svoje príspevky v tomto fóre
Nemôžete mazať svoje príspevky v tomto fóre

Skočiť na:  

Powered by phpBB Jarvis © 2005 - 2024 PCforum, webhosting by WebSupport, secured by GeoTrust, edited by JanoF
Ako väčšina webových stránok aj my používame cookies. Zotrvaním na webovej stránke súhlasíte, že ich môžeme používať.
Všeobecné podmienky, spracovanie osobných údajov a pravidlá fóra