Página 2 de 2

Publicado: 08 Mar 2004, 22:50
por tole
Faltarí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­a mí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¡s te dejo el enlace

Salu2.

Re: Un par de dudas

Publicado: 15 Jul 2004, 13:33
por madelmanhouse
Sabeis si este Mod es compatible con PHPBB2 2.0.4? Lo he instalado pero no me va, salen errores, he restaurado los originales y todo sigue bien, pero antes de probarlo otra vez me gustaria saber si se puede con esta version o no.

Publicado: 16 Jul 2004, 09:12
por madelmanhouse
Bueno, ya no me salen errores, habia sido un fallo normal por comerme una coma. Pero no consigo que funcione del todo, le doy a publicar un nuevo tema, me sale bien la casilla de descripcion del tema, el tema se publica perfectamente, pero luego en la vista general del foro no sale la descripcion.

Me estoy centrando en el archivo viewforum_body. tpl, os pongo mi archivo:

Código: Seleccionar todo

<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
{PAGINATION}</td>
<td class="gensmall" align="right" valign="bottom">{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}<br />
<strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
<th width="50">&nbsp;{L_REPLIES}&nbsp;</th>
<th width="100">&nbsp;{L_AUTHOR}&nbsp;</th>
<th width="50">&nbsp;{L_VIEWS}&nbsp;</th>
<th>&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<tr>
<td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="33" height="25" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" border="0" /></a></td>
<td class="row1" align="center" valign="middle" width="16">{topicrow.ICON}</td>
<td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_ATTACHMENT_IMG}<span class="topictitle">{topicrow.TOPIC_TYPE}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.REPLIES}</span></td>
<td class="row3" align="center"><span class="postdetails">{topicrow.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center"><span class="postdetails">{topicrow.VIEWS}</span></td>
<td class="row3" align="center" nowrap="nowrap"><span class="postdetails">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="7" align="center">{L_NO_TOPICS}</td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="cat" align="center" colspan="7">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="genmed">{L_DISPLAY_TOPICS}:&nbsp;</td>
<td>{S_SELECT_TOPIC_DAYS}&nbsp;&nbsp;</td>
<td><input type="submit" class="catbutton" value="{L_GO}" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" style="filter:alpha(opacity=65)" onMouseOver="this.filters.alpha.opacity=100" onMouseOut="this.filters.alpha.opacity=65" title="{L_POST_NEW_TOPIC}" width="82" height="25" /></a></td>
<td class="nav" width="100%">&nbsp;<a href="{U_INDEX}">{L_INDEX}</a> -> <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="nav" valign="top">{PAGINATION}<br />
<br />
{JUMPBOX}<br />
</td>
<td class="gensmall" align="right" valign="top"><strong><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></strong><br />
{L_MODERATOR}: {MODERATORS}<br />
{LOGGED_IN_USER_LIST}
</td>
</tr>
</table>
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0">
<tr>
<td valign="top">
<table border="0" cellspacing="3" cellpadding="0">
<tr>
<td><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" width="33" height="25" /></td>
<td class="gensmall">&nbsp;{L_NO_NEW_POSTS}</td>
<td>&nbsp;&nbsp;</td>
<td><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" title="{L_ANNOUNCEMENT}" width="33" height="25" /></td>
<td class="gensmall">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" title="{L_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" title="{L_NO_NEW_POSTS_HOT}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" title="{L_STICKY}" width="33" height="25" /></td>
<td class="gensmall">{L_STICKY}</td>
</tr>
<tr>
<td><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" title="{L_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" title="{L_NO_NEW_POSTS_LOCKED}" width="33" height="25" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</td>
<td align="right" valign="top"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
Esta es la modificacion que hay que meter en este archivo:

Código: Seleccionar todo

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{topicrow.TOPIC_TITLE}</a></span><span class="gensmall">
#
#-----[ AFTER, ADD ]------------------------------------------
#
              <!-- BEGIN switch_topic_desc -->
              {L_DESCRIPTION} : {topicrow.switch_topic_desc.TOPIC_DESCRIPTION}<br />
              <!-- END switch_topic_desc -->
#
#-----[ SAVE/CLOSE ALL FILES ]----------------------------------------
No se bien donde ponerla. Tampoco tengo claro si el problema esta en este archivo o en otro.

Re: Un par de dudas

Publicado: 16 Jul 2004, 09:52
por madelmanhouse
Perdon otra vez, os sigo ampliando la informacion, ahora voy con la actualizacion que me hizo en la base de datos, todo correcto, supuestamente.Lo que me extraí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±a es que los campos title y desc sean distintos.


topic_title varchar(60) No

topic_desc varchar(255) Sí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­ NULL

Publicado: 17 Jul 2004, 10:16
por madelmanhouse
Ya lo he erreglado, he empezado desde el principio y el error estaba en el posting.php.