Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[HowTo] Categorize Who's Online on Forumhome Details »»
[HowTo] Categorize Who's Online on Forumhome
Version: 1.00, by KuraFire KuraFire is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-08-2003 Last Update: Never Installs: 28
 
No support by the author.

HACK: [HowTo] Categorize Who's Online on Forumhome
BY: KuraFire [www.kurafire.com]
REQUESTED BY: Xiphoid [www.creations.nl]
DESCRIPTION: Divide the active users bit on Forumhome into a Staff: section and Members: section
DIFFICULTY: Easy
INSTALL-TIME: 5 minutes

Xiphoid asked for a categorization on forumhome (Staff / Members) for vB 3, but since it's such an easy thing I decided not to wait for vB 3 but just make the hack myself

Kudos to xiphoid for a good idea

EXAMPLE HERE: click here for an example of this hack

Warning / note: The || and && operators in original vB code I put in the instructions here that you need to search on MIGHT BE "or" and "and" in your version. Keep that in mind if you can't find the code!

Note: I wrote this on my own board which is currently still version 2.2.5, it might well work on any version above that but that is not yet tested or confirmed! (nor for versions below)

INSTRUCTIONS ARE IN THE ATTACHMENT

If something did not work right, you did not follow the instructions properly

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-09-2003, 10:54 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn Cool!! Thanks KuraFire!!
Install this right now!!
Reply With Quote
  #3  
Old 01-09-2003, 11:06 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks nice

also can you please delete the instructions from your post and just put it in the textfile, so unlicenced users can't get it?
Reply With Quote
  #4  
Old 01-09-2003, 11:19 AM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmkay...
Reply With Quote
  #5  
Old 01-09-2003, 01:09 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to adapt this for the WOL page proper?
Reply With Quote
  #6  
Old 01-09-2003, 03:04 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent hack. Thanks!

My second instance that you said to comment out of this code has a comma in it. Do we need to put a comma back in the line above it or anything?

Code:
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
Also, if a staff member is online and invisible, will the staff tag still show up on the line and be blank or will it not show up to regular members? If I am the only staff member online and in Ghost mode, I really don't want the Staff: to show up, if possible. That would pretty well give it away that there is a staff member online but invisible.
Reply With Quote
  #7  
Old 01-09-2003, 03:44 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Do we need to put a comma back in the line above it or anything?
Nope, thanks for pointing that out!
The comma's between usernames are added with the implode() function that I call at the end of the hack part. You should not have any comma's (string-comma's, not code-related ones) in your code anymore....

Quote:
Also, if a staff member is online and invisible, will the staff tag still show up on the line and be blank or will it not show up to regular members? If I am the only staff member online and in Ghost mode, I really don't want the Staff: to show up, if possible. That would pretty well give it away that there is a staff member online but invisible.
I do believe that it won't appear unless there is at least 1 VISIBLE member in that section (staff or members). I looked at the code and it should work that way, if it doesn't, let me know okay?

Quote:
Is it possible to adapt this for the WOL page proper?
You mean sort the display of Who's Online (online.php) into a Staff and Members (and Guests?) section as well?

That's possible but that can't be done with this hack, I'd have to write a whole different kind of hack for that. The WOL page works quite a bit differently, more complex and all.....
Reply With Quote
  #8  
Old 01-09-2003, 03:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the quick response. It's hard to tell if the Staff shows up since I will see it as the Admin even for invisible staff. I'll check with someone on line at the time and see if they can see it. I'll let you know what I find out.

Thanks again for a very useful hack.
Reply With Quote
  #9  
Old 01-09-2003, 03:57 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could check it out for you right now if you've installed the hack on your live board already...
Reply With Quote
  #10  
Old 01-09-2003, 04:00 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, great. I'm there now. Do you need the URL? It is in my profile unless you want it here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04845 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete