Desde la plantilla no es posible, habia una mod que te permitia incluir código php, pero no se si funcione o este aun.
La manera de llamar es con el atributo include.
Lo mandas a traer dentro de tu archivo, pero en las plantillas por seguridad no es permitido esto.
Creo que no te habia entendido bien, perdona la confusión, ya mire y si es verdad lo que mencionas, pero tu me dijiste, mira la columna derecha, me diste el enlace del portal y solo se miran 5 auncios efectivamente.
Ahora, En el otro se muestran mas y es dentro del foro, me imagino que estas utilizando otro código para esto, solo hay que poner en el query de la lista que estas mandando a traer 8 elementos, que las ids de los foros sean diferentes a las que tu quieres, o sean tomadas de la lista,tal y como hiciste en el anterior.
Con el mismo códig de latest_post debe funcionar, solo quita el limite de 5 a 8 y es el mismo codigo que debera funcionar...
<?php
if (!defined("IN_PORTAL")) {
die("<div style=\"border:1px solid #CC0000; padding:3px; margin:0; font-family:Tahoma; width:250px; font-size:12px;\"><strong>Error:</strong> This file cannot be viewed directly!</div>");
}
// Get forums user cannot view - Esta funcion excluye los foros con permisos... ojo
$unviewable = get_unviewable_forums();
if($unviewable)
{
$unviewwhere = " AND fid NOT IN ($unviewable)";
}
$altbg = alt_trow();
$threadlist = '';
$showlimit = 8;
$query = $db->query("
SELECT p.*, u.username
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE p.visible='1' $unviewwhere
ORDER BY p.dateline DESC
LIMIT 0, ".$showlimit
);
while($thread = $db->fetch_array($query))
{
$lastpostdate = my_date($mybb->settings['dateformat'], $thread['dateline']);
$lastposttime = my_date($mybb->settings['timeformat'], $thread['dateline']);
// Don't link to guest's profiles (they have no profile).
if($thread['uid'] == 0)
{
$lastposterlink = $thread['username'];
}
else
{
$lastposterlink = build_profile_link($thread['username'], $thread['uid']);
}
if(my_strlen($thread['subject']) > 20)
{
$thread['subject'] = my_substr($thread['subject'], 0, 20) . "...";
}
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
$thread['threadlink'] = get_post_link($thread['pid'],$thread['tid']);
$threadlist .= "<tr>
<td class=\"$altbg\">
<strong><a href=\"".$mybb->settings['bburl']."/".$thread['threadlink']."#pid".$thread['pid']."\">$thread[subject]</a></strong>
<span class=\"smalltext\"><br />
$lang->posted_by <em>$lastposterlink</em><br />
$lastpostdate $lastposttime
</span>
</td>
</tr>";
$altbg = alt_trow();
}
if($threadlist)
{
// Show the table only if there are threads
$latestposts = "<table border=\"0\" cellspacing=\"".$theme['borderwidth']."\" cellpadding=\"".$theme['tablespace']."\" class=\"tborder\">
<tr>
<td class=\"thead\"><div class=\"expcolimage\"><img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/{$expcolimage}\" id=\"block_{$result_blocks['id']}_img\" class=\"expander\" alt=\"{$expaltext}\" title=\"{$expaltext}\" /></div><strong>Ultimos Mensajes</strong></td>
</tr>
<tbody style=\"{$expdisplay}\" id=\"block_{$result_blocks['id']}_e\">
{$threadlist}
</tbody>
</table>";
}
else
{
$latestposts = "<table border=\"0\" cellspacing=\"".$theme['borderwidth']."\" cellpadding=\"".$theme['tablespace']."\" class=\"tborder\">
<tr>
<td class=\"thead\"><div class=\"expcolimage\"><img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/{$expcolimage}\" id=\"block_{$result_blocks['id']}_img\" class=\"expander\" alt=\"{$expaltext}\" title=\"{$expaltext}\" /></div><strong>Ultimos Mensajes</strong></td>
</tr>
<tbody style=\"{$expdisplay}\" id=\"block_{$result_blocks['id']}_e\">
<tr>
<td class=\"$altbg\">No Post</td>
</tr>
</tbody>
</table>";
}
echo $latestposts;
?>
Y con este codigo debería mostrarse como quieres el bloque, saludos...