vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "Currently Active Users" not listed when subforum is a category. (https://vborg.vbsupport.ru/showthread.php?t=71123)

Code Monkey 10-29-2004 03:58 AM

"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.

Xenon 10-29-2004 04:07 PM

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

Code Monkey 10-30-2004 05:05 AM

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. :D

Code Monkey 10-30-2004 05:32 AM

In fact it would be nice to have the whole "What's going on" table. But only have it apply to that category.

Code Monkey 10-30-2004 04:42 PM

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. :D

Xenon 10-30-2004 05:10 PM

Sounds good :)

Code Monkey 10-30-2004 08:16 PM

Anyone know how to get $vboptions['showevents'] to be available in forumdisplay.php?

Code Monkey 10-31-2004 04:10 AM

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. :D

Code Monkey 10-31-2004 04:55 AM

Nevermind, I didn't add it to $specialtemplates :o

PHP Code:

// get special data templates from the datastore
$specialtemplates = array(
    
'birthdaycache',
    
'iconcache',
    
'mailqueue',
    
'eventcache',
    
'maxloggedin_jg'
); 


Xenon 10-31-2004 11:35 AM

yeah, the datastore is your friend ;)


All times are GMT. The time now is 03:47 PM.

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.00988 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete