vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Updated] Users Online (https://vborg.vbsupport.ru/showthread.php?t=6787)

01-14-2001 07:34 PM

Hi, I have modified the original Users Online (online.php)

All i have changed are the templates really, and put it into member.php so its not one more file!

It can be found here:

http://www.nicholasbrown.karoo.net/usersonline.zip

Hope it is of some use to someone.

PS. I Take no credit at all for this "hack"

01-15-2001 03:41 PM

Better then ever. :)

How can I get it to show guests like guest, guest2.etc?

01-15-2001 04:20 PM

Id tell you apart from the fact i didn't write the hack, i just cleaned it up

01-15-2001 05:02 PM

okay sorry

Glad you make it better. :)

01-30-2001 01:23 AM

https://vborg.vbsupport.ru/

01-30-2001 10:24 AM

Very nice hack!

One could also add an '@' behind the names on the main page user listing. And when you click it you'll be transferred to the thread the person is looking at.
like:
DVD Plaza@, leadZERO@, PeF@, ukliam@

in template 'loggedinuser' use this:

<a href="member.php?action=getinfo&userid=$userid">$u sername</a><a href="$locationLink">@</a>

and in index.php (line154) paste:
$locationLink = $location;

right under:
$username=$loggedin[username];
$location=$loggedin[location];

cya!

01-30-2001 03:09 PM

tried the @ and when i click on my @ it takes me to the root directory not the index.php where im located.?

01-30-2001 03:11 PM

in the loggedinuser template i added this code looks pretty good
<smallfont>There are currently $numberregistered member(s) and $numberguest guest(s) on the boards.</smallfont><a href="member.php?action=onlineusers"><br><B>Browsi ng the Boards</B></a><br></normalfont><a href="member.php?action=getinfo&userid=$userid">$u sername</a>

01-30-2001 08:30 PM

OH ok I forgot something...

for the @ addition search for
$username=$loggedin[username];
$location=$loggedin[location];
on line 143

directly underneath it paste
$locationLink = $location;

if you look about 10 lines more below you'll find
$username=$loggedin[username];
$location=$loggedin[location];
again paste
$locationLink = $location;
under it

So you'll end up with 2
$locationLink = $location;

Should work now
Hope this helps

01-30-2001 10:36 PM

hey thats pretty cool
it works now
thanx:)


All times are GMT. The time now is 11:16 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.01110 seconds
  • Memory Usage 1,726KB
  • 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)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