Problem fixed, version 1.0.2 released. The
colspan increments were not working properly, so the table looked broken...
This upgrade is for those who want to use the original/unmodified template code.
Uninstall old version and re-install the new one. You only need to run the plugin, no other changes are needed. Don't you love vBulletin?
Enjoy.
For the teckies who want to know exacly what I did. This is the added code segment:
Code:
$colspan = 1;
$language_count = 0;
$style_count = 0;
$style_id = -1;
if ($vbulletin->languagecache === null)
{
$vbulletin->languagecache = array();
}
foreach ($vbulletin->languagecache AS $language)
{
if ($language['userselect'])
{
$language_count++;
}
}
if ($language_count > 0)
{
$colspan++;
}
if ($vbulletin->options['allowchangestyles'])
{
if (is_array($vbulletin->stylecache["$style_id"]))
{
$style_cache =& $vbulletin->stylecache["$style_id"];
}
else if (is_array($vbulletin->stylecache[$style_id]))
{
$style_cache =& $vbulletin->stylecache[$style_id];
}
else
{
return;
}
foreach ($style_cache AS $x)
{
foreach ($x AS $style)
{
if ($style['userselect'] OR $vbulletin->userinfo['permissions']['adminpermissions'] AND $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])
{
$style_count++;
}
}
}
if ($style_count > 1)
{
$colspan++;
}
}
$show['colspan'] = iif($language_count > 0 OR $style_count > 1, true, false);