Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Who's online on non-vB page (with usernames, same rules as Who's Online on forumhome) Details »»
Who's online on non-vB page (with usernames, same rules as Who's Online on forumhome)
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-09-2004 Last Update: Never Installs: 64
 
No support by the author.

PLEASE CLICK ON THE INSTALL BUTTON IF YOU INSTALLED THIS! THANKS!

What does this hack do?

Using this hack, you can show who is currently on your forums from anywhere else on your website! The page, though, must be a PHP page.

If you want to display this information on another webpage by integrating it (which you'll probably want to ), just put
PHP Code:
<?php require_once("online.php"); ?>
or
PHP Code:
<?php

require_once("online_external.php");

?>
depending on the location of the online.php file

THE BELOW IS ONLY IF YOU ARE USING ONLINE.PHP

If you are using online.php, then this line of code MUST be at the top of the page!

If you don't want to show the total users online at the top of the page, though, then remove
PHP Code:
print $show
and copy that to wherever you want to show the info instead (remember to surround this with PHP tags, such as:
PHP Code:
<?php

print $show;

?>
THE ABOVE IS ONLY IF YOU ARE USING ONLINE.PHP

Features
  • supports phrases!
  • option to display either usernames or a total number of registered members instead
  • only administrators can see users who choose to be invisible

Instructions

Download the attached online.php if you want to show invisible users to administrators, etc., or download online_external.php if you don't want to worry as much about things , and follow these instructions:
  1. Find
    PHP Code:
    $path "./vb3/"// path to your forums folder, normally /forum/ 
    , change the ./vb3/ to whatever the path is to your forums directory
  2. Find
    PHP Code:
    $showusernames 0// 1 to show usernames online, 0 to only show the number of users online 
    and change $showusernames to 1 if you want to display usernames, instead of the total number of registered members browsing

That's it!

Show Your Support

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

Comments
  #32  
Old 03-05-2004, 10:41 PM
webrats webrats is offline
 
Join Date: May 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don see them showing up in my whos online

I have another way of tracking active users and it shows 250 in the last 5 min and this one that track it in 30 min is showing 120
Reply With Quote
  #33  
Old 03-07-2004, 04:37 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webrats
i don see them showing up in my whos online


I have another way of tracking active users and it shows 250 in the last 5 min and this one that track it in 30 min is showing 120
What's the other way that you use?
Reply With Quote
  #34  
Old 03-07-2004, 07:13 PM
webrats webrats is offline
 
Join Date: May 2002
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gary W
What's the other way that you use?
http://ripper.webrats.com

at the bottom i have the code

its not adding to the guest when someone visits that page
Reply With Quote
  #35  
Old 03-11-2004, 09:33 PM
SlackerAPM SlackerAPM is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exactly the kind of thing I'm looking for however, I've had a few problems:
  1. When using "online.php" everything is fine and working (formatting of the output text isn't great but that's easy enough to change). However, that's only the case while I'm logged into the boards, if I'm not logged in I get the "Unable to add cookies, header already sent." message. online.php works fine on it's own regardless of log in status, only the including seems to screw it up.
  2. Using "online_external.php" outputs results regardless of login status however the results displayed on my page are similar to "Members online: 00, 0, 0, 0, 0, 0, 0, 0, 0. Guests online: 26." This is the case on the standalone page too.
  3. I'm still don't fully understand the use of the
    PHP Code:
    "print $show;" 
    instructions, I'm probably a fool but they don't seem to be explained that clearly i.e. exactly which page we're adding this code to and whereabouts on the page it should be added to.
  4. One other small request, any chance that when usernames are displayed by choice the names are links to the corresponding users profile (new window)?

Thank you for listening to my moaning
Reply With Quote
  #36  
Old 04-11-2004, 02:55 AM
ga.net ga.net is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi! Is there a way to change the font style and size of this? Thanks in advance
Reply With Quote
  #37  
Old 04-14-2004, 04:54 AM
TYorke TYorke is offline
 
Join Date: Dec 2001
Location: Toronto, ON
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Can the user names include the links to their profiles? if so, how do I add them?

2. Can the extra "most users online ... " text be added? if so, how?

3. Finally can the extra bit "Who visited today" also be added? That'd kick ass!

Thanks!
Reply With Quote
  #38  
Old 04-14-2004, 04:56 AM
TYorke TYorke is offline
 
Join Date: Dec 2001
Location: Toronto, ON
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ga.net
hi! Is there a way to change the font style and size of this? Thanks in advance
Simple HTML will do the trick you can use the <span></span> tags around the $show variable perhaps? I haven't tried it myself but it may work such as:

<span class=\"format\">$show</span>

or something like that. Of course you would have to define .class in your stylesheet.
Reply With Quote
  #39  
Old 04-15-2004, 10:50 PM
ga.net ga.net is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TYorke
Simple HTML will do the trick you can use the <span></span> tags around the $show variable perhaps? I haven't tried it myself but it may work such as:

<span class=\"format\">$show</span>

or something like that. Of course you would have to define .class in your stylesheet.
thanks but grateful if you could give me a more detailed instruction since im not that good in html. Thanks
Reply With Quote
  #40  
Old 04-16-2004, 06:15 AM
TYorke TYorke is offline
 
Join Date: Dec 2001
Location: Toronto, ON
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

instead of print $show maybe you can use

echo "<span style=\"font-family: Verdana; font-size: 12px\">$show</span>";

Obviously you can change the font-family and font-size to whatever else you want
Reply With Quote
  #41  
Old 04-16-2004, 10:07 PM
ga.net ga.net is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great! it works! Thanks a lot pal!
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 08:09 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.07444 seconds
  • Memory Usage 2,313KB
  • 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
  • (7)bbcode_php
  • (4)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_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