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)

ThomasP 06-03-2001 12:58 PM

Hi daydreamer :)

I just compared my files with yours, they are identical as far as I can see... sorry, I'm lost.

@tubedog: Does it possibly has something to do with php3?

greetings from Munich ;)
-Tom

P.S.: Unfortunately we have not the best weather at the moment, but maybe in some days will be the right weather for the beergarden :D

daydreamer 06-03-2001 01:30 PM

Thomas,

I have been messing with the online file and found only three instantses(sp?) of $loggedins, the rest were $loggedin. So, I renamed them $loggedin. That got rid of the first error.

Now if we could figure put what a parse error is... :confused:

dd

Hooper 06-03-2001 01:35 PM

Quote:

Originally posted by daydreamer
Thomas,

I guess the $160 didn't include support :(

I have been messing with the online file and found only three instantses(sp?) of $loggedins, the rest were $loggedin. So, I renamed them $loggedin. That got rid of the first error.

Now if we could figure put what a parse error is... :confused:

dd

DayDreamer,

Not to be disrespectful in any way but we are talking about a hack here. Not vBulletin. You will need to have patience. TubeDogg as well as others program these hacks for us but he and the others also moderate the forums. He is a very busy guy and I'm sure he is doing the best he can. The Hacks are "free for you to try" and there is never a guarantee that they will work in any way shape or form. Most hacks are in a perpetual state of developement. They are not part of vBulletin or the vBulletin program nor are they supported as such by vBulletin. The $160.00 you paid does include support. If you have a problem with the vBulletin program, please post in the appropriate forum.
Although TubeDogg tries to answer questions and support his addons, it may take a day or two to get a response. If I could have helped you I would. I didn't have the answer. There very well could be a situation with the .php3 extension but I just don't know what it would be other than maybe a path statement being incorrect somewhere. But I assure you, set aside a few small items that could be improved, this script hack does indeed work.
I don't know if anything else was mentioned on it, you may go back and read the entire thread.

daydreamer 06-03-2001 01:45 PM

Hooper,

You are so right... and I do apologize :)

It's been a late night and a early morning here.

Thank you Hooper for showing me the error of my ways. :(

dd

Freddie Bingham 06-04-2001 04:53 PM

In my research for creating the official version of this for v2.1 (or perhaps even an earlier version if I get it finished soon) I have found that this is the query you need if you want to only have the latest entry for each user. That being said this query is not very nice and I will let you know that I have found others way to achieve what I need without using this resource hog:
Code:

$users = $DB_site->query("SELECT s1.userid, username, s1.location, s1.host, invisible
                            FROM session s1, session s2, user
                            WHERE s1.userid = s2.userid AND user.userid = s1.userid
                            GROUP BY s1.userid, s1.lastactivity
                            HAVING Max(s1.lastactivity) = Max(s2.lastactivity)
                            ORDER BY username
                            ")

Remember you can not grab the guests with this since the GROUP BY would compact them all into one record. You have to use a second query to get them. Just something for you to play around if you want the easiest way to squash multiple users, though not the most efficient way.

daydreamer 06-04-2001 07:38 PM

Hello,

After carefully following the instructions, I get the following error:

Warning: Variable $loggedins is not an array or string in /home/noc/dre-www/board/online.php3 on line 29

Parse error: parse error in /home/noc/dre-www/board/online.php3 on line 44

Thanks
dd

tubedogg 06-05-2001 12:43 AM

Just so everyone knows I haven't died and I'm not ignoring you, I'll post a little update.

Thanks, Freddie, for the point in the right direction. :)

For those of you getting parse errors, I'm working on it. Not sure why as it's still running cleanly on my server, might have something to do with php3.

webhost 06-05-2001 12:29 PM

Is there a board somewhere that I can see this hack in action?

Joey

Johnny 06-05-2001 01:13 PM

in the template forumhome_loggedinusers i can't find this: <b>Currently Active Users</b>

in my template i well can find this: <b>Currently Active Users: $totalonline</b>

but this is not the same i guess..
what can i do....??

help me!

johnny

janw 06-05-2001 01:15 PM

You use a newer version of Vbulletin. This hack is based on RC2


All times are GMT. The time now is 09:34 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.01241 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)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