PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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
View user's profile Send private message Visit poster's website
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

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?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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!
View user's profile Send private message Visit poster's website
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

Anyone?

Geez. why is it always me with the weird problems.... Smile
View user's profile Send private message Visit poster's website
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

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

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 to the forums!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Darrell3831
Worker
Worker


Joined: Feb 18, 2004
Posts: 244

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

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

Okay, thanks!

Darrell
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum