PDA

View Full Version : Post Icon Width for tables


beatthecasino
01-14-2009, 12:39 PM
How can I change the number of smiles columns in the post icon section? Some of my animated ones go outside the post icon border? Thanks for any assistance !

markbolyard
01-14-2009, 01:11 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=129306&highlight=smile+below" target="_blank">https://vborg.vbsupport.ru/showt...ht=smile+below</a>

You can use that mod to move the smiles below the box, you can change your settings in the admincp on the number to show, and / or you can change the display order so that only the small ones show by default.

vBulletin Options - Message Posting Interface Options

Hope that helps.

beatthecasino
01-14-2009, 01:37 PM
Thanks for your reply that works well with the smiles at the right side of the edit box but I have the post icons enabled which display under the tag, trackback and then post icons is where the issue is.

markbolyard
01-14-2009, 02:16 PM
Oops, sorry.

This is hard coded into the includes/functions_newpost.php file.

Edit your includes/functions_newpost.php, locate the following section of code:


if (!$vbulletin->db->num_rows($icons))
{
return false;
}

$numicons = 0;
$show['posticons'] = false;

while ($icon = $vbulletin->db->fetch_array($icons))
{
$show['posticons'] = true;
if ($numicons % 7 == 0 AND $numicons != 0)
{
$posticonbits .= "</tr><tr><td>&nbsp;</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 all the instances of 7 to your desired number of rows. Note the above code was taken from vBulletn 3.8 so yours may be slightly different. Jus tlook for the specified lines that have 7 in them.


EDIT: please make a backup of this file before you modify it in case there is a mistake made. Also note when you do future upgrades, that you have made this edit as this file will be overwritten with future updated files.