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)

misterfade 08-10-2004 10:08 PM

This hack is very good, but does anyone know how to show just the total number of registered members? I would really like this.

Thanks.

Toneboy 08-11-2004 07:17 PM

misterfade, if you know how to connect to your MySql database this query gets the registered number of users on your site:
PHP Code:

$result mysql_query("SELECT * FROM user"); 
if(!(
$result)) { 
 print 
"Useronline Select Error > "

$totalusers mysql_num_rows($result);
echo 
"<p class=\"feed\"><b>Total members:</b> $totalusers<br />"

Very basic, seen in action here.

TYorke 09-14-2004 05:37 AM

Quote:

Originally Posted by juanph
SKINVB

You have to
require the script first
then print show

I hope you understand that.

Baptizer....

I got the same thing...my solution...don't use online_external.php.

Instead use online.php

It took me a little bit but it worked...

ceck it out in my footer.

http://www.s3squad.com

Yup, I concur :D

It worked on my site as well...I added the require_once bit at the very top of my HTML page (even before the <html> tag) then, wherever I wanted to display the online info I just added the print command. Basically the code on your page 'should' look like:

<?php require_once('/path/to/script'); ?>
<html>
<head>
</head>
<body>
....

(somewhere on your page you may now add:) <?php print $show ?>

Of course you have to name your page something like index.php (the extension is what matters here)

Hope that made it clear to everyone. Oh and yes, I am using online.php :)

TYorke 09-24-2004 06:03 AM

BTW is there any way of adding links to user profiles?

JAB Creations 09-24-2004 08:00 AM

Members names are linked on my vb and its slightly hacked. Are you asking ahead of time or do you not see your members linked?

TYorke 09-24-2004 01:12 PM

Quote:

Originally Posted by JAB Creations
Members names are linked on my vb and its slightly hacked. Are you asking ahead of time or do you not see your members linked?

What vB? and no I don't see them linked.

Wordplay 10-18-2004 07:28 PM

is there a way to add the direct link to where the user is? because it just says on all the pages i added, that the member is viewing the startpage. no matter where they are.

Jag 11-08-2004 06:34 PM

I had to make a number of modifications to get this hack to work on my site (it's not very friendly with other scripts, changing dir, without changing back, not closing the mysql connection, etc... not good coding practices for something that's meant to work with meant other code).

However, after fixing it up, it works fine, and I've installed it :)

TMXS 12-21-2004 12:50 PM

I've installed the script and it works perfectly. Great job.

nicedreams 01-06-2005 11:08 PM

I'm able to get the online_external version working somewhat, but when it try to show usernames online, it always says (none). When i switch it to not show the user name, it shows the correct number of members online. What's wrong?

Jim


All times are GMT. The time now is 09:06 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.01119 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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