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
  #12  
Old 08-30-2000, 02:32 AM
Guest
 
Posts: n/a
Default

cool i added the link right next to the buddy list at http://animeboards.net/forums/index.php

http://animeboards.net/forums/whoiso...on=onlineusers
Reply With Quote
  #13  
Old 08-30-2000, 02:43 AM
Guest
 
Posts: n/a
Default

eva2000:

Cool! Glad to see people are using my code -- and it hasn't destroyed their system!

Oh wait, as soon as I've said that.. I can't get to your site! Is it down?


[Edited by mrogish on 08-29-2000 at 11:45 PM]
Reply With Quote
  #14  
Old 08-30-2000, 03:18 AM
Guest
 
Posts: n/a
Default

nope.. i can access it fine so can all my members...
Reply With Quote
  #15  
Old 08-30-2000, 03:21 AM
Guest
 
Posts: n/a
Default

eva2000,

Ok, I bet it is Road Runner's DNS servers flaking out again. Hope you enjoy the hack!
Reply With Quote
  #16  
Old 08-30-2000, 03:25 AM
Guest
 
Posts: n/a
Default

thanks... i do love it... seems members are staying longer and logging in for longer times and i only had the hack in for a few minutes

greate work
Reply With Quote
  #17  
Old 08-30-2000, 03:30 AM
Guest
 
Posts: n/a
Default

Oh, it's moments like these that make it all worthwhile...
**sniff**
*wipes a tear from his eye*
Reply With Quote
  #18  
Old 08-30-2000, 04:02 AM
Guest
 
Posts: n/a
Default

Also you did forget the "announcement.php" link. So if they are viewing an announcement, then it thinks they are just looking at that forum.

Any idea when the next version will be out?

Thanks
~Chris
Reply With Quote
  #19  
Old 08-30-2000, 04:04 AM
Guest
 
Posts: n/a
Default

Also if a user is at say:
http://www.extremeforums.com/forums/...?action=bbcode

It says "Unknown Location!" when infact they are viewing vb code

Ill post some more info if you want it

~Chris
Reply With Quote
  #20  
Old 08-30-2000, 04:09 AM
Guest
 
Posts: n/a
Default

TechTalk,

Could you keep track of those things that break and then e-mail them to me?

I gotta get to bed now, early mornings really suck if I stay up all night!

If you compile a list of broken things and then let me know what they are (e-mail?), I'll cut a new version tomorrow!
Reply With Quote
  #21  
Old 08-30-2000, 04:12 AM
Guest
 
Posts: n/a
Default

Sure
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 09:16 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.04318 seconds
  • Memory Usage 2,281KB
  • 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