View Full Version : [Updated] Users Online
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"
Better then ever. :)
How can I get it to show guests like guest, guest2.etc?
Id tell you apart from the fact i didn't write the hack, i just cleaned it up
okay sorry
Glad you make it better. :)
https://vborg.vbsupport.ru/
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">$username</a><a href="$locationLink">@</a>
and in index.php (line154) paste:
$locationLink = $location;
right under:
$username=$loggedin[username];
$location=$loggedin[location];
cya!
tried the @ and when i click on my @ it takes me to the root directory not the index.php where im located.?
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>Browsing the Boards</B></a><br></normalfont><a href="member.php?action=getinfo&userid=$userid">$username</a>
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
hey thats pretty cool
it works now
thanx:)
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).
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?
did you check your templates?
Should guests show up on the 'Who's Online' page along with their location?
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? :)
Originally posted by BenchRacer
Should guests show up on the 'Who's Online' page along with their location?
Yes - They Should :p
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
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?
Originally posted by Cr4z33
Did you try with 1 invisible member (yourself) only?
I Tried this earlier on @ college with 3 buddies
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
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.
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.
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
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
hmm.. i tried that already and it still didn't work ... gonna have to try and redo everything..
thx for the repost.. :)
if it helps. the board @ college has PM, calendar, buddy list and custom title hacks installed
damn
Guests are not shown. :(
Links point to root dir and their location is always viewing main board page. :(
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.