![]() |
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. :) |
|
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! |
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>Browsi ng the Boards</B></a><br></normalfont><a href="member.php?action=getinfo&userid=$userid">$u sername</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?
|
Quote:
Anyway... what do templates have to do with an empty page? :) |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
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 |
Quote:
If there are visible members (1 or more) and/or guests then the "More..." link takes you to a correct page. |
Quote:
|
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 |
online Demo ?
|
Quote:
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. :( |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|