edit

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
synicarus
Forum Newbie
Posts: 7
Joined: Tue Sep 16, 2003 10:23 pm

edit

Post by synicarus »

edit
Last edited by synicarus on Mon Jul 09, 2007 6:09 pm, edited 1 time in total.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Post by Jade »

It looks like some of the varibles from the gallery are screwing with the varibles from your index page. Try uninstalling the gallery and see if that fixes the problem. If not you'll need to go in manually and fix things.

Jade
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

Post by wmasterj »

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.
;) :D
synicarus
Forum Newbie
Posts: 7
Joined: Tue Sep 16, 2003 10:23 pm

Post by synicarus »

hey thanks a lot i'll try that :D
synicarus
Forum Newbie
Posts: 7
Joined: Tue Sep 16, 2003 10:23 pm

Post by synicarus »

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.
;) :D
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)
MishaPappa
Forum Newbie
Posts: 7
Joined: Wed Jul 30, 2003 7:49 am
Location: Location... Location

Post by MishaPappa »

Viewing the "block-User_Info" for PHP-Nuke, you'll find these lines which calculate and set the values for People Online elements:

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;
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.
Post Reply