Bug Currently Active User Disappears Will upgrade fix for 4.1.2

Status
Not open for further replies.

s3ponline

Customer
The 4.1.2 update caused us to lose our currently active users. I turned off Info panels to see if it worked, and it does.

I see you guys have everything working here.

Will the update to info panels fix this issue?

The only reason I don’t want to update is because we’ve made changes to the infopanels to remove things we felt were unnecessary and the cut the size down a bit.

Thanks for suggestion and help ;)
 
I'm pretty sure it does, we did fix the issue here on DBTech and I think I pushed the fix, I'm not sure.

The fix needs to go after this block of code:
PHP:
if ($vbulletin->options['dbtech_infopanels_legend_enable'])
{
	$staffgroups = array();
	foreach ($vbulletin->usergroupcache as $usergroupid => $usergroup)
	{
		if (!($usergroup['genericoptions'] & $vbulletin->bf_ugp_genericoptions['showgroup']))
		{
			// This isn't a staff group
			continue;
		}
		
		if (!$usergroup['opentag'])
		{
			// Didn't have a colour
			continue;
		}
		
		// This is a staff group
		$staffgroups[] = $usergroup['opentag'] . $usergroup['title'] . $usergroup['closetag'];
	}
	
	if (!empty($staffgroups))
	{
		// We had at least 1 staff group with some form of colour
		$templater = vB_Template::create('dbtech_infopanel_stafflegend');
			$templater->register('staffgroups',		implode(' | ', $staffgroups));
		$activeusers .= $templater->render();
	}
}

And is the following:
PHP:
if (version_compare($vbulletin->versionnumber, '4.1.2', '>=') !== false AND $show['loggedinusers'])
{
	$template_hook['forumhome_wgo_pos2'] = '<div id="wgo_onlineusers2" class="wgo_subblock section"><div><ol class="commalist" id="wgo_onlineusers_list2">' . $activeusers . '</ol></div></div>' . $template_hook['forumhome_wgo_pos2'];
}
 
Status
Not open for further replies.

Similar threads

Legacy InfoPanels

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
873
Customer rating
0.00 star(s) 0 ratings
Back
Top