Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-06-2001 Last Update: Never Installs: 13
 
No support by the author.

UPDATE: v0.2.2 has been released, fixing the problem of session hashes not always being removed and replaced correctly in the URLs of where people are. It also attempts to fix the problem of members appearing on the list twice, however don't hold your breath on this one.
To upgrade, just reupload online.php to your server.
--------------------------------
Old update: v0.2.1 has been released. If you already have this hack installed and working you DO NOT NEED TO UPGRADE! The only change is I adjusted the instructions to account for an error in the order I had them in. THERE IS NO CHANGE TO THE HACK ITSELF. If you have not gotten this installed and working yet, please download the zip file (online021.zip) and work from that one.
--------------------------------
Old Update: You can now see where guests are on your board. To upgrade, simply download the new zip file, and read the UPGRADE INSTRUCTIONS in the online.txt file.
--------------------------------
Old Update: I fixed a small bug that was making one long string out of the URL To upgrade, just replace online.php on your server.
--------------------------------
Old Update: I added the missing mysql.php file.
--------------------------------

This has been requested many, many times. It produces a page that displays who's online and where they are. You can link to it from anywhere on your board, or make it just for Admins and Moderators (instructions for that included).

Hack version: v0.2.2

For version: vB2 RC2

Files needed: online.php

Files to edit: admin/sessions.php, possibly admin/index.php and mod/index.php

Templates to edit/create: online, online_userbits, online_guestbits, possibly forumhome_loggedinusers

Instructions are included in the zip file.

Feedback wanted.
Please do not PM or IM me about this hack. Please post it in this thread. Thanks!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 05-16-2001, 12:53 PM
Mitrofan
Guest
 
Posts: n/a
Default

Its normal to see some people more than once in whose online and it was not intended to be a exact real-time statistics of where the users are.

If you don't log-out, the session table has no way of updating itself.

If you don't logout and just close the browser, you still going to be listed in users online on forum home page for the duration of the time-out set in admin CP

The same with who's online, if user closed the browser, then comes back to forum it will list him twice for some time untill his first session times out.

There must be the way to improve this hack to only show the latest session info for the user.

I think this hack needs at least one or two more improvement, Kevin knows what it is.
  #83  
Old 05-16-2001, 12:54 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately I'm not entirely sure how to fix this. I'm already pulling the records as distinct from the session table, so it should only pull one record per userid.

The other thing you mentioned,
Quote:
If you are inactive for a while and then click on refresh, you might find that there's nobody on
this can happen if you are inactive for 15 minutes (or however long the cookie timeout is set in the Admin CP) and then refresh the page. Your session has expired and when your refresh the page, it creates a new session for you, however it happens while the page is loading so it won't find that session and display it. That also applies to the other things you mentioned (being seen as other places). This does not apply to the problem of appearing multiple times.

I'll keep looking into it.
  #84  
Old 05-16-2001, 01:06 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have released the latest version (v0.2.2) of Who's Online. You can download it from the first post in this thread. To upgrade, just reupload online.php to your server.
  #85  
Old 05-17-2001, 04:22 AM
kesha1
Guest
 
Posts: n/a
Default

It's me again, your critic
No, actually I'm your admierer. I just want this thing to work perfectly, therefor I think I'm helpful.
BTW, thank you very much for your email, I think you are an exceptionally nice guy.
Another problem: If you leave the Who's Online window open and your IP (I think this is the reason) changes, because of re-connecting a dile-up, for example,
refreshing of the page will show that you are not there.
It is kinda important for me, and I hope there is a solution to that.
Thank you in advance.
  #86  
Old 05-17-2001, 07:41 AM
Hooper's Avatar
Hooper Hooper is offline
 
Join Date: Oct 2001
Location: St. Louis, Mo
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not sure if anyone is interested, but I've installed a javascript that will allow for manual and automatic page refresh that can be set to a certain number of seconds. This pretty much solves the refresh as far as I'm concerned. Not that most people wouldn't refresh by their browser anyhow, but.....some won't.



Javascript Code: for auto refresh..

<head>
<title></title>
<script language="JavaScript">
<!--

var sURL = unescape(window.location.pathname);

function doLoad()
{

setTimeout( "refresh()", 60*1000 );
}

function refresh()
{

window.location.href = sURL;
}
//-->
</script>

<script language="JavaScript1.1">
<!--
function refresh()
{

window.location.replace( sURL );
}
//-->
</script>

<script language="JavaScript1.2">
<!--
function refresh()
{

window.location.reload( false );
}
//-->
</script>
</head>
<body onload="doLoad()">
</body>
</html>

Javascript code for manual refresh:..

<html>
<head>
<script language="JavaScript">

var sURL = unescape(window.location.pathname);

function refresh()
{
window.location.href = sURL;
}
//-->
</script>

<script language="JavaScript1.1">
<!--
function refresh()
{
window.location.replace( sURL );
}
//-->
</script>

<script language="JavaScript1.2">
<!--
function refresh()
{
window.location.reload( false );
}
//-->
</script>
</head>

<body>

<p><a href="javascript:refresh()"><img src="images/wolbutton.gif" border="0"
align="middle" width="71" height="70"></a>image as a button</p>

</body>
</html>


I have both manual and auto installed. Both work fine together. I would install the auto above the manual in the header. And of course be sure to put everything in its proper place.
This is installed in the online template. Also I wouldn't advise installing a metatag refresh. These can cause problems.

If you decide to use this for your WOL and have problems with it, PM me instead of posting in here unless Kevin states otherwise.

SeeYa....
  #87  
Old 05-17-2001, 02:04 PM
kesha1
Guest
 
Posts: n/a
Default

Very helpful script,
Thanks a lot
  #88  
Old 05-17-2001, 02:21 PM
kesha1
Guest
 
Posts: n/a
Default

As far as I've noticed, the visitors are not doubled in the small table version of Who's Online in a front page.
I don't really know how it's done, but hope this observation might help.
  #89  
Old 05-17-2001, 02:34 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kesha: Yes, that's why I'm at such a loss. The code that pulls the records from the database is basically identical to the code that is used on the front page. I'm going to continue trying various things. Hopefully I'll get it worked out soon.
  #90  
Old 05-18-2001, 09:32 AM
kesha1
Guest
 
Posts: n/a
Default

2 things:
1. The IP displayed in Who's Online is the one that belongs to the person who's looking at it. All the users have the same IP. So, I believe that variable $ipaddress is not the one that should be used there.
2. How can I change the title underneath the boards name from Who's Online to Who's On or Who's Alive, and place a pic to the right from it.
Thank you in advance
  #91  
Old 05-21-2001, 10:46 PM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Couple of 'bugs'

1) I'm still listed twice

2) Some links are displayed as: Viewing post #128099#post128099 in thread "Dudek bedankt" and the url is then:

htp://feyenoord.messagebase.nl/showthread.php?postid=128099#post128099post128099post128099

(with http instead of htp ofcourse, otherwise he wouldn't printed the whole url)
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:43 PM.


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.08108 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete