如何使用P2在WordPress中建立内部通讯系统

Many small and large businesses are using WordPress internally as a collaboration tool by combining it with tools like edit flow, user role management, and to do lists. Using WordPress as an internal communication system is proving to be very effective for these organizations. In this article, we will show you how to make an internal communication system in WordPress using P2 Theme.

许多大小企业都在内部将WordPress与编辑流程用户角色管理和任务列表之类的工具结合使用,以此作为协作工具 。 对于这些组织而言,使用WordPress作为内部通信系统已被证明非常有效。 在本文中,我们将向您展示如何使用P2 Theme在WordPress中构建内部通信系统。

P2 Theme Demo
什么是P2主题? (What is P2 Theme?)

P2 is a WordPress theme which transforms a WordPress powered site into a Twitter-like real time status update, blog posting, commenting tool. It eliminates the need for going to the admin area to write a post. You can post right from the home page of your site. It has threaded inline comments which appear under each post on the front page. It is powered by Ajax which makes posting and commenting super fast.

P2是WordPress主题,它将WordPress驱动的站点转换为类似Twitter的实时状态更新,博客发布,评论工具。 它消除了去管理区域撰写帖子的需要。 您可以直接从站点的主页发布。 它带有内联注释,这些注释出现在首页的每个帖子下。 它由Ajax提供支持,使发布和评论变得非常快。

The most famous example of a P2 site in action is the WordPress Make site. Where developers, contributors, and other WordPress users can participate in discussions surrounding the WordPress development.

运作中的P2网站最著名的例子是WordPress Make网站。 开发人员,贡献者和其他WordPress用户可以在其中参与有关WordPress开发的讨论。

如何将P2设置为内部通讯系统 (How To Set Up P2 as Internal Communication System)

P2 can be installed on any WordPress site. Since we are showing you how to use it as an internal communication system, we are assuming you might want to keep it private. The first thing you would need to do is install and activate P2 theme on your local intranet or on a subdomain.

P2可以安装在任何WordPress网站上。 由于我们向您展示了如何将其用作内部通信系统,因此我们假设您可能希望对其进行保密。 您需要做的第一件事是在本地Intranet或子域上安装并激活P2主题

设置P2主题选项 (Setting up P2 Theme Options)

Once you have activated P2 theme, then you need to go to Appearance » Theme Options. On this page, you can choose a custom background color, select a background image if you want, hide the sidebar and titles, etc. But most importantly, you can set posting access here. Check the box next to allow any registered member to post and save your settings.

激活P2主题后,您需要转到外观»主题选项 。 在此页面上,您可以选择自定义背景色,根据需要选择背景图像,隐藏侧边栏和标题等。但是最重要的是,您可以在此处设置发布访问权限。 选中旁边的框,以允许任何注册成员发布并保存您的设置。

Configuring P2 Theme Options

Now that we have enabled posting access in P2, the next step is to open up your site for user registration. All you need to do is go to Settings » General and check the box next to Any one can register field.

现在我们已经启用了P2中的发布访问权限,下一步是打开您的网站进行用户注册。 您所需要做的就是转到“设置”»“常规”,然后选中“ 任何人都可以注册”字段旁边的框。

Enable registration on your P2 site

Since P2 is designed to encourage discussions, comments are an integral part of its design. You can go to Settings » Discussion and check the box next to ‘Users must be registered and logged in to comment‘.

由于P2旨在鼓励讨论,因此注释是其设计的组成部分。 您可以转到设置»讨论,然后选中“ 必须注册并登录用户才能发表评论 ”旁边的框。

添加前端登录和注册表格 (Adding Front-end Login and Registration Forms)

So far we have enabled user registration and allowed those users to post on the site. Next you would want to add login and registration forms to your website. To add front-end login and registration form, we recommend that you install and activate the Theme My Login plugin. Upon activation, the plugin adds a TML menu item in your WordPress admin sidebar. Clicking on it will take you to plugin’s settings page.

到目前为止,我们已经启用了用户注册并允许这些用户在网站上发布。 接下来,您想将登录和注册表格添加到您的网站。 要添加前端登录和注册表单,我们建议您安装并激活主题我的登录插件。 激活后,该插件会在您的WordPress管理员侧边栏中添加一个TML菜单项。 单击它会将您带到插件的设置页面。

Theme My Login settings page

On the plugin settings page, check the box next to Themed Profiles option and hit the save changes button. You will notice that a new menu item for ‘Themed Profiles’ would appear under TML menu. Click the button, and it will take you to themed profiles settings. Here you need to restrict admin area access to all user roles.

在插件设置页面上,选中“主题配置文件”选项旁边的框,然后单击“保存更改”按钮。 您会注意到, “主题配置文件”的新菜单项将出现在TML菜单下。 单击按钮,它将带您进入主题配置文件设置。 在这里,您需要将管理区域访问权限限制为所有用户角色。

Enabling Themed Profiles

This will protect your WordPress admin area, and all users including administrators will be redirected to a login form on the front end of your website. As an admin, you can go to admin area by typing the URL in the browser. You will be redirected to admin dashboard after login. Other users will be redirected to their themed profiles.

这将保护您的WordPress管理区域,所有用户(包括管理员)将被重定向到您网站前端的登录表单。 作为管理员,您可以通过在浏览器中键入URL进入管理区域。 登录后,您将被重定向到管理控制台。 其他用户将被重定向到他们的主题资料。

Now it’s time to add login form to the sidebar. Simply go to Appearance » Widgets and drag and drop Theme My Login Widget to your sidebar.

现在是时候将登录表单添加到侧边栏了。 只需转到外观»小部件 ,然后将主题我的登录小部件拖放到侧边栏中。

Theme my login widget
修改P2主题的外观 (Modifying P2 Theme’s Appearance)

P2 Theme has a very simplistic layout and there are very few things you can do to enhance its appearance. You can upload a custom header image from Appearance » Header. You can also choose a custom background from Appearance » Customize. However, if you would like a complete make over, then there are a few P2 child themes available for you to use. Alternatively, you can create your own child theme.

P2主题的布局非常简单,您几乎无法做任何事情来增强其外观。 您可以从Appearance»Header上传自定义标题图片。 您也可以从外观»自定义中选择自定义背景。 但是,如果您想彻底改头换面,那么可以使用一些P2子主题。 或者,您可以创建自己的子主题。

向P2主题添加更多功能 (Adding More Features to P2 Theme)

You can use all WordPress plugins with your P2 Theme. For example, you may want to monitor user activity or add social media plugins. However, there are some plugins that are specifically written for P2 and you would want to give them a try.

您可以将所有WordPress插件与P2主题一起使用。 例如,您可能想监视用户活动或添加社交媒体插件 。 但是,有些插件是专门为P2编写的,您可以尝试一下。

That’s all. You now have a powerful WordPress based application set up to communicate internally with your colleagues and team members. You will soon find out that P2 not just improves communication among team members, but it also makes thing fun and interesting.

就这样。 现在,您已经建立了一个功能强大的基于WordPress的应用程序,可以与您的同事和团队成员进行内部沟通。 您很快就会发现P2不仅改善了团队成员之间的沟通,而且还使事情变得有趣而有趣。

Let us know how you are using P2 in your comments below.

在下面的评论中让我们知道您如何使用P2。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-make-an-internal-communication-system-in-wordpress-using-p2/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值