Inserire il Titolo del Topic nel campo Ultimo messaggio
La modifica consente di aggiungere il Titolo (in formato short, lungo 25 caratteri) nella colonna "Ultimi Messaggi" dell'Indice del Forum.
File da modificare
- includes/function_display.php
- styles/...../template/forumlist_body.html
1) file includes/function_display.php
Trova:
Codice: Seleziona tutto
$last_post_subject = $row['forum_last_post_subject'];
Codice: Seleziona tutto
$last_post_subject_short=str_split(censor_text($last_post_subject) , 25);
if (strlen($last_post_subject) > 25 ) $last_post_subject_short[0] = $last_post_subject_short[0] . " ...";
Codice: Seleziona tutto
'LAST_POST_SUBJECT' => censor_text($last_post_subject),
Codice: Seleziona tutto
'LAST_POST_SUBJECT_SHORT' => $last_post_subject_short[0],
Trova:
Codice: Seleziona tutto
{L_POST_BY_AUTHOR}
Codice: Seleziona tutto
<a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SUBJECT_SHORT}</a><br>
Codice: Seleziona tutto
<dd class="lastpost"><span>
<!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF -->
<!-- IF forumrow.LAST_POST_TIME --><dfn>{L_LAST_POST}</dfn> {L_POST_BY_AUTHOR} {forumrow.LAST_POSTER_FULL}<br/>
<a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}"><b>{forumrow.LAST_POST_SUBJECT_SHORT}</b></a>
<!-- IF not S_IS_BOT --><a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a> <!-- ENDIF --><br />{forumrow.LAST_POST_TIME}
<!-- ELSE -->{L_NO_POSTS}<br /> <!-- ENDIF --></span>
</dd>
Ovviamente c'è la possibilità di invertire le righe "user, titolo, data" come uno vuole.