vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who's online on non-vb pages request (https://vborg.vbsupport.ru/showthread.php?t=50318)

drives fast 03-17-2003 03:04 AM

Who's online on non-vb pages request
 
I have found all of the threads touching on this subject but maybe I am having a brain fart or something I cannot understand them.

Well...maybe it is because my non-vb pages I want this to work on are located inside my forum directory and I cannot upload another online.php file since there is already one in there.

say I have a page that looks like this:
PHP Code:

<?php
error_reporting
(7);

$templatesused='guides';

require(
'./global.php');

if (
$bbuserinfo[userid]==0) {
    
show_nopermission();
}

$bbusername $bbuserinfo[username];

eval(
"dooutput(\"".gettemplate('guides')."\");");

?>

and it uses a template as shown above

what can I do to make $onlineusers and $username work on that page?

thanks in advance

drives fast 03-17-2003 07:27 PM

I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.

thanks in advance

Xenon 03-17-2003 07:34 PM

instead of $username use $bbuserinfo[username] in the template, that will work ;)

to use the onlineusers, just copy the part of index.php which creates it

amykhar 03-17-2003 07:34 PM

Use tubedogg's hack and change his file name to online2.php instead of online.php

Amy

drives fast 03-18-2003 12:52 AM

Xenon,
thank you for the tip on the $username

as for the other thing.....I really meant $browsers rather than $onlineusers (I think) because I only want it to display the members that are on the page at the time.

I looked in index.php and found code starting with this:
"// Users browsing each forum"
and ended with one of these: }
but it refers to the "inforum" colum of the user table......is that going to work?

The reason I ask is that I tried adding the code I found in index.php and put $browsers in the template but nothing showed.

I am a bit lost on this.

thanks for your help

filburt1 03-18-2003 12:54 AM

Quote:

Today at 04:27 PM drives fast said this in Post #2
I forgot to mention that I am using v2.2.5 and I do understand that this has been done but in different capacity.

thanks in advance


Side note: upgrade ASAP because that old a version has a broken Hoover Dam of security holes.

drives fast 03-18-2003 01:08 AM

I changed the php files to a newer version without upgrading (hard to explain how I did it)...I have so many hacks installed....I loathe the thought of upgrading.

In case you visited the site....the style currently used is not the one I am working on....I have a style in the works that is leaps and bounds ahead of the current one.

I just can't imagine trying to upgrade now.

drives fast 03-18-2003 01:32 AM

amykhar,
that hack is not what I am looking for....I am looking to show who is on the page at the time...not who is on the whole site

Xenon 03-18-2003 10:36 AM

hmm, you have to get the infos you want out of the session table

just count the ammount of users where th location is....

drives fast 03-18-2003 08:31 PM

thank you for your input Xenon....sadly I have no idea how to do that.

thank you anyway


All times are GMT. The time now is 04:42 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.01663 seconds
  • Memory Usage 1,731KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete