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)

lifesourcerec 04-30-2004 09:22 PM

It works, but everything is crammed in. How can I fix this?

boiboi 05-10-2004 03:31 AM

works great but i already have a require for my image upload script.

require_once("show_image.php");
require_once("online.php");

doesn't work together. is there any work around to this?

Gary King 05-10-2004 11:19 AM

Quote:

Originally Posted by boiboi
works great but i already have a require for my image upload script.

require_once("show_image.php");
require_once("online.php");

doesn't work together. is there any work around to this?

Just remove the 'print' line from the online.php file and then put that wherever you want this list of online users to show up :)

JAB Creations 05-26-2004 06:40 AM

I want the code to tell me how many people are on my entire site, not just VB.

What code would I put in my PHP files to tell VB that people are not signed on (or are) and that they are looking at those pages?

That way my entire site will have this script tell me how many people are on my site in absolute total!

Gary King 05-26-2004 11:09 AM

Use
PHP Code:

<?php require_once('./forum/global.php'); ?>

in every file (for the vB global.php file)

JAB Creations 05-26-2004 01:00 PM

Well now I've figured out what is wrong...

There are two things I want to do at once and I can at the moment only do either or.

This one will show me where users are when I goto the whose online? page.
<?php chdir("/home/jabcreat/public_html/community");
require_once('global.php'); ?>

This will display how many users are online, but NOT others on no-VB pages.
<?php chdir("/home/jabcreat/public_html/community");
require_once("online_external.php");?>

The problem is, you're either on VB and CANT see how many are on....
OR
You're NOT on VB but you CAN see how many people are on....

When I attempt to use both I recieve the following error...

Fatal error: Cannot redeclare iif() (previously declared in /home/jabcreat/public_html/community/includes/functions.php:318) in /home/jabcreat/public_html/community/online_external.php on line 10

So how do I get over my current comprimise?

skinvb 06-02-2004 02:25 PM

i want it show on sidebar how can i do that?
i add
Code:

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" style="width:100%">
        <tr align="center">
                <td class="thead"><span class="smallfont"><b>Online</b></span></td>
        </tr>
        <tr>
                <td class="alt1">
<?php

print $show;

?>
<?php

require_once("online_external.php");

?>
</td>
        </tr>
</table>

but it doesn't work

Baptizer 07-08-2004 02:36 AM

I am hoping Gary King is still around *crosses fingers*
Gary, any idea why I am getting the following results?
Members online: 00, 0, 0, 0, 0, 0, 0, 0, 0. Guests online: 26.

I tried to play with a few of the options, but I cant figure it out :(

Baptizer 07-09-2004 12:38 AM

Anyone else have a wild guess as to why this is occurring?

jugo 07-15-2004 06:09 PM

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


All times are GMT. The time now is 03:39 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.01360 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_code_printable
  • (1)bbcode_php_printable
  • (1)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