Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

user online
https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=433
Page 1 of 1

Author:  Farnsi [ 5. Aug 2006, 16:55 ]
Post subject:  user online

Hi! Thanks for this great gallery, it works just fine!
i am missing one little thing. Is there by any chance the possibility to integrate a function which shows how many users are online at this moment? Like "2 users online" or else? or perhaps it is integrated but i havent found it yet?!
greeting farnsi

Author:  TinyWebGallery [ 7. Aug 2006, 08:58 ]
Post subject: 

Hi,

It's actually there ;).
in the counter.inc.php - you would just to print it from there.
it's stored in the file counter/useronline.txt

/Michael

Author:  Farnsi [ 8. Aug 2006, 12:26 ]
Post subject: 

ok, thats fine, but what shall i do?! this gallery is the first time i work with php and i don't exactly know what to do. could you give me some short advice, please?! :D

Author:  TinyWebGallery [ 8. Aug 2006, 13:14 ]
Post subject: 

at the very end of counter.inc.php (before the ?>)

add something like:

echo "Online: " . $user;

/Michael

Author:  Farnsi [ 8. Aug 2006, 16:28 ]
Post subject: 

Thank you very much, it's working just the way i wanted it to! :D

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/