Changeset 6254
- Timestamp:
- 08/01/06 10:27:01 (2 years ago)
- Files:
-
- wp-useronline/trunk/readme.html (modified) (1 diff)
- wp-useronline/trunk/useronline/useronline.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-useronline/trunk/readme.html
r6244 r6254 217 217 <b>Version 2.05 (01-08-2006)</b> 218 218 <ul> 219 <li>NEW: get_users_browsing_site(false) And get_users_browsing_page(false) Will Now Return An Array Containing Total Users, Total Members, Total Guests and Total Bots Online</li> 219 220 <li>FIXED: Invalid IP Error</li> 220 221 <li>FIXED: If Site URL Doesn't Match WP Option's Site URL, WP-UserOnline Will Not Work</li> wp-useronline/trunk/useronline/useronline.php
r6244 r6254 199 199 200 200 ### Function: Display Users Browsing The Site 201 function get_users_browsing_site( ) {201 function get_users_browsing_site($display = true) { 202 202 global $wpdb; 203 203 … … 237 237 $total_users = ($total_guests+$total_bots+$total_members); 238 238 239 // If We Do Not Display It, Return Respective Users Count 240 if(!$display) { 241 return array ($total_users, $total_members, $total_guests, $total_bots); 242 } 243 239 244 // Nice Text For Guests 240 245 if($total_guests == 1) { … … 279 284 280 285 ### Function: Display Users Browsing The Page 281 function get_users_browsing_page( ) {286 function get_users_browsing_page($display = true) { 282 287 global $wpdb; 283 288 … … 316 321 } 317 322 $total_users = ($total_guests+$total_bots+$total_members); 323 324 // If We Do Not Display It, Return Respective Users Count 325 if(!$display) { 326 return array ($total_users, $total_members, $total_guests, $total_bots); 327 } 318 328 319 329 // Nice Text For Members
