vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   The who's online... (https://vborg.vbsupport.ru/showthread.php?t=31938)

GameCrash 10-31-2001 06:17 PM

1 Attachment(s)
What is this? (FireFlys location)

silence 10-31-2001 06:24 PM

Wrong Forum bro.

GameCrash 10-31-2001 06:25 PM

Why?

silence 10-31-2001 06:26 PM

This forum is for critiques on forum design and such. Your post should be in the general chat, or the lounge.

GameCrash 10-31-2001 06:27 PM

Yes, I see... sorry I only read the headline and interpreted it as comments about THIS forum ;)

silence 10-31-2001 06:29 PM

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 10-31-2001 06:31 PM

Is this a hack or a 2.2.0 option?

Admin 10-31-2001 06:35 PM

That's a little mod to online.php, not part of v2.2. :)

I can post the code here if you wish.

GameCrash 10-31-2001 06:37 PM

No need, thank you ;) I was just wondering...

Bane 10-31-2001 07:29 PM

I wouldnt mind it :p

SWFans.net 10-31-2001 08:09 PM

Quote:

Originally posted by Bane
I wouldnt mind it :p
Me either. :D

MrLister 11-01-2001 01:03 AM

:) that's pretty cool

Admin 11-01-2001 09:56 AM

I added this:
Code:

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

right after this:
Code:

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

And then I added this:
Code:

    case 'firefly':
      $userinfo[where] = "Ah-ah, no peeking, $bbuserinfo[username]! ;-)";
      break;

right before this:
Code:

    default:
      // Let's show the admin the location but put something false up for everyone else..


apfeifer 11-01-2001 11:23 AM

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 11-01-2001 01:34 PM

it's quite a neat feature...

SWFans.net 11-01-2001 01:44 PM

I'll be adding this one. :pleased:

Admin 11-01-2001 01:53 PM

If you're already using v2.2.0, you can also do this.
Add this:
Code:

  if ($userinfo[usergroupid]==6) {
    $userinfo[activity] = 'admin';
  }

right after this:
Code:

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

And then add this:
Code:

    case 'admin':
      $userinfo[where] = "This is the text that will appear for all admins!";
      break;

right before this:
Code:

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

        $userinfo[$key][usergroupid] = $user[usergroupid];
right after this:
Code:

        $userinfo[$key][invisible] = $user[invisible];

nuno 11-01-2001 04:35 PM

hehe
gr8 hack FireFly
muchas gracias :D

mSoul01 11-02-2001 02:36 AM

sweet hack.. i'll be giving it a try later on tonight..

thanks for the post.

Syphin 11-02-2001 03:53 AM

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

Admin 11-02-2001 11:28 AM

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 11-02-2001 04:30 PM

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

-Syphin

Admin 11-02-2001 05:29 PM

No, but I got some custom things going on in my file so I had to add that line. :)

LanciaStratos 11-03-2001 01:59 AM

Very cool. Thanks FireFly!

Princeton 11-18-2001 09:59 PM

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 11-30-2001 11:06 AM

Neat @ Cool, thanks firefly

tbloom2002 11-30-2001 09:08 PM

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 12-27-2001 08:41 PM

wait what dose this ezactly do,

I can't tell?

DarkReaper 12-31-2001 06:07 AM

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 01-03-2002 05:53 PM

Is their a way for Admins to over-ride this and see where other admins are?

Warlord 01-06-2002 05:23 PM

Ahhhh that had me confused for a minute, but thanks for replying to my PM Firefly :)

StarBuG 01-08-2002 01:37 AM

Muahahahaha!!

I love it!!

*G*

StarBuG

Moonwolf 01-12-2002 04:28 PM

Tweaked version available at

https://vborg.vbsupport.ru/showthrea...threadid=34047

(Thanks Chen!!!!!)

Kathi

cyrus 01-17-2002 06:03 AM

doesnt work for me, I check it but it says my location ... What could i be doing wrong ? :(

cyrus 01-17-2002 09:17 PM

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

Admin 01-18-2002 12:28 PM

I think you better install this as a real hack, Moonwolf posted it a few days ago. :)

midnightz 06-12-2003 01:11 AM

Cool as always :)

Wifey 05-07-2004 08:14 PM

Any chance of updating this for vB3.0.0?

Fluous 05-07-2004 08:54 PM

Yeh, I just tried this and it doesn't work for 3. Because it can't find any of the lines.

Ryan Ashbrook 05-07-2004 09:50 PM

You gotta change it according to vB3's coding style.


All times are GMT. The time now is 04:02 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.01327 seconds
  • Memory Usage 1,778KB
  • 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
  • (10)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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