$opts =& $this->registry->options;
$backup = array($template_hook['postbit_userinfo_left'], $opts['dbtech_status_enabled'], $opts['dbtech_status_moodenabled']);
foreach (array('status', 'mood') AS $i => $which)
{ //for both types separately
if ($backup[$i + 1])
{ //only enabled individually
$opts['dbtech_status_enabled'] = !$i;
$opts['dbtech_status_moodenabled'] = $i;
$template_hook['postbit_userinfo_left'] = '';
require(DIR . '/dbtech/status/hooks/postbit_display_complete.php');
$template_hook['dbtech_' . $which] = $template_hook['postbit_userinfo_left'];
}
}
list($template_hook['postbit_userinfo_left'], $opts['dbtech_status_enabled'], $opts['dbtech_status_moodenabled']) = $backup;
unset($opts, $backup);
{vb:raw template_hook.dbtech_status} and {vb:raw template_hook.dbtech_mood}
We use essential cookies to make this site work, and optional cookies to enhance your experience.