Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-25-2000 Last Update: Never Installs: 0
 
No support by the author.

Here is the long awaited (yeah right ) Online Users hack as shown at http://www.baseballboards.com/boards/
and referenced in kevinho's post.

Anyway, I stuck it in its own php file for ease of installing when vB updates are released.

To Do List:
  • Add javascript radio buttons to the right of the refresh button which easily allow the current user to change their "invisible to online list" profile setting
  • Include support for the following URLs:
    • member.php?action=clearcookies - AKA logout
    • index.php?action=showsmilies - Showing Smilies
    • index.php?action=showbbcode - Showing BBCode
    • showthread.php?postid=455277#post455277

Known Bugs:
  • I know there are URLs I'm forgetting, I usually wait until it says "Unknown Location" then I check to see what the URL is.
  • It can be slow if your tables are huge

To install you need two things:
  • A php file called anything you want (or member.php)
  • Your browser opened to your board/admin to add two new templates

Create the aforementioned PHP file or feel free to open member.php and pick a nice place.

Paste the following into your file of choice:
Code:
Matt 8-29-00
Look at the code a few messages down!!
/Matt 8-29-00
Ugly, eh?

Create a template called whoisonline and fill it with:

Code:
<HTML>
<HEAD>
<title>$bbtitle - Online Now!</title>
</HEAD>
<body bgcolor="#ffffff" text="#000000" id=all>

<table border="0" width="100%"><tr>
<td valign="top" align="left"></td>

<td valign="middle" align="center" nowrap>
</td></tr></table>

<a href="javascript:location.reload( )"><FONT SIZE="2" FACE="arial, helvetica">Refresh</font></a>

<table border=0 cellpadding=4 border=0 cellspacing=1 width=100%>
<tr bgcolor="#113274"><TD COLSPAN=2>

<table width="100%" border=0 cellpadding=0 cellspacing=0>
<tr><td align="left" valign="middle">

<FONT SIZE="2" FACE="arial, helvetica" color="#FFFFFF"><B>Online Users</B></font></td>

<td align="right" valign="middle">
<FONT SIZE="2" FACE="arial, helvetica" color="#FFFFFF"><B>Location</B></font></td>

</td></tr></table>

</td></tr>
$whoisonlinebits
</table>
and then one called whoisonlinebit and fill it with:

Code:
<tr><td bgcolor="#C3C3EB"><FONT SIZE="2" FACE="arial, helvetica"><a href="member.php?action=getinfo&userid=$userid">$username</a> <a href="private.php?action=newmessage&toid=$userid" target="_blank"><img src="images/pm1.gif" border=0></img></a></font></td>

<td bgcolor="#AAAAE6"><FONT SIZE="2" FACE="arial, helvetica"><a href="$locationLink" target="_blank">$location</a></font></td>

</tr>

NOTE: If you do not have private messaging installed (why not???!?!) then remove this line:

Code:
<a href="private.php?action=newmessage&toid=$userid" target="_blank"><img src="images/pm1.gif" border=0></img></a>
That should do it! All you have to do is create a link for it such as http://www.baseballboards.com/boards...on=onlineusers and then you'll get a nice list.

I would appreciate help on cleaning / optimizing the code and any URLs that I forgot cases for.

Thanks!!

--
Matt

[Edited by mrogish on 08-29-2000 at 10:32 PM]

Show Your Support

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

Comments
  #32  
Old 09-05-2000, 03:13 PM
Guest
 
Posts: n/a
Default

I don't know why I didn't see this one earlier! I'll wait for the new version to come out.
Reply With Quote
  #33  
Old 09-07-2000, 04:30 AM
Guest
 
Posts: n/a
Default

Still working on it in case anyone cares. Some other board things have been taking 110% of my time and will probably continue to do so for a few weeks. I will get to it as soon as I can!
Reply With Quote
  #34  
Old 09-07-2000, 10:57 AM
Guest
 
Posts: n/a
Default

I'm still interested.

Parker
Reply With Quote
  #35  
Old 09-08-2000, 08:36 AM
Guest
 
Posts: n/a
Default

Me too
Reply With Quote
  #36  
Old 09-08-2000, 11:34 AM
Guest
 
Posts: n/a
Default

Yup still waiting.....and I even took the time to send you an e-mail with some bugs

~Chris
Reply With Quote
  #37  
Old 09-08-2000, 11:39 AM
Guest
 
Posts: n/a
Default

yep very interested still... works wonders on tracking my members hehe
Reply With Quote
  #38  
Old 09-19-2000, 12:58 AM
Guest
 
Posts: n/a
Default

so how's this wonderful hack going on the bugs ? my version isn't reporting the threads viewed correctly now that there's more members http://animeboards.net/forums/whoiso...on=onlineusers ?
Reply With Quote
  #39  
Old 10-08-2000, 03:53 PM
Guest
 
Posts: n/a
Default

Almost done!

Expect to have a leaner, meaner script by the end of today! (Hopefully, as long as our database doesn't expload or anything! )
Reply With Quote
  #40  
Old 10-13-2000, 06:08 AM
Guest
 
Posts: n/a
Default

Looking forward to seeing this script as well.

Is today the lucky day? It is Friday the 13th, after all.
Reply With Quote
  #41  
Old 10-14-2000, 08:24 PM
Guest
 
Posts: n/a
Default

i'm watting ...

but i have a good idea

1 - hide everything about hidden user .
2 - add time for logged users .
3 - hide hidden forums and topics .
Reply With Quote
Reply


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 12:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05074 seconds
  • Memory Usage 2,279KB
  • 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
  • (4)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • 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