PHPBB3 如何在索引中显示最后的帖子标题

发布于 2024-07-19 03:13:31 字数 612 浏览 4 评论 0原文

我在 phpbb3 中使用 prosilver 主题。 在文件 forumlist_body.html 中,有一个部分看起来像这样:

<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>

我如何让它也显示最后一个帖子标题。 我尝试了 {forumrow.LAST_POST_TITLE} 但没有成功。

I am using the prosilver theme in phpbb3. In the file forumlist_body.html there is a part that looks like this:

<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>

How would I get that to show the last post title as well. I tried {forumrow.LAST_POST_TITLE} but it didn't work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

懷念過去 2024-07-26 03:13:31

{forumrow.LAST_POST_SUBJECT} 可能就是您所需要的。

{forumrow.LAST_POST_SUBJECT} is probably what you need.

夜空下最亮的亮点 2024-07-26 03:13:31

很简单,,

我已经做了这些修改,,

这里是刚刚替换的代码:

<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}   {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>
                <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>

its simple ,,

i have made those modifications ,,

here is the code just replace :

<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}   {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>
                <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>
帅的被狗咬 2024-07-26 03:13:31

它看起来不像我的..

*

  {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}

It doesn't look like mine..

*

  {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}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文