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:)

01-30-2001 11:13 PM

Hey would ya look at that. People are still using my code! That reminds me, I need to make it better (and 2.0 compliant). I'll probably make it suck less for bigger sites (by maybe denormalizing the session table a bit) and keep the small-site version (that performs the lookups on the URL).

01-31-2001 09:57 AM

There's a problem with v1.1.5.

I was testing my board with 1 invisible member (me) and 0 guests and clicking on More... takes me to a white empty page.

Any fix for this?

01-31-2001 11:16 AM

did you check your templates?

01-31-2001 07:03 PM

Should guests show up on the 'Who's Online' page along with their location?

01-31-2001 08:24 PM

Quote:

Originally posted by upperking
did you check your templates?
I just followed the instruction reported by Nic[H]olas and Nemmie. :)
Anyway... what do templates have to do with an empty page? :)

01-31-2001 08:51 PM

Quote:

Originally posted by BenchRacer
Should guests show up on the 'Who's Online' page along with their location?
Yes - They Should :p

01-31-2001 08:57 PM

Quote:

Originally posted by Cr4z33


I just followed the instruction reported by Nic[H]olas and Nemmie. :)
Anyway... what do templates have to do with an empty page? :)

Well, I just followed my own instructions and it works fine. I'm using vB 1.1.5

01-31-2001 09:00 PM

Quote:

Originally posted by Nic[H]olas


Well, I just followed my own instructions and it works fine. I'm using vB 1.1.5

Did you try with 1 invisible member (yourself) only?

01-31-2001 09:19 PM

Quote:

Originally posted by Cr4z33


Did you try with 1 invisible member (yourself) only?

I Tried this earlier on @ college with 3 buddies

01-31-2001 09:22 PM

Server is an AMD Duron 750, 64MB Ram, Apache 1.3.14 PHP 4.0.4 and MySQL (Can't remember which version)

The Site is a local intranet at my college that the college don't know I have set up! It only works when I'm at the college AND logged into the network.

So I can't give the IP as it won't work unless your in the college! and, you're not :p

01-31-2001 09:22 PM

Quote:

Originally posted by Nic[H]olas


I Tried this earlier on @ college with 3 buddies

Well I got that problem ONLY with 1 invisible member and no other guests.
If there are visible members (1 or more) and/or guests then the "More..." link takes you to a correct page.

01-31-2001 09:59 PM

Quote:

Originally posted by Cr4z33


Well I got that problem ONLY with 1 invisible member and no other guests.
If there are visible members (1 or more) and/or guests then the "More..." link takes you to a correct page.

I experience the same thing and when there's guests they don't show up. I'm going to look it over and make sure I didn't miss something.

02-01-2001 07:56 PM

hmm.. i'm still having a problem with this.. everytime i click on the @ symbol i'm am taken to the root dir. and not the index.php as i'm supposed to.. i saw a post above here saying the same thing.. has this been corrected ?? and if so.. how was it done ??

thx

02-02-2001 12:14 AM

online Demo ?

02-02-2001 01:29 AM

Quote:

Originally posted by D-Con
hmm.. i'm still having a problem with this.. everytime i click on the @ symbol i'm am taken to the root dir. and not the index.php as i'm supposed to.. i saw a post above here saying the same thing.. has this been corrected ?? and if so.. how was it done ??

thx

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



Report this post to a moderator

02-02-2001 03:16 AM

hmm.. i tried that already and it still didn't work ... gonna have to try and redo everything..

thx for the repost.. :)

02-02-2001 08:07 PM

if it helps. the board @ college has PM, calendar, buddy list and custom title hacks installed

nuno 05-14-2001 03:42 PM

damn
Guests are not shown. :(
Links point to root dir and their location is always viewing main board page. :(


All times are GMT. The time now is 03:14 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.01181 seconds
  • Memory Usage 1,764KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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