[wordpress插件] bbPress Go To First Unread PostbbPress转到第一个未读的帖子

wordpress 插件 文章 2020-03-01 14:00 577 0 全屏看文

AI助手支持GPT4.0

评分
96
描述

bbPress Go To First Unread Post is a literally named plugin that allows registered users to jump to the first Reply in a Topic that they haven’t viewed yet.

bbPress转到第一个未读帖子是一个字面意义上的插件,它使注册用户可以跳转到他们尚未查看的主题中的第一个回复。

This gives your bbPress forum the simple and expected functionality of non-WordPress counterparts like phpBB, without a lot of coding.

这为您的bbPress论坛提供了非WordPress对等对象(如phpBB)的简单且预期的功能,而无需进行大量编码。

First, you activate the plugin on a blog that already has the bbPress plugin enabled.

首先,您在已经启用bbPress插件的博客上激活该插件。

This is all you need to do to activate the basic functionality of the plugin, which includes:

这是激活插件的基本功能所需要做的一切,其中包括:

    • Automatic tracking of last reply viewed, per topic per user.
    • 针对每个用户的每个主题自动跟踪上次查看的答复。

    • Link next to the title of a topic if the user has unread posts (between the title and pagination)
    • 如果用户有未读的帖子(标题和分页之间),则在主题标题旁边链接

    The plugin also includes two template tags for extra functionality:

    该插件还包括两个模板标签以提供额外功能:

安装步骤

Base Functionality

基本功能

    1. Upload the ‘bbpress-go-to-first-unread-post’ folder to the ‘/wp-content/plugins/’ directory.
    2. 将“ bbpress-go-to-first-unread-post”文件夹上传到“ / wp-content / plugins /”目录。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    Mark Forum Read

    将论坛标记为已读

    Users can use this link to mark every topic in a single forum as read.

    用户可以使用此链接将单个论坛中的每个主题标记为已读。

    To include it, you simply need to add the following code somewhere in your single-forum layout:

    要包含它,您只需要在单论坛布局的某处添加以下代码:

      <?php gtf_mark_forum_read_link()?>

    The recommended location to include it is in content-single-forum.php, next to the Subscribe link.

    推荐的包含位置的位置是 content-single-forum.php 中的“订阅”链接旁边。

    This operation may take some time, so an AJAX indicator is included along with the link.

    此操作可能需要一些时间,因此链接中包含AJAX指示器。

    If the default AJAX indicator doesn’t suit your theme, you are encouraged to replace it with your own.

    如果默认的AJAX指标不适合您的主题,建议您将其替换为您自己的主题。

    The plugin will look in the following places for an indicator, in this order, before falling back on the default:

    插件将在以下位置按以下顺序查找指示器:

      1. CHILD_THEME_DIRECTORY/images/ajax-loader.gif
      2. CHILD_THEME_DIRECTORY / images / ajax-loader.gif

      3. CHILD_THEME_DIRECTORY/images/ajax-loader.png
      4. CHILD_THEME_DIRECTORY / images / ajax-loader.png

      5. PARENT_THEME_DIRECTORY/images/ajax-loader.gif
      6. PARENT_THEME_DIRECTORY / images / ajax-loader.gif

      7. PARENT_THEME_DIRECTORY/images/ajax-loader.png
      8. PARENT_THEME_DIRECTORY / images / ajax-loader.png

      Mark Thread Read

      标记线程已读

      User can use this link to mark a topic as read up to the current last post, from any page.

      用户可以使用此链接将任何页面上的主题标记为当前最新的帖子。

      To include it, you simply need to add the following code somewhere in your single-topic layout (eg. in loop-replies.php):

      要包含它,您只需要在单主题布局的某处添加以下代码(例如,在 loop-replies.php 中):

        <?php gtf_mark_topic_read_link()?>

      The recommended location to include it is in loop-replies.php, after the User Favorites link.

      建议的位置包括在“用户收藏夹”链接后的 loop-replies.php 中。

      By default it displays with a pipe character at the end, to match the separation between the User Favorites and Subscribe link.

      默认情况下,它显示的末尾带有竖线字符,以匹配“用户收藏夹”和“订阅”链接之间的分隔。

下载地址
https://downloads.wordpress.org/plugin/bbpress-go-to-first-unread-post.1.1.zip
-EOF-

AI助手支持GPT4.0