Ver Mensaje Individual
  #103 (permalink)  
Antiguo 23/08/2005, 17:17
Prinmode
 
Fecha de Ingreso: agosto-2005
Mensajes: 9
Antigüedad: 19 años, 5 meses
Puntos: 0
Hola khima, pues por lo q se debería funcionarte solo con foro/ pero lo q nose es q hace metido esto: /home/khimamu/public_html/foro/includes/template.php en el listado , ojalá tuviera mas conocimientos para ayudarte
---
mi problema lo solucioné por si a alguien le pasaba lo mismo aki le pegue una arregladita pero cada uno tiene q adaptarlo bien a su web, ya q hay q modificar el tamaño de las celdas para q kede igual a las de arriba.

Lo q hice fue separar la celda del titulo y el contenido en dos tablas, asi ahora la tabla titulo kedara fija y el contenido variable, pudiendo asi cerrar la tabla y no generar problemas con otras tablas de la web (como en mi caso), weno si alguien puede mejorar esto ya q lo hice a mi pinta nomas
Código PHP:
<?
define
('IN_PHPBB'true);
$phpbb_root_path 'foros/';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);

//
// Start session management
//
$userdata session_pagestart($user_ipPAGE_INDEX);
init_userprefs($userdata);
$auth_ary auth(AUTH_READAUTH_LIST_ALL$userdata);
while ( list(
$auth_forum_id$auth_level) = each($auth_ary) )
{
    if (!
$auth_level['auth_read'] )
    {
        
$auth_view_forums = ($auth_view_forums " p.forum_id<>" $auth_forum_id " and ");
        
$auth_view_forums1 = ($auth_view_forums1 " forum_id<>" $auth_forum_id " and ");
    }
}
$auth_view_forums="WHERE " $auth_view_forums;
?>
<style>
/* This is the outline round the main forum tables */
th    {
    color: #FFA34F; font-size: 11px; font-weight : bold;
    background-color: #006699; height: 25px;
    background-image: url(foros/templates/softmetal/images/cellpic3.gif);
}

.forumline    { background-color: #FFFFFF; border: 2px #006699 solid; }
td.row1    { background-color: #EFEFEF;font-size: 9px;  }
td.row2    { background-color: #DEE3E7; font-size: 10px;  }
td.row2    { background-color: #DEE3E7; font-size: 10px;  }
td.row3    { background-color: #D1D7DC; }
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif;}
a.dos:link,a.dos:active,a.dos:visited { text-decoration: none;color : #006699; }
a.dos:hover        { text-decoration: none; color : #DD6900; }
.actual{border:2px solid #000000;background-color: #FFFFFF;font-size: 10px; }
.noactual{border:2px solid #FFFFFF;background-color: #EFEFEF;font-size: 10px; }
</style>
<table align="center" width="524">
<tr>
    <th width="147" height="25" valign="top"> Título - Foro </th>
    <th width="103" valign="top">
    Escrito por    </th>
    <th width="143" valign="top"> Último mensaje </th>
    <th width="100" valign="top">
    Respuestas    </th>
</tr>
</table>
<?
$sql_ini
=mysql_query("SELECT distinct topic_id FROM ".POSTS_TABLE." p $auth_view_forums 1 ORDER BY p.post_time DESC LIMIT 0,5");
while (
$assoc=mysql_fetch_assoc($sql_ini))
    foreach (
$assoc as $value)
    {

        
$sql=mysql_query("SELECT t.topic_last_post_id, t.topic_title, t.topic_id, t.topic_time, t.topic_replies, u.username,u.user_id, f.forum_name, f.forum_id, p.post_id, p.post_time FROM ".POSTS_TABLE." p, ".TOPICS_TABLE." t, ".USERS_TABLE." u, ".FORUMS_TABLE." f WHERE t.topic_poster=u.user_id AND t.topic_id=".$value." AND p.post_id=t.topic_last_post_id AND t.forum_id=f.forum_id");
        while (
$assoc=mysql_fetch_assoc($sql))
        {
            
$sql1=mysql_query("SELECT u.username FROM ".POSTS_TABLE." p, ".USERS_TABLE." u WHERE p.post_id=".$assoc['topic_last_post_id']." AND  p.poster_id=u.user_id");
            
$ultimo_usuario=mysql_fetch_assoc($sql1);
            
$ultimo_usuario=$ultimo_usuario['username'];
            
$fecha_ultimo=getdate($assoc['post_time']);
            
$fecha_ultimo=$fecha_ultimo["mday"]."-".$fecha_ultimo["mon"]."-".$fecha_ultimo["year"];
            
$fecha_abierto=getdate($assoc['topic_time']);
            
$fecha_abierto=$fecha_abierto["mday"]."-".$fecha_abierto["mon"]."-".$fecha_abierto["year"];
            
?>
<table align="center" width="524">
<tr>
    <td width="76" height="21" align="center" valign="top" class="row1"><a href="<?=$phpbb_root_path?>viewtopic.php?p=<?=$assoc['post_id']?>&highlight=#<?=$assoc['post_id']?>" class="dos" target="_blank"><?=( ( strlen $assoc["topic_title"] ) > 25 ) ? ( substr $assoc["topic_title"] , 25 ) . "..." ) : $assoc["topic_title"] )?>
    </a></td>
    <td width="76" align="center" valign="top" class="row1"><a href="<?=$phpbb_root_path?>viewforum.php?f=<?=$assoc["forum_id"]?>" class="dos" target="_blank"><?=$assoc["forum_name"]?>
    </a></td>
    <td width="103" align="center" valign="top" class="row1"><a href="<?=$phpbb_root_path?>profile.php?mode=viewprofile&u=<?=$assoc["username"]?>" class="dos" target="_blank"><?=$assoc["username"]?>
      </a>
        el 
    <?=$fecha_abierto?>      &nbsp;    </td>
    <td width="148" align="center" valign="top" class="row1">            <a href="<?=$phpbb_root_path?>profile.php?mode=viewprofile&u=<?=$ultimo_usuario?>" class="dos" target="_blank"><?=$ultimo_usuario?> 
    </a>el 
    <?=$fecha_ultimo?>
    <td width="101" align="center" valign="top" class="row1">                <?=$assoc["topic_replies"]?>
  </tr>
</table>
<?}
    }
?>
pd: tambien le puse al style de los links ".dos" para q no confunda con otros links de la web

saludo