I'm trying to set some fake activity on my brand new community. The code below seems to work fine, but I have two little issues:
1. Every page refresh I get a random list of new fake users. How can I set this, that it will only be execute when the users activity list should be updated?
2. For some reason, my Admin user is not always showing up in the activity list. When I logged-in with a regular user (that not in the fake list) it seems to be fine.
Code: Select all
$my_fake_users = array(48,49,50,51,52); shuffle($my_fake_users ); $fake_users_to_show = rand(1, 4); $fake_selected = array_slice($my_fake_users , $fake_users_to_show ); $online_users = array( 'online_users' => fake_selected, 'hidden_users' => array(), 'total_online' => 0, 'visible_online' => sizeof(fake_selected), 'hidden_online' => 0, 'guests_online' => 0, );