WebsiteBaker 2.13.9 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php UsersOnline(); ?> Optional parameters: <?php UsersOnline( $use_tooltip, $prefix , $suffix , $single , $admin_ip ) ?> $use_tooltip = Adds a small javascript to display a hovering tooltip with details of the current connections. (default := 1, 0 no tooltip) $prefix = The text in front of the user counter. ( default := "Currently: " ) $suffix = The text after the user counter when there is more than one user online. (default = " users online") $single = The text after the user counter when there is just one user online. (default = " user online") $admin_ip = The IP address that will see more details. Details are IP address and browser name (if detected) (default := "127.0.0.1")Customised Example: <?php UsersOnline(1 , "Online: " , " users" , " user", "192.168.0.1" ) ; ?>
Dumb question but is this registered users only, or total online users?
Also if total users can it can be modified to show an image for every x amount of users with the numbers? I was thinking it might be cool to create something like little characters, possibly with simple gif animations, hanging out in the stat box as a visual representation of how many users are online.
<?php UsersOnline(1 , "Currently: " , " visitors viewing this page" , " visitor viewing this page") ; ?>
Has anyone had any problems with this? It has been working fine when suddenly today the page stops loading at this callCode: [Select]<?php UsersOnline(1 , "Currently: " , " visitors viewing this page" , " visitor viewing this page") ; ?>
Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /www/modules/usersonline/include.php on line 38
<p id="usersonline"><script language="JavaScript1.2" src="http://127.0.0.1:4001/wb28/modules/usersonline/overlib_mini.js" type="text/javascript"></script><span href="javascript:void(0);" onmouseover="return overlib('23:13:06 [127.0.0.1] /wb28/ (Home) - Firefox<br/>',HAUTO,VAUTO,WIDTH,600,BGCOLOR,'#FFFFFF',FGCOLOR,'#FFFFFF',BORDER,5,WRAP);" onmouseout="return nd();">1 Besucher Online: </span> </p>
if ($use_tooltip != 0) { while($res = $counter_res->fetchRow()) { if ($admin_ip == $ipaddress) $userlist .= date("H:i:s",$res['timestamp'])." [".$res['ip']."] ".$res['page']." (".$res['page_title'].") ".bot($res['user_agent'])."<br/>"; else $userlist .= date("H:i:s",$res['timestamp'])." - ".$res['page']." (".$res['page_title'].")<br/>"; } echo '<SCRIPT language="JavaScript1.2" src="'.WB_URL.'/modules/usersonline/overlib_mini.js" type="text/javascript"></SCRIPT>'; echo "<span href=\"javascript:void(0);\" onmouseover=\"return overlib('$userlist',HAUTO,VAUTO,WIDTH,600,BGCOLOR,'#FFFFFF',FGCOLOR,'#FFFFFF',BORDER,5,WRAP);\" onmouseout=\"return nd();\">"; } if($user == 1) { echo $prefix.$user.$single; } else { echo $prefix.$user.$suffix; } if ($use_tooltip != 0) echo "</span>";
if ($use_tooltip != 0) { while($res = $counter_res->fetchRow()) { if ($admin_ip == $ipaddress) $userlist .= date("H:i:s",$res['timestamp'])." [".$res['ip']."] ".$res['page']." (".$res['page_title'].") ".bot($res['user_agent'])."<br />"; else $userlist .= date("H:i:s",$res['timestamp'])." - ".$res['page']." (".$res['page_title'].") <br />"; } echo '<script language="JavaScript1.2" src="'.WB_URL.'/modules/usersonline/overlib_mini.js" type="text/javascript"></script>'; echo "<a href=\"javascript:void(0);\" onmouseover=\"return overlib('$userlist',HAUTO,VAUTO,WIDTH,600,BGCOLOR,'#FFFFFF',FGCOLOR,'#FFFFFF',BORDER,5,WRAP);\" onmouseout=\"return nd();\">"; } if($user == 1) { echo $prefix.$user.$single; } else { echo $prefix.$user.$suffix; } if ($use_tooltip != 0) echo "</a>";
I think this is not te best project to start learning PHP coding.