Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
Darrell3831
Worker
Worker



Joined: Feb 18, 2004
Posts: 244

PostPosted: Thu Oct 20, 2005 8:47 am Reply with quote

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

_________________
[ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Oct 20, 2005 12:56 pm Reply with quote

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 Wink
 
View user's profile Send private message
Darrell3831







PostPosted: Thu Oct 20, 2005 3:12 pm Reply with quote

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. Very Happy

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. Very Happy

Thanks,
Darrell
 
Darrell3831







PostPosted: Thu Oct 20, 2005 3:39 pm Reply with quote

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







PostPosted: Thu Oct 20, 2005 3:56 pm Reply with quote

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







PostPosted: Thu Oct 20, 2005 4:32 pm Reply with quote

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:

Image

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







PostPosted: Sat Oct 22, 2005 8:15 am Reply with quote

Anyone?

Geez. why is it always me with the weird problems.... Smile
 
Darrell3831







PostPosted: Sat Oct 22, 2005 7:35 pm Reply with quote

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







PostPosted: Sat Oct 22, 2005 7:38 pm Reply with quote

It keeps MySQL from caching the result of the query. You must be using an old version of MySQL [ Only registered users can see links on this board! Get registered or login! ]
 
Darrell3831







PostPosted: Sat Oct 22, 2005 8:11 pm Reply with quote

Man-o-man, that thread did'nt show up in any of my searches.. Wish I would have seen it sooner..

Okay, thanks!

Darrell
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©