ADMIN
11-19-2010, 03:36 AM
here it is for those looking to change the number of columns displayed for your post icons. Useful for those with narrow fixed width styles where the icons may cause table breaks, or for those with fluid designs that would allow for more columns displayed.
Edit your includes/functions_newpost.php, locate the following section of code:
while ($icon = $vbulletin->db->fetch_array($icons))
{
$show['posticons'] = true;
if ($numicons % 7 == 0 AND $numicons != 0)
{
$posticonbits .= "</tr><tr><td> </td>";
}
$numicons++;
$iconid = $icon['iconid'];
$iconpath = $icon['iconpath'];
$alttext = $icon['title'];
if ($seliconid == $iconid)
{
$iconchecked = 'checked="checked"';
$selectedicon = array('src' => $iconpath, 'alt' => $alttext);
}
else
{
$iconchecked = '';
}
($hook = vBulletinHook::fetch_hook('posticons_bit')) ? eval($hook) : false;
eval('$posticonbits .= "' . fetch_template('posticonbit') . '";');
}
$remainder = $numicons % 7;
if ($remainder)
{
$remainingspan = 2 * (7 - $remainder);
$show['addedspan'] = true;
Change each instance of the number 7, to the desired number of columns. Save, and upload the modified file.
Remember to always keep a backup of the original file in case of bad file edits, and if you upgrade in the future, you will have to edit this file again.
Edit your includes/functions_newpost.php, locate the following section of code:
while ($icon = $vbulletin->db->fetch_array($icons))
{
$show['posticons'] = true;
if ($numicons % 7 == 0 AND $numicons != 0)
{
$posticonbits .= "</tr><tr><td> </td>";
}
$numicons++;
$iconid = $icon['iconid'];
$iconpath = $icon['iconpath'];
$alttext = $icon['title'];
if ($seliconid == $iconid)
{
$iconchecked = 'checked="checked"';
$selectedicon = array('src' => $iconpath, 'alt' => $alttext);
}
else
{
$iconchecked = '';
}
($hook = vBulletinHook::fetch_hook('posticons_bit')) ? eval($hook) : false;
eval('$posticonbits .= "' . fetch_template('posticonbit') . '";');
}
$remainder = $numicons % 7;
if ($remainder)
{
$remainingspan = 2 * (7 - $remainder);
$show['addedspan'] = true;
Change each instance of the number 7, to the desired number of columns. Save, and upload the modified file.
Remember to always keep a backup of the original file in case of bad file edits, and if you upgrade in the future, you will have to edit this file again.