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
  #22  
Old 08-30-2000, 04:36 AM
Guest
 
Posts: n/a
Default

wow can't wait until tomorrow
Reply With Quote
  #23  
Old 08-30-2000, 07:45 AM
Guest
 
Posts: n/a
Default

Hmm.. looks very similar to Stalion/Ed's buddy list

Ofcourse this hack existed earlier.
Reply With Quote
  #24  
Old 08-30-2000, 01:20 PM
Guest
 
Posts: n/a
Default

When I use this, no matter what it shows the user as being on Forums Main. The only canges I have made are to change the extension to php3 and /boards/ to /board/

http://www.influx9.com/board/whoison...on=onlineusers
Reply With Quote
  #25  
Old 08-30-2000, 07:26 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by Bane
When I use this, no matter what it shows the user as being on Forums Main. The only canges I have made are to change the extension to php3 and /boards/ to /board/

http://www.influx9.com/board/whoison...on=onlineusers
Do a search and replace with your favorite text editor. Replace all instances of "php" with "php3"

~Chris
Reply With Quote
  #26  
Old 08-30-2000, 08:56 PM
Guest
 
Posts: n/a
Default

Im sorry, I should have said extensions.. I have already changed all the .php with .php3, as well as the actual files extension and the /path/

at - http://www.influx9.com/board/whoisonline.txt

[Edited by Bane on 08-30-2000 at 06:01 PM]
Reply With Quote
  #27  
Old 08-30-2000, 11:20 PM
Guest
 
Posts: n/a
Default

also 'unknown location' shows up when a member is viewing a category page or the avatar.php or buddy.php pages
Reply With Quote
  #28  
Old 09-03-2000, 02:31 AM
Guest
 
Posts: n/a
Default

i deleted a thread in a forum and now when i use http://animeboards.net/forums/whoiso...on=onlineusers it gives me an message

No forum specified. If you followed a valid link, please notify the webmaster ?
Reply With Quote
  #29  
Old 09-03-2000, 09:59 PM
Guest
 
Posts: n/a
Default

[high]* wonders if their is still going to be a new version......
[/high]

James, John........PLEASE!, PLEASE KILL THE CSS IN THE TEXT FIELDS AND THE YELLOW SMILIES!!!! NO YELLOW SMILIES!!!

~Chris
Reply With Quote
  #30  
Old 09-03-2000, 10:11 PM
Guest
 
Posts: n/a
Default

and not to mention NO YELLOW HOVER LINK !
Reply With Quote
  #31  
Old 09-03-2000, 10:56 PM
Guest
 
Posts: n/a
Default

Yep, there will be, however I just got a new motherboard today (Dual PIII!) and I'm messing with it in one of my other boxes. As soon as it gets up and/or running, I'll fix the userlisting!
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 06:07 PM.


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.04412 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)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
  • (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