Te refieres al contenido del block_latestposts.php ???
Es este:

Código PHP:
<?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
$unviewable get_unviewable_forums();
if(
$unviewable)
{
    
$unviewwhere " AND fid NOT IN ($unviewable)";
}

$altbg alt_trow();
$threadlist '';
$showlimit 5;
$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'], 020) . "...";
    }
    
$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=\"
{$theme['imgdir']}/{$expcolimage}\" id=\"block_{$result_blocks['id']}_img\" class=\"expander\" alt=\"{$expaltext}\" title=\"{$expaltext}\" /></div><strong>Latest Posts</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=\"
{$theme['imgdir']}/{$expcolimage}\" id=\"block_{$result_blocks['id']}_img\" class=\"expander\" alt=\"{$expaltext}\" title=\"{$expaltext}\" /></div><strong>Latest Posts</strong></td>
        </tr>
        <tbody style=\"
{$expdisplay}\" id=\"block_{$result_blocks['id']}_e\">
        <tr>
        <td class=\"
$altbg\">No Post</td>
        </tr>
        </tbody>
    </table>"
;
}

echo 
$latestposts;
?>


Edit:
Al php le quite este enunciado que era el culpable del mensaje de error:
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>");
}


Pero ahora me pasa algo raro, cuando edito la plantilla agregandole el codigo que ejecute el php, al guardar la plantilla se borra todo el script desde la linea de ese codigo que ingrese hasta el final. Eso me lo suele hacer cuando algo esta mal escrito...

Edit2: funciona si copio todo el codigo del PHP directamente en la plantilla... que me recomendas hacer?
Última modificación: 28 Jun, 2011, 6:50 pm por YondaimeKuba.
Pues usar el código en la plantilla también es perfectamente válido. ^^
(26 Jun, 2011, 12:57 pm)nentab escribió:
(26 Jun, 2011, 4:02 am)Gmaster escribió: Como se le agrega boxes a esa columna?. Quisiera agregarle un box de donaciones, otro con un texto y un tercero con las ultimas respuestas.

Donde pone:

Código:
<td valign="top">
<div id="effect" class="ui-widget-content ui-corner-all">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" width="240">
<tr>
<td class="thead">
<strong>Search</strong>
</td>
</tr>
<tr>
<td class="trow1">
<form method="post"
action="{$mybb->settings['bburl']}/search.php">

<input type="hidden" name="action" value="do_search" />

<input type="hidden" name="postthread" value="1" />

<input type="hidden" name="forums" value="all" />

<input type="hidden" name="showresults" value="threads" />

<input type="text" class="textbox" name="keywords" value="" />

<!-- start: gobutton -->

<input type="submit" class="button" value="Go" />

<!-- end: gobutton -->

</form>
</td>
</tr>
</table>
</div>
</td>

Pues añades justo antes del último </td > un espacio (<br / >) y otra tabla (<table >).

No entendi eso... ya intente poner codigos por todos lados y siempre me muestra cualquier cosa. Podrias darme un ejemplo concreto?
(14 Jul, 2011, 6:48 pm)Gmaster escribió: No entendi eso... ya intente poner codigos por todos lados y siempre me muestra cualquier cosa. Podrias darme un ejemplo concreto?

Prueba con esto a ver:

Código:
<td valign="top">
<div id="effect" class="ui-widget-content ui-corner-all">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" width="240">
<tr>
<td class="thead">
<strong>Search</strong>
</td>
</tr>
<tr>
<td class="trow1">
<form method="post" action="{$mybb->settings['bburl']}/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" class="textbox" name="keywords" value="" />
<!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
</form>
</td>
</tr>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" width="240">
    <tr>
        <td class="thead"><strong>Título de la caja</strong></td>
    </tr>
    <tr>
        <td class="trow1">
            Contenido de la caja
        </td>
    </tr>
</table>
</div>
</td>
(18 Jul, 2011, 10:56 pm)Gmaster escribió: Ahora ya entendi !!! Smile

Perfecto! Smile
Se puede ponerle un ancho fijo a esa columna y que se redimensione el resto del foro?.

Es que ese tamaño varia y a veces queda mal, por ejemplo, con el navegador Opera se ve muy flaca la columna, jejeje.
Última modificación: 30 Jul, 2011, 6:01 pm por YondaimeKuba.
(30 Jul, 2011, 6:00 pm)Gmaster escribió: Se puede ponerle un ancho fijo a esa columna y que se redimensione el resto del foro?.

Es que ese tamaño varia y a veces queda mal, por ejemplo, con el navegador Opera se ve muy flaca la columna, jejeje.

Donde pone:

Código:
<div class="ui-widget-content ui-corner-all" id="effect">

Pon:

Código:
<div class="ui-widget-content ui-corner-all" id="effect" style="width: 200px">

El número 200 cámbialo por el que quieras. Smile
Última modificación: 31 Jul, 2011, 3:18 pm por Cluster.
Por defecto venia asi:
Código:
<div class="ui-widget-content ui-corner-all">

Le agregue el resto y quedo genial, gracias abdon! Big Grin
Hola Como podria ponerlo en tamaño 250 la columna y que solo salga los ultimos Temas recientes ?