Quote:
Originally Posted by AusPhotography
Suggested improvement, allow "Below Navbar" to also have instance names work at the same time...
|
Good idea. I've added it for the next version, with a few changes. Here's the full code with context:
PHP Code:
// Set these per-instance arrays
$instanceOptions[$instanceid] = $instance['options'];
$instancePermissions[$instanceid] = $instance['permissions_parsed'];
$bbcodePermissions[$instanceid] = $instance['bbcodepermissions_parsed'];
// Add the rendered template to the varname
$show['vbshout_' . $instance['varname']] = $rendered;
if (THIS_SCRIPT == 'vbshout' OR defined('VBSHOUT_SKIP_AUTODISPLAY'))
{
// Don't need to do anything with this
continue;
}
switch ($instance['autodisplay'])
{
case 1:
if (THIS_SCRIPT == 'index')
{
// Below Navbar
if (intval($vbulletin->versionnumber) != 3)
{
// vB4 Location
$ad_location['global_below_navbar'] .= $rendered;
}
else
{
// vB3 code
$ad_location['ad_navbar_below'] .= $rendered;
}
}
break;
case 2:
if (THIS_SCRIPT == 'index')
{
// Above Footer
$template_hook['forumhome_below_forums'] .= $rendered;
}
break;
}
This provides the maximum amount of control over the shoutbox deployment
Fillip