Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2004, 03:58 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Currently Active Users" not listed when subforum is a category.

Anyone know how to get the "Currently Active Users" listed at the botom of the page when a subforum is a category? I'm not sure why this would'nt be a default choice. It's kind of anoying when you look down and don't see the active users.
Reply With Quote
  #2  
Old 10-29-2004, 04:07 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just edit the templates

search the part in the forumhom_forumlist_level2_post and put that into the nopost section.

And to answer why it's not a default thing: because normally users aren't very long in a single category, but will browse the subforums most of the time
Reply With Quote
  #3  
Old 10-30-2004, 05:05 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon

And to answer why it's not a default thing: because normally users aren't very long in a single category, but will browse the subforums most of the time
Yes, but if you are trying to make a forum home for different sub-groups it would be nice to have it show users in the category and all sub-forums. Just like the main forum page.

Anyway, I tried in the templates, it just never shows up. But I'll keep playing with it.
Reply With Quote
  #4  
Old 10-30-2004, 05:32 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In fact it would be nice to have the whole "What's going on" table. But only have it apply to that category.
Reply With Quote
  #5  
Old 10-30-2004, 04:42 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Took a bit of hacking but I got it. Now I have the "what's going on" block working for a category subforum like the forum home.
Reply With Quote
  #6  
Old 10-30-2004, 05:10 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good
Reply With Quote
  #7  
Old 10-30-2004, 08:16 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know how to get $vboptions['showevents'] to be available in forumdisplay.php?
Reply With Quote
  #8  
Old 10-31-2004, 04:10 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having one problem that's been tough to crack. The Most users online code keeps setting it to how many are currently online. I made a new table in vb_datastore for the category forum so it wouldn't mess up the main one. Using the same code in forumdisplay that is used in index.php. It justdoesn't work?

Anyone have any ideas on this?

PHP Code:
    // ### MAX LOGGEDIN USERS ################################
    
$maxusers_jg unserialize($datastore['maxloggedin_jg']);
    if (
intval($maxusers_jg['maxonline']) <= $totalonline)
    {
        
$maxusers_jg['maxonline'] = $totalonline;
        
$maxusers_jg['maxonlinedate'] = TIMENOW;
        
build_datastore('maxloggedin_jg'serialize($maxusers_jg));
    }

    
$recordusers $maxusers_jg['maxonline'];
    
$recorddate vbdate($vboptions['dateformat'], $maxusers_jg['maxonlinedate'], true);
    
$recordtime vbdate($vboptions['timeformat'], $maxusers_jg['maxonlinedate']); 
I'm sure it's something stupid.
Reply With Quote
  #9  
Old 10-31-2004, 04:55 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I didn't add it to $specialtemplates

PHP Code:
// get special data templates from the datastore
$specialtemplates = array(
    
'birthdaycache',
    
'iconcache',
    
'mailqueue',
    
'eventcache',
    
'maxloggedin_jg'
); 
Reply With Quote
  #10  
Old 10-31-2004, 11:35 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, the datastore is your friend
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 11:11 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.04684 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete