Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-28-2004, 09:38 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum Home "Who's Online" viewable only to moderators

Our "Who's Online" block is something we'd like to limit to moderator/admin users only. There is probably a conditional I could wrap it in, but I don't yet know which template to hack in vB3.0.3 to accomplish this (I'm thinking "FORUMHOME"), or which conditional I should use (although I know it should check for "member of group ___").

Basically, I just want a handful of usergroups to be able to view this, such as super moderators, admins, super admins and the site owner (who has his own 'group').

Searched here, browsed for awhile, but nothing really clicked as being appropriate.
Reply With Quote
  #2  
Old 12-28-2004, 09:42 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's defined in the usergroups. Usergroups > Usergroup Manager > (select group) > Edit Usergroup > Who's Online Permissions
Reply With Quote
  #3  
Old 12-28-2004, 09:44 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh crud...how the heck did I miss that one??

Thanks Eric. Now I've got a few groups to go through and change permissions on.
Reply With Quote
  #4  
Old 12-28-2004, 09:46 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know what you mean, after using other boards and moving to VB I was like :surprised: I couldn't believe all the default options that they have. This board is fantastic both from a users and an admins perspective.
Reply With Quote
  #5  
Old 12-28-2004, 09:51 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hold on...does this option turn off the "Who's Online" throughout the whole forum, or just on the forum home page? I only want it turned off on the home page.

Sorry, wasn't clear enough there. I wish there was a different way to choose what displays on the home page, selectable by user group perhaps...

I hear ya, too--I admin other forums using other forum systems. Trying to remember all the different options is hair-pulling time!
Reply With Quote
  #6  
Old 12-28-2004, 09:54 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you mean for who's viewing the forum etc.? I am not sure about that one but the "who's online" only displays on the forumhome by default.
Reply With Quote
  #7  
Old 12-28-2004, 09:57 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I'll clarify. Under "What's Going On", we have the "Currently Active Users" block--this is the one I'd like to turn off, mainly to eliminate the resource usage to generate it. (So this may be more than a template change, I'm thinking now.) Users can still use the separate "Who's Online" page to view who's on, plus, I still would like to keep active users displayed in the threads and forums.
Reply With Quote
  #8  
Old 12-28-2004, 10:31 PM
JonUrban JonUrban is offline
 
Join Date: Jul 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What part of the "Currently Active Users" is the resource hog? Is there a way to limit the resources used by this module?

:-jon
Reply With Quote
  #9  
Old 12-28-2004, 10:36 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The way I understand it is that the longer you have the online time set for, say 60 minutes instead of 10 makes it easier on the system and requires less resouces. RedWingFan, what about just pulling that variable out of the "What's going on" section of your FORUMHOME template?
Reply With Quote
  #10  
Old 12-29-2004, 12:00 AM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr
The way I understand it is that the longer you have the online time set for, say 60 minutes instead of 10 makes it easier on the system and requires less resouces. RedWingFan, what about just pulling that variable out of the "What's going on" section of your FORUMHOME template?
I thought about it, but what I'm now thinking is this: if I yank the variable out, all I'm doing is not displaying the contents of it. (Or if I wrap it in a conditional so only mods/admins can view it.) In other words, the variable is still being populated from the database, but all we're doing is not displaying it, when we yank it out of the template. Best thing I could think of is to possibly find out which page the variable is, maybe wrap it in some kind of code to check the usergroup (for admins/mods only), then populate it based on that. In pseudo-code:

IF member_of_groups(mods, admins) {

make database calls to populate $variable

}
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 12:06 AM.


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.05847 seconds
  • Memory Usage 2,254KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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