View Full Version : "Currently Active Users" not listed when subforum is a category.
Code Monkey
10-29-2004, 03:58 AM
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
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?
// ### 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
// 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 ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.