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
  #182  
Old 07-10-2001, 04:13 PM
goku2k
Guest
 
Posts: n/a
Default

i'm using it with v2.0.1, i think it works pretty well
  #183  
Old 07-10-2001, 06:29 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then please tell us which code parts you replaced and which not!

Thx!
  #184  
Old 07-10-2001, 11:50 PM
rmusic
Guest
 
Posts: n/a
Default

i installed on 2.0.1 with no problems just in logedin users template had to add in : $totalonline other than that there was nothing diffrent

www.r-music.net/forums
  #185  
Old 07-11-2001, 02:49 PM
Afterburner's Avatar
Afterburner Afterburner is offline
 
Join Date: Nov 2001
Location: 53?36'08"N 13?18'22"E
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I downloaded the hack from the first page and get the same problem than many others in this posting

Users (same Username) are shown more than 1 times
( http://www.the-afterburner.com/vbulletin/online.php )

Anyone ?

I am running the newest version of VB
  #186  
Old 07-11-2001, 02:57 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add THIS HACK additionally!
Works like a charm, and the double entries are away!
  #187  
Old 07-11-2001, 03:15 PM
Christian Christian is offline
 
Join Date: Nov 2001
Location: wuerzburg.germany.earth
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here are the corrected lines for (unedited) sessions.php in vB 2.0.1:


##########################################

Around line 175, find
Code:
          
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."','$bbuserinfo[userid]','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."'".$styleupv.")");
and replace it with
Code:
          
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,location".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."','$bbuserinfo[userid]','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".addslashes($scriptpath)."','".time()."'".$styleupv.")");
Around line 209, find
Code:
          
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
and replace it with
Code:
          
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
Around line 211, find
Code:
          
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
and replace it with
Code:
          
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
Around line 276, find
Code:
    
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."',0,'".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."'".$styleupv.")");
and replace it with
Code:
    
$DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,location".$styleupf.") VALUES ('".addslashes($session['sessionhash'])."',0,'".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','".addslashes($scriptpath)."'".$styleupv.")");
Around line 80, find
Code:
      
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($sessionhash)."'");
and replace it with
Code:
      
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($sessionhash)."'");
Around line 82, find
Code:
      
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($sessionhash)."'";
and replace it with
Code:
      
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($sessionhash)."'";
Around line 255, find
Code:
$DB_site->query("UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
and replace it with
Code:
      
$DB_site->query("UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'");
Around line 257, find
Code:
      
$shutdownqueries[]="UPDATE session SET lastactivity=".time()."$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
and replace it with
Code:
      
$shutdownqueries[]="UPDATE session SET lastactivity=".time().",location='".addslashes($scriptpath)."'$styleup WHERE sessionhash='".addslashes($session['sessionhash'])."'";
##########################################
  #188  
Old 07-11-2001, 03:17 PM
Afterburner's Avatar
Afterburner Afterburner is offline
 
Join Date: Nov 2001
Location: 53?36'08"N 13?18'22"E
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx
great hack and works fine
congratulation
  #189  
Old 07-20-2001, 07:57 PM
markrt
Guest
 
Posts: n/a
Default

I am using v2.0.0 the hack works ok if I go to http://www.carponline.com/Forum/online.php

I cant get the link to work??

My forumhome_loggedinusers template read as below.

<tr id="cat">
<td bgcolor="#606096" colspan="6"><normalfont color="#FFF788"><b>Currently Active Users: $totalonline</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#F1F1F1" colspan="6"><smallfont>
<nobr>There are currently $numberregistered members and $numberguest guests on the boards.</nobr> |
<nobr>Most users ever online was $recordusers on $recorddate at $recordtime.</nobr><br>
$activeusers
$birthdaybits</smallfont></td>
</tr>


Where dose the link
<b><a href="online.php?s=$session[sessionhash]">Currently Active Users</a></b> go in this script?????????

Thanks
Mark
  #190  
Old 07-20-2001, 08:46 PM
ztsky
Guest
 
Posts: n/a
Default

in your forumhome_loggedinusers template
FIND:
Currently Active Users

REPLACE IT WITH:
<a href="online.php?s=$session[sessionhash]">Currently Active Users</a>
  #191  
Old 07-20-2001, 10:04 PM
markrt
Guest
 
Posts: n/a
Default

Thank You Works well.

Mark
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 11:39 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.04704 seconds
  • Memory Usage 2,307KB
  • 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
  • (16)bbcode_code
  • (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
  • (3)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