
cuando hay un REPLACE, yo no borro las líneas hasta que veo que el MOD me funciona perfectamente:
las comento y, por lo pronto, las dejo ahí por si tengo que revisar.
Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..
Gracias.
La Administración de phpBB España.
Código: Seleccionar todo
Parse error: syntax error, unexpected T_ELSE in /home/kenito/public_html/foros/index.php on line 76
Código: Seleccionar todo
[//-- mod : categories hierarchy --------------------------------------------------------------------
//-- add
}
else (AQUI ESTÁ LA LINEA 76)
{
if( $userdata['session_logged_in'] )
{
// get the list of object authorized
$keys = array();
$keys = get_auth_keys($viewcatkey);
// mark each forums
for ($i=0; $i < count($keys['id']); $i++) if ($tree['type'][ $keys['idx'][$i] ] == POST_FORUM_URL)
{
$forum_id = $tree['id'][ $keys['idx'][$i] ];
$sql = "SELECT MAX(post_time) AS last_post FROM " . POSTS_TABLE . " WHERE forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
if ( $row = $db->sql_fetchrow($result) )
{
$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array();
$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
if ( ( count($tracking_forums) + count($tracking_topics) ) >= 150 && empty($tracking_forums[$forum_id]) )
{
asort($tracking_forums);
unset($tracking_forums[key($tracking_forums)]);
}
if ( $row['last_post'] > $userdata['user_lastvisit'] )
{
$tracking_forums[$forum_id] = time();
setcookie($board_config['cookie_name'] . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
}
}
}
$template->assign_vars(array(
"META" => '<meta http-equiv="refresh" content="3;url=' .append_sid("index.$phpEx?" . POST_CAT_URL . "=$viewcat") . '">')
);
}
//-- fin mod : categories hierarchy ----------------------------------------------------------------
<td class="row1" align="center" valign="middle" width="20">
<img src="{topicrow.TOPIC_FOLDER_IMG}" width="35" height="35"[/quoteicy]
ese 20 deberia ser un 35.. pues el ancho de esos íconos es 35.
Eso.. nos vemos
Código: Seleccionar todo
<table
<tr>
{L_FORUM}
{L_TOPICS}
{L_POSTS}
{L_LASTPOST}
</tr>
<!-- BEGIN catrow -->
<tr>
{catrow.CAT_DESC}
</tr>
<!-- BEGIN forumrow -->
<tr>
<img src="{catrow.forumrow.FORUM_FOLDER_IMG}"
{catrow.forumrow.FORUM_NAME}
{catrow.forumrow.FORUM_DESC}
{catrow.forumrow.MODERATORS}
{catrow.forumrow.TOPICS}
{catrow.forumrow.POSTS}
{catrow.forumrow.LAST_POST}
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
Código: Seleccionar todo
{BOARD_INDEX}
Código: Seleccionar todo
</table>
</td>
<td background="templates/BBTech/images/trt.gif"><img name="trt" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td><img name="blc" src="templates/BBTech/images/blc.gif" width="10" height="12" border="0" alt=""></td>
<td background="templates/BBTech/images/btm.gif"><img name="btm" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img name="brc" src="templates/BBTech/images/brc.gif" width="10" height="12" border="0" alt=""></td>
</tr></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img name="tlc" src="templates/BBTech/images/tlc.gif" width="10" height="15" border="0" alt=""></td>
<td width="100%" background="templates/BBTech/images/tm.gif"><img name="tm" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td><img name="trc" src="templates/BBTech/images/trc.gif" width="10" height="15" border="0" alt=""></td>
</tr>
<tr>
<td background="templates/BBTech/images/tlt.gif"><img name="tlt" src="templates/BBTech/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td valign="top" bgcolor="#1E1E2A">
<table width="100%" cellpadding="2" cellspacing="1" border=0>
<tr>
<th colspan="2" class="1" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="1" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="1" nowrap="nowrap"> {L_POSTS} </th>
<th class="1" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="rowpic" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>