PDA

View Full Version : The who's online...


GameCrash
31 Oct 2001, 19:17
What is this? (FireFlys location)

silence
31 Oct 2001, 19:24
Wrong Forum bro.

GameCrash
31 Oct 2001, 19:25
Why?

silence
31 Oct 2001, 19:26
This forum is for critiques on forum design and such. Your post should be in the general chat, or the lounge.

GameCrash
31 Oct 2001, 19:27
Yes, I see... sorry I only read the headline and interpreted it as comments about THIS forum ;)

silence
31 Oct 2001, 19:29
Anyways, he has it set so that it says that for all users. So for me it says the same thing, but my name.

GameCrash
31 Oct 2001, 19:31
Is this a hack or a 2.2.0 option?

Chen
31 Oct 2001, 19:35
That's a little mod to online.php, not part of v2.2. :)

I can post the code here if you wish.

GameCrash
31 Oct 2001, 19:37
No need, thank you ;) I was just wondering...

Bane
31 Oct 2001, 20:29
I wouldnt mind it :p

SWFans.net
31 Oct 2001, 21:09
Originally posted by Bane
I wouldnt mind it :p

Me either. :D

MrLister
01 Nov 2001, 02:03
:) that's pretty cool

Chen
01 Nov 2001, 10:56
I added this:
if ($userinfo[userid]==1) {
$userinfo[activity] = 'firefly';
}
right after this:
default:
$userinfo[activity] = 'unknown';
}
And then I added this:
case 'firefly':
$userinfo[where] = "Ah-ah, no peeking, $bbuserinfo[username]! ;-)";
break;
right before this:
default:
// Let's show the admin the location but put something false up for everyone else..

apfeifer
01 Nov 2001, 12:23
Simple, but kinda cool.:p

:cool:

Removed my very long quote.
Please don't post long quotes, especially when it's just a message above. :)

MrLister
01 Nov 2001, 14:34
it's quite a neat feature...

SWFans.net
01 Nov 2001, 14:44
I'll be adding this one. :pleased:

Chen
01 Nov 2001, 14:53
If you're already using v2.2.0, you can also do this.
Add this:
if ($userinfo[usergroupid]==6) {
$userinfo[activity] = 'admin';
}
right after this:
default:
$userinfo[activity] = 'unknown';
}
And then add this:
case 'admin':
$userinfo[where] = "This is the text that will appear for all admins!";
break;
right before this:
default:
// Let's show the admin the location but put something false up for everyone else..

CODE YOU MUST ADD:
In online.php, add this:
$userinfo[$key][usergroupid] = $user[usergroupid];
right after this:
$userinfo[$key][invisible] = $user[invisible];

nuno
01 Nov 2001, 17:35
hehe
gr8 hack FireFly
muchas gracias :D

mSoul01
02 Nov 2001, 03:36
sweet hack.. i'll be giving it a try later on tonight..

thanks for the post.

Syphin
02 Nov 2001, 04:53
aah! thats awesome.. ^^ uh... But it shows that for one of my guests.. O.o not supposed to is it? lol

grr.... Now it wont work no matter what i do... >_< lol

-Syphin

Chen
02 Nov 2001, 12:28
Ok I updated my last post, add the added code. :)
I have that on my online.php by default so I thought you also do. :china:

Syphin
02 Nov 2001, 17:30
Thank you... ^^ works great now... :p
Oh, and should that code have been in my file? O.o :lost:

-Syphin

Chen
02 Nov 2001, 18:29
No, but I got some custom things going on in my file so I had to add that line. :)

LanciaStratos
03 Nov 2001, 02:59
Very cool. Thanks FireFly!

Princeton
18 Nov 2001, 22:59
Make your life easier ...
You can use replacements to replace the inserted text. This comes in handy when you get bored of what you have displayed.
For example, under Replacements (Admin cp) > add custom replacement > give it a name > insert the text you want.

Lesane
30 Nov 2001, 12:06
Neat @ Cool, thanks firefly

tbloom2002
30 Nov 2001, 22:08
Could you also modify it to include that text for all moderators and admins? (I mean with one line of code instead of adding every username?) :)

Psychdrone
27 Dec 2001, 21:41
wait what dose this ezactly do,

I can't tell?

DarkReaper
31 Dec 2001, 07:07
Maybe you could make a small hack that allowed easy addition of custom text for certain users. That'd be a cool priviledged "service" at my forums :)

Dalius
03 Jan 2002, 18:53
Is their a way for Admins to over-ride this and see where other admins are?

Warlord
06 Jan 2002, 18:23
Ahhhh that had me confused for a minute, but thanks for replying to my PM Firefly :)

StarBuG
08 Jan 2002, 02:37
Muahahahaha!!

I love it!!

*G*

StarBuG

Moonwolf
12 Jan 2002, 17:28
Tweaked version available at

http://www.vbulletin.org/forum/showthread.php?s=&threadid=34047

(Thanks Chen!!!!!)

Kathi

cyrus
17 Jan 2002, 07:03
doesnt work for me, I check it but it says my location ... What could i be doing wrong ? :(

cyrus
17 Jan 2002, 22:17
My username is

/\

and it gives me a parse error when I put that instead of your name forefly in the mod I make to online.php

what should i do :(

Chen
18 Jan 2002, 13:28
I think you better install this as a real hack, Moonwolf posted it a few days ago. :)

midnightz
12 Jun 2003, 02:11
Cool as always :)

Wifey
07 May 2004, 21:14
Any chance of updating this for vB3.0.0?

Fluous
07 May 2004, 21:54
Yeh, I just tried this and it doesn't work for 3. Because it can't find any of the lines.

Ryan Ashbrook
07 May 2004, 22:50
You gotta change it according to vB3's coding style.

Wifey
08 May 2004, 21:29
You up for that Ryan? Anyone up for fixing it accordingly?

Ben`
08 May 2004, 21:48
ill give it a go at fixing it

Ryan Ashbrook
08 May 2004, 22:10
You up for that Ryan? Anyone up for fixing it accordingly?
I know how to do it, it's just where to put the code.

Wifey
09 May 2004, 21:38
Great Ben`! I look forward to seeing what you have! Same goes for you Ryan :) I'm excited for whoever can fix it!

Merjawy
22 Aug 2004, 23:28
I know how to do it, it's just where to put the code.


can you post the code and let me try to figure out where to insert it?

anyone else got anything going yet? I miss that hack

Rich
08 Jan 2005, 22:51
Hello,

I have this working on my site, and I am running 3.0.5. This is how I did it.

In INCLUDES / function_online.php find:

default:
$userinfo['activity'] = 'unknown';

Below that add:




}
if ($userinfo[userid]==1) {
$userinfo[activity] = 'Admin';
}



(Change the userid to match your userid. Default is 1)

In the same file, now find:

case 'bugs':
$userinfo['action'] = construct_phrase($vbphrase['viewing_x'], 'Bugs'); // Don't report 'bugs' as needing to be translated please :p
break;

Below that add:

case 'Admin':
$userinfo[where] = "Just monitoring HC, $bbuserinfo[username]!";
break;

You can change "Just monitoring HC to whatever you like. The $bbuserinfo[username] inserts the name of which ever member is viewing it.

Save the edits and upload.

This is a screenshot of how it appears on my site.