without DB modification (add new field) u only can show how many MEMBERS visited the gallery.
if that's ok with u, then try this:
1.
In index.php just before //----Print out---- add this code:$sql = "SELECT ".get_user_table_field("", "user_id")." , ".get_user_table_field("", "user_name")."
FROM ".USERS_TABLE."
WHERE ".get_user_table_field("", "user_id")." <> ".GUEST." AND ".get_user_table_field("", "user_lastaction")." >= ".(time() - 60 * 60 * 24 * 1)." AND ".get_user_table_field("", "user_invisible")." = 0
ORDER BY ".get_user_table_field("", "user_lastaction")." DESC";
$result = $site_db->query($sql);
$today_users = $site_db->get_numrows($result);
$today_users_list = "";
while ($todayusers = $site_db->fetch_array($result)){
$today_users_list .= (($today_users_list) ? ", " : "")."<a href=\"".ROOT_PATH."member.php?action=showprofile&".URL_USER_ID."=".$todayusers[$user_table_fields['user_id']]."\">".$todayusers[$user_table_fields['user_name']]."</a>";
}
$site_template->register_vars(array(
"today_users" => $today_users,
"today_users_list" => $today_users_list
));
then in home.html or whos_online.html add {today_users} - to display number of members and/or {today_users_list} - to display usernames of members visited in last 24 hours.