Mod che mostra anteprima post ed autore
Inviato: 01/11/2011, 15:02
Esiste Una Mod Che Nella Home Oltre A Dire L'autore Dell'ultimo Messaggio Dica Anche Il Post?Così:


Sito di supporto italiano per phpBB
https://www.phpbbitalia.net/forum/
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] . " ...";
}else{
$last_post_subject_short[0] = $last_post_subject ;
}
Codice: Seleziona tutto
'LAST_POST_SUBJECT' => censor_text($last_post_subject),
Codice: Seleziona tutto
'LAST_POST_SUBJECT_SHORT' => $last_post_subject_short[0],
'LAST_TOPIC_ICON_IMG' => get_icon_id_for_post($row['forum_last_post_id']) ,
Codice: Seleziona tutto
<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
Codice: Seleziona tutto
<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}"><b>{forumrow.LAST_POST_SUBJECT_SHORT}</b></a></p>
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}
<!-- 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>
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>