Author |
Message |
Darrell3831
Worker


Joined: Feb 18, 2004
Posts: 244
|
Posted:
Thu Oct 20, 2005 8:47 am |
|
Hi,
Nuke 7.5 patched 3.1.
The block-User_Info.php dosent reflect a guests choice of being hidden.
I searched thru the code and it dosent seem to be written into it. No where it the code does it actually query the database and see what the guest has entered in that field. (user_allow_viewonline)
Is this an oversight, omission, not supported or what?
Thanks,
Darrell |
_________________ http://www.psy-center.com |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Thu Oct 20, 2005 12:56 pm |
|
Are you referring to the generic UserInfo block or an addon, like mine? Glad to see you're still around. It's been a while  |
|
|
|
 |
Darrell3831

|
Posted:
Thu Oct 20, 2005 3:12 pm |
|
Hi Raven,
Nice to be back. I took some time off from fixing bugs in my site and started trying to write my own little program.
Now I'm back to tracking down and fixing little things that have bothered me over the months.
I'm refering to,
blocks/block-User_Info.php
It's that one that comes in chatserv's 3.1 patch and will over write your 7.5 original when uploaded.
No where in the code is the functionality written into it to query that database field and then conditionally show the hidden guest in italic if your an admin, or not to the show the guest at all if your not an admin.
I was just curious if there was a problem in the 3.1 patch archive and it was accidentally omitted, or if this functionality never exisited at all.
Yours here on this site is significantly different. I like it, is there a version of yours that works on 7.5 available? I'll look right now.
Thanks,
Darrell |
|
|
|
 |
Darrell3831

|
Posted:
Thu Oct 20, 2005 3:39 pm |
|
I found and downloaded version 2.1.1, but it's not working correctly on my nuke 7.5.
None of the people online stuff is showing up. All either blank or zeros.
I can't find version 2.1.2 in the downloads, is it there?
Thanks,
Darrell |
|
|
|
 |
Raven

|
Posted:
Thu Oct 20, 2005 3:56 pm |
|
v2.1.2 is not released yet. v2.1.1 should work just fine as i have installed it on countless 7.5 sites. As an FYI, the one that ships with phpnuke does not allow for that anyway. Have you checked your server error log to see if it shows you anything? |
|
|
|
 |
Darrell3831

|
Posted:
Thu Oct 20, 2005 4:32 pm |
|
Hi Raven,
I've tailed the error log..
tail -f error_log
and no error is being thrown when you refreash my site.
I've also turned $display_errors = 1; on in the config.php file, but nothing is showing up their either.
Here's a snap shot of what I'm seing in the site info block:
I think this is the line trying to fill in that section of the block..
Code:$sql = "SELECT SQL_NO_CACHE s.host_addr, u.user_id, u.username, u.user_allow_viewonline FROM $user_prefix"._session." s,".$user_prefix."_users u WHERE s.guest=0 AND u.username=s.uname ORDER BY u.username";
|
Thanks for any suggestions! |
|
|
|
 |
Darrell3831

|
Posted:
Sat Oct 22, 2005 8:15 am |
|
Anyone?
Geez. why is it always me with the weird problems....  |
|
|
|
 |
Darrell3831

|
Posted:
Sat Oct 22, 2005 7:35 pm |
|
I may have this resolved..
What does this do? SQL_NO_CACHE
If I remove it from the sql calls in two places the block works correctly.
Thanks,
Darrell |
|
|
|
 |
Raven

|
Posted:
Sat Oct 22, 2005 7:38 pm |
|
|
|
 |
Darrell3831

|
Posted:
Sat Oct 22, 2005 8:11 pm |
|
Man-o-man, that thread did'nt show up in any of my searches.. Wish I would have seen it sooner..
Okay, thanks!
Darrell |
|
|
|
 |
|