Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

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
  #42  
Old 12-13-2000, 08:37 AM
Guest
 
Posts: n/a
Default

Any word on if a new version of this exists?
Reply With Quote
  #43  
Old 12-15-2000, 03:36 PM
Guest
 
Posts: n/a
Default

Thanks It works!

[Edited by Scaramanga_gold on 12-16-2000 at 10:05 AM]
Reply With Quote
  #44  
Old 12-18-2000, 03:17 PM
Guest
 
Posts: n/a
Default

im gettin a Error if im trying to click the location of a user if he is currently at the Private Messaging:

Database error in vBulletin: Invalid SQL: SELECT msgid,toid,fromid,title,UNIX_TIMESTAMP(datetime)
AS datetime,iconid,text,signature FROM privatercvdmsgid=11 WHERE msgid= AND fromid=1

mysql error: You have an error in your SQL syntax near '11 WHERE msgid= AND fromid=1'
at line 1
mysql error number: 1064
Date: Monday 18th of December 2000 10:18:59 AM
Script: /private.php?action=show&table=privatercvdmsgid=11
Referer:/whoisonline.php?action=onlineusers
Reply With Quote
  #45  
Old 12-19-2000, 09:16 PM
Guest
 
Posts: n/a
Default

It seems that the URLs being generated by whoisonline.php are not working as they should be for me. For example, sometimes the weirdest link is thrown out there. I have a link to a specific thread and it takes me to a reply page for that thread. Or... I have a link to a specific thread and it will look for the domain showthread.php as opposed to the file showthread.php on my domain. Have I done something incorrect?

Please advise.

Thanks,
Cygnus
Reply With Quote
  #46  
Old 12-20-2000, 11:23 AM
Guest
 
Posts: n/a
Default

another question. anyone can tell me what do I need to add to see where are the guests ?(guest1,guest2,guest3...)
Reply With Quote
  #47  
Old 12-20-2000, 08:24 PM
Guest
 
Posts: n/a
Default

Help?

Cygnus
Reply With Quote
  #48  
Old 12-20-2000, 09:01 PM
Guest
 
Posts: n/a
Default

<a href="http://www.vbulletin.com/forum/showthread.php?threadid=5007" target="_blank">http://www.vbulletin.com/forum/showt...?threadid=5007</a>
Reply With Quote
  #49  
Old 12-21-2000, 03:38 AM
Guest
 
Posts: n/a
Default

That's great but that doesn't fix my problem and it has added a new one.

I am trying to get one of these links to /forumdisplay.php?forumid=11 and it is taking me to /?forumid=11

The new problem is that the first person listed has no name though they have a location.

For the time being, I am going to pull all of the hrefs out of the code in your hack. I hope that you fix your hack so that it delivers what you said it would. Hacks that don't work are useless. Promises to revise hacks and leaving people hanging for months without so much as a peep on your progress is pretty lame. I don't mean to be a ++++ but as a developer, we already have a shitty enough reputation as slackers that I hate to see that furthered - even if it is among other developers.

Cygnus
Reply With Quote
Reply

Thread Tools

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:11 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.04849 seconds
  • Memory Usage 2,258KB
  • Queries Executed 23 (?)
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
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)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