PDA

View Full Version : Post Icon Row Count


Replicators
05-28-2006, 08:43 AM
http://img138.imageshack.us/img138/9578/posticons7gq.jpg

The post icons i have up are a bit wide, so 7 icons wide is too much, can anyone make a mod to be able to set how many wide we can have? I asked at vb.org at http://www.vbulletin.com/forum/showthread.php?t=186514 and they told me to request it here, so here i am. Thanks in advance if anyone does this.

Replicators
05-30-2006, 06:09 AM
*Bump* It should only be a simple small little modification!

Replicators
06-02-2006, 12:33 PM
*bump again* Any of you have any wide post icons? I wouldn't know how to do this, and it seems very simple to do, if anyone can take the small time needed to do this then it would be most appreciated.

peterska2
06-02-2006, 05:35 PM
I think I have it sussed, but to be sure I'll test it first so I'll get back to you later about it.

peterska2
06-02-2006, 07:07 PM
Ok, it requires a code modification to your includes/functions_newpost.php file

find

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;
}


replace the three number 7's that appear in this section to the number of post icons per row that you would like to display.

Replicators
06-02-2006, 08:04 PM
Thank You peterska2, i was afraid nobody would help me on this, you saved my day >8)

peterska2
06-02-2006, 08:05 PM
Glad I could help. Remember that this will need reapplying on every upgrade as it is a code modification.