vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [Release v2] Who's Online (https://vborg.vbsupport.ru/showthread.php?t=16152)

Hooper 05-09-2001 07:22 PM

Hey Tube,

Is this hack ready then.... Looks like the above errors were installation errors. Any reason not to install this yet?

Thank You,
Hooper

furious 05-10-2001 12:17 AM

Quote:

Originally posted by tubedogg


This is a problem with your server's PHP. It means for whatever reason it decided to take a break. ;) But seriously, unknown at line 0 isn't anything to do with my hack, and it's nothing that can really be fixed in terms of the scripts.

k :)
nice hack, big brother is watching you ;)

Hooper 05-11-2001 03:54 PM

Tube,

I've installed RC3 and your WOL hack. It works fantastic. I am real happy to have this one. If you would like to see it let me know. I have access blocked at this point.

Thank You,
Great work.
Hooper

Hooper 05-13-2001 01:09 AM

OOps,

Spoke to soon.

I am having problems. I need help with WOL. Each time you log in with one browser session, you close without logging off, go back and you are still logged in. (disabled in cp auto log cookie). If you log in again it shows 2 of you and so on. Then you cannot log out of the session you closed out. I have had 2 of myself on at one time. and a guest that was also me.

If you use just one browser session, login, log out, it works fine.

I reinstalled the hack and had the same thing. I did notice that there was a new string added to the sessions in RC3, or at least the line numbering changed since RC2.

on 111 $DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");

This one was not mentioned in your instructions. I didn't know if maybe this had something to do with it or not.

Something else is that you have to refresh to see WOL. If you don't hit refresh, everyone is viewing main page.

Any help appreciated.
Hooper

tubedogg 05-13-2001 01:13 AM

Hooper, you know the drill. I'm gonna need more info than "I'm having problems".

Hooper 05-13-2001 01:18 AM

I was just making sure the posting was working. It didn't work for me all day. I was having IP probs. That's fixed now so if I coould only get this working. :(

Anyhow I was adding to the above when you posted response.
Look above please.

Thanks Tube,
Hooper

tubedogg 05-13-2001 06:10 AM

Hooper, try this.

In online.php, find
Code:

$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,location
                            FROM session
                            LEFT JOIN user ON (user.userid=session.userid)
                            WHERE session.userid>0 AND session.lastactivity>$datecut
                            ORDER BY invisible, username");

Replace it with
Code:

$loggedins=$DB_site->query("SELECT DISTINCT username,session.userid,invisible,location FROM session
                                                          LEFT JOIN user ON (user.userid=session.userid)
                                                        WHERE session.userid>0 AND session.lastactivity>$datecut
                                                  ORDER BY invisible, username");


Hooper 05-13-2001 06:15 AM

I'm up. I'll go try this.......zoooom..

Hooper 05-13-2001 06:25 AM

Still the same thing... I'm not sure what to do. I go to the forums and it always shows that there is guest from the get go. Then if I log in and out I'm back to guest as should be. But if I close the browser and come back in, I am a guest, a member, etc..
Now If I log in and out It straightens up somewhat in the forums, but when I go to the show where online I am in there twice as the administrator.

I'm all for you checking this out for yourself so you can see first hand what it is doing. Everything else seems to work. If you decide you would like to see this let me know and set a time in here so I can turn off .htaccess. Or you could give me your IP and I'll add you to the user list.

This hack is going to work if it kills me. ;)


Hooper;)

Mitrofan 05-14-2001 01:03 AM

If I'm not mistaken the session table is HEAP type, meaning that it's completely in RAM, and is lost when mySQL server is shutdown

Does this mean that I will have to run the mysql sctipt included in this hack every time after I restart mySQL database?


All times are GMT. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01348 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete