edit
Moderator: General Moderators
yea i'm still looking, lol. any idea where these files are that i should edit and/or what i should be looking for? thanks a lot (sorry i'm a newb)wmasterj wrote:i agree with jade, but a faster solution, maybe. Is if you rename the variables for the guest-user thing and give them more specific names.
![]()
-
MishaPappa
- Forum Newbie
- Posts: 7
- Joined: Wed Jul 30, 2003 7:49 am
- Location: Location... Location
Viewing the "block-User_Info" for PHP-Nuke, you'll find these lines which calculate and set the values for People Online elements:
It doesn't appear that the script is acquiring any data from the table to fill those variables or there is no data present, hence the calculated zero value for $who_online_num variable.
You may want to take a look at the {yournukeprefix}_session table to confirm that it is getting populated when people are visiting your site. If you have visitors/members online but no data is present in this table, it would indicate that you've made some rather significant alterations during the installation of Gallery... review all of the installation steps taken.
Code: Select all
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));
$who_online_num = $guest_online_num + $member_online_num;You may want to take a look at the {yournukeprefix}_session table to confirm that it is getting populated when people are visiting your site. If you have visitors/members online but no data is present in this table, it would indicate that you've made some rather significant alterations during the installation of Gallery... review all of the installation steps taken.