2009-05-08 11 views
0

J'utilise le thème prosilver dans phpbb3. Dans le fichier forumlist_body.html il y a une partie qui ressemble à ceci:PHPBB3 Comment afficher le titre du dernier message dans l'index

<dd class="lastpost"><span> 
<!-- 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> 

Comment pourrais-je obtenir que pour montrer le dernier titre de poste ainsi. J'ai essayé {forumrow.LAST_POST_TITLE} mais cela n'a pas fonctionné.

Répondre

1

{forumrow.LAST_POST_SUBJECT} est probablement ce dont vous avez besoin.

0

Il ne ressemble pas à moi ..

* 

    {forumrow.FORUM_NAME}{L_FORUM} 
     {L_TOPICS} 
     {L_POSTS} 
     {L_LAST_POST} 

* 

    {forumrow.FORUM_IMAGE} {forumrow.FORUM_NAME} 
    {forumrow.FORUM_DESC} 
    {forumrow.L_MODERATOR_STR}: {forumrow.MODERATORS} 
    {forumrow.L_SUBFORUM_STR} {forumrow.SUBFORUMS} 
     {L_REDIRECTS}: {forumrow.CLICKS} 
     {forumrow.TOPICS} {L_TOPICS} 
     {forumrow.POSTS} {L_POSTS} 
     {L_LAST_POST}{L_POST_BY_AUTHOR}{forumrow.LAST_POSTER_FULL} {LAST_POST_IMG} 
     {forumrow.LAST_POST_TIME}{L_NO_POSTS} 

{} L_NO_FORUMS

1

ses simples ,,

j'ai fait ces modifications ,,

est le code ici il suffit de remplacer:

<dd class="lastpost"><span> 
        <!-- IF forumrow.U_UNAPPROVED_TOPICS --><a href="{forumrow.U_UNAPPROVED_TOPICS}">{UNAPPROVED_IMG}</a><!-- ENDIF --> 
        <!-- IF forumrow.LAST_POST_TIME -->{forumrow.LAST_POST_SUBJECT}&nbsp;&nbsp; {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 />&nbsp;<!-- ENDIF --></span> 
       </dd> 
       <dd class="topics">{forumrow.TOPICS}<br /><span>{L_TOPICS}</span><dfn>{L_TOPICS}</dfn></dd> 
       <dd class="posts">{forumrow.POSTS}<br /><span>{L_POSTS}</span><dfn>{L_POSTS}</dfn></dd> 
Questions connexes