vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who's online on non-vB page (with usernames, same rules as Who's Online on forumhome) (https://vborg.vbsupport.ru/showthread.php?t=60019)

Gary King 01-09-2004 10:00 PM

Who's online on non-vB page (with usernames, same rules as Who's Online on forumhome)
 
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! :D
  • 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! :D

idwf 01-10-2004 08:37 PM

Quote:

Unable to add cookies, header already sent.
File: /home/indeathw/public_html/index.php
Line: 19
allthough, http://www.indeathwefall.co.uk/online.php works?!

Gary King 01-10-2004 08:43 PM

Quote:

Originally Posted by idwf

Instructions updated, please check again :)

Boofo 01-10-2004 08:50 PM

You're not going to make it in a nice little table to match the forum?

azmi 01-10-2004 09:27 PM

Quote:

Originally Posted by Boofo
You're not going to make it in a nice little table to match the forum?

only logged in Users can show it.
-------------------
Unable to add cookies, header already sent.
File: N/A
Line: 0
--------------------
Another one with this problems?

Gary King 01-10-2004 09:49 PM

Quote:

Originally Posted by azmi
only logged in Users can show it.
-------------------
Unable to add cookies, header already sent.
File: N/A
Line: 0
--------------------
Another one with this problems?

You have to put the require_once() at the top of any file.

idwf 01-10-2004 10:10 PM

Quote:

Originally Posted by Gary W
You have to put the require_once() at the top of any file.

thanks. will try again. :)

azmi 01-10-2004 10:25 PM

no, the same Problem.

but is it a must to have cookies?
there must be a simple way to get this

Members: 8 Guests: 10

nothing else!

------------------------------
@Admins
clicking for smilies brings me always to the top (#)

eva2000 01-10-2004 11:08 PM

2 bugs for me

1. i get Member instead of Members - the 's' is missing even though i have more than 1 member online
2. members online figure is incorrectly shown, i.e. on my forums there are 29-32 members online but this script shows 65 members online ? i.e. http://animeboards.com/joinwink.php

Gary King 01-10-2004 11:11 PM

Quote:

Originally Posted by azmi
no, the same Problem.

but is it a must to have cookies?
there must be a simple way to get this

Members: 8 Guests: 10

nothing else!

------------------------------
@Admins
clicking for smilies brings me always to the top (#)

Download online_external.php ;)


All times are GMT. The time now is 12:12 PM.

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.01290 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete