很多人喜欢使用Twitter,但就像任何社交媒体网络一样,使用它也有缺点。一个是对你的数据和隐私缺乏控制,另一个是如果Twitter有一天突然崩溃,你将失去一切。
这就是为什么,如果您想建立一个在线社区(online community),您可能需要考虑在您拥有的网站域(website domain)上自己建立它。让人们定期访问您的网站社区(site community)将很困难,因为
Twitter已经拥有内置的受众群体,但是只要有一点决心,您就可以构建一些可以称为自己的东西。
使用 P2 开始发推文(Start Tweeting With P2)
有一个名为 P2 的 WordPress 主题(WordPress theme called P2),它是由创建 WordPress 的同一开发团队开发(same developer team that created WordPress itself)的。他们使用 P2 在他们之间讨论事情,就像另一个办公室可能使用Slack 或 Skype(Slack or Skype)一样。
P2 与Twitter非常相似,因为您可以发布状态更新,人们可以回复这些状态更新。但与
Twitter不同的是,您不能制作自己的个人资料页面(profile page),您的头像由您的Gravatar 个人资料(Gravatar profile)决定。因此,如果您没有网站设置的管理员访问权限,则P2不能完全自定义。(So P2)
但是对于基本的聊天和基本的社区建设(community building),它工作得很好。
安装主题(Install The Theme)
就更新而言,主题本身已被放弃,因为有一个新版本(there is a new version)。但新版本看起来不像Twitter,所以我不使用(t use)它。如果你想使用它,主题的直接下载链接(direct download link)在这里。
由于这个原因,你们中的一些人不会安装原始 P2,因为没有积极维护的主题会带来安全隐患。但我喜欢类似 Twitter 的界面,所以我愿意在旧版本上冒险。是否要冒险由您决定。
假设你这样做,去这里下载主题。现在将其上传到您的域并激活它。我制作了一个名为 Kipper 的类似 Twitter 的测试页面(Twitter-like page called Kipper)来测试运行各种功能。
调整设置(Tweak
The Settings)
没有太多要“调整”的功能,但不管怎样,让我们看看它们。
首先,背景颜色(background color)。我会小心不要对此过于疯狂,因为很多人会被没有白色背景的网站关闭。我知道我知道。也许你可以摆脱灰色,但我会走得更狂野。
或者您可以选择背景图像(background image)。但除非你正在创建一个青少年贾斯汀比伯社区(Justin Bieber community),否则我不确定波尔卡圆点或
圣诞老人(Santa)是否会投射出正确的“形象”。
我的建议是安全行事并保持一切都是白色的。
如果需要,您可以选择隐藏侧边栏,使整个类似 Twitter 的结构变为 full-width(structure full-width)。如果你这样做,你会失去一些漂亮的WordPress小部件,但同样,这取决于你想从页面中得到什么。
我会更改Post 提示(Post prompt)。“怎么(Whatcha)了?” 听起来绝对可怕。Twitter的一个是“发生(Happening)了什么?” 所以也许沿着这些思路。我把我的改为“你想说什么?”
我建议关闭帖子标题,否则它开始看起来像博客帖子,而不是您发布的Twitter更新。(Twitter)但这是个人口味选择(taste choice)。
最后一个调整是进入WordPress设置并更改永久链接结构(permalink structure),这样当有人点击状态更新(status update)的永久链接时,它会尽可能短。我建议使用Post name。
允许人们注册(Allowing
People To Register)
真正让有安全意识的人停下来的一件事是,您需要允许人们在您的WordPress 网站(WordPress website)上注册帐户才能使用 P2。但只要他们在WordPress上拥有适当的“角色” ,您网站的其余部分就可以了。具有“贡献者”状态的任何人都无法更改主题、插件等。
在WordPress(WordPress)的左侧边栏中,转到设置 - 常规(Settings – General)并勾选任何人都可以注册(Anyone can register)的框。还要确保默认角色(Default Role)是Contributor。
现在转到 P2 设置并勾选“允许任何注册会员发帖(Allow any registered member to post)”框。如果不执行这些步骤,任何人都无法向您的网络发布任何内容。
如果人们拥有Gravatar 帐户(Gravatar account),并且他们使用该帐户注册到您的网站,则与Gravatar 帐户(Gravatar account)关联的图像将成为您网站上的头像。如果他们不愿意设置Gravatar 帐户(Gravatar account),您可以前往设置 - 讨论设置(Settings – Discussion)默认头像徽标(default avatar logo)。
现在,当有人想注册时,他们只需转到您的WordPress 网站的登录页面,然后单击(WordPress website and click) 注册(Register)。
您可以通过转到WordPress左侧边栏中的“用户(Users)”来查看谁已注册。您也可以使用此区域自己手动注册人员。
添加状态更新(Adding
Status Updates)
一旦有人在您的网站上注册,他们只需转到P2 页面(P2 page),屏幕顶部就会出现一个框,就像
Twitter一样。然后他们只需输入他们想要的内容并保存即可。
然后其他注册用户可以回复。
您还可以通过单击“添加媒体(Add Media)”按钮添加图像。
编辑和删除状态更新(Editing
& Removing Status Updates)
在Twitter 上(Twitter),可以选择直接从页面中删除您的推文。(Tweet)但是在P2 主题(P2 theme)上,要删除或编辑您的状态更新(status update),编写它的人(或具有管理员权限的任何人)必须从 WordPress 的“帖子(Posts)”部分执行此操作。
如果状态更新(status update)是线程中的回复,则它们将存储在“评论(Comments)”部分中。
使您的社区私有化(Making
Your Community Private)
最后,如果您正在讨论任何私人内容,您可能不想让您的网站在搜索引擎上公开访问。(search engine)
为防止这种情况发生,请打开FTP 程序(FTP program)并打开您的域文件。现在打开Robots.txt 文件(Robots.txt file)。在里面(Inside),你可能已经看到了一个叫做“ User-Agent ”的部分。
在“用户代理”下,键入:
Disallow /NAME OF YOUR P2 SITE
所以就我而言,我输入:
Disallow /kipper
这样做的目的是阻止Google 搜索(Google search)蜘蛛在下次访问时将Kipper页面编入索引。(Kipper)
How To Set Up Your Own Twitter-Like Website Using WordPress’ P2 Theme
A lоt of peoplе enјoy using Twitter, but like any
social media netwоrk, there are drawbacks to using it. One is the lack of
control over your data and privacy, whilе anothеr is that you will lose
everything if Twitter suddenly goes belly-up one day.
That’s why, if you want to build an online community,
you might want to consider building it yourself on a website domain that you
own. Getting people to regularly visit your site community will be hard as
Twitter already has a built-in audience, but with a bit of determination, you
might be able to build something to call your own.
Start Tweeting With P2
There is a WordPress theme called P2, which was developed by the same developer team that created WordPress itself. They use P2 to discuss things amongst themselves, the same way that another office might use Slack or Skype.
P2 closely resembles Twitter in that you can post
status updates and people can reply to those status updates. But unlike
Twitter, you can’t make your own profile page, and your avatar is determined by
your Gravatar profile. So P2 is not exactly customizable if you don’t have
administrator access to the website settings.
But for basic chatting and basic community building,
it works just fine.
Install The Theme
The theme itself has been abandoned, in terms of updates, because there is a new version. But the new version looks nothing like Twitter so I don’t use it. If you want to use it, the direct download link to the theme is here.
There are some of you who will not install the
original P2 for that reason, because of the security implications of having a
theme which is not being actively maintained. But I like the Twitter-like
interface so I am willing to take a chance on the older version. It’s up to you
to decide whether or not you want to risk it.
Assuming you do, go here and download the theme. Now upload it to your domain and activate it. I have made a test Twitter-like page called Kipper to test-run the various features.
Tweak
The Settings
There are not a lot of features to “tweak” but let’s
look at them regardless.
First, the background color. I would be careful about
getting too crazy about this because many people get turned off by websites
that don’t have a white background. I know I do. Maybe you could get away with
grey but I would go any wilder than that.
Or you can choose a background image. But unless you
are creating a teenage Justin Bieber community, I’m not sure if polka dots or
Santa is going to project the right “image”.
My advice would be to play it safe and keep everything
white.
You can optionally hide the sidebar if you want,
making the whole Twitter-like structure full-width. You would lose out on some
nifty WordPress widgets if you did that but again, it depends on what you want
out of the page.
I would change the Post prompt. “Whatcha up to?” sounds absolutely hideous. Twitter’s one is “What’s Happening?” so maybe something along those lines. I changed mine to “What Do You Want To Say?”
And I would suggest switching off post titles,
otherwise it starts to look like blog posts and not Twitter updates you’re
posting. But that’s a personal taste choice.
One last tweak is to go into the WordPress settings and change the permalink structure so when someone clicks on the permalink to a status update, it is as short as possible. I would suggest using Post name.
Allowing
People To Register
One of the things which is really going to make
security-conscious people pause is that you need to allow people to register
accounts on your WordPress website to be able to use P2. But as long as they
have the proper “role” on WordPress, the rest of your site will be fine. Nobody
with “Contributor” status will be able to change themes, plugins, and the like.
In the left-hand sidebar of WordPress, go to Settings – General and tick the box Anyone can register. Also make sure the Default Role is Contributor.
Now go to the P2 settings and tick the box for “Allow any registered member to post”. Without doing these steps, nobody will be able to post anything to your network.
If people have a Gravatar account – and they use that account to register to your site – the image associated with the Gravatar account will be the avatar on your site. If they are unwilling to set up a Gravatar account, you can set a default avatar logo by going to Settings – Discussion.
Now when someone wants to register, they simply go to the login page of your WordPress website and click Register.
You can see who has registered by going to “Users” in the left-hand sidebar of WordPress. You can also use this area to manually register people yourself.
Adding
Status Updates
Once someone has registered on your site, they just
have to go to the P2 page and a box will be at the top of the screen, just like
Twitter. Then they simply have to type what they want and save it.
Other registered users can then reply.
You can also add images by clicking the “Add Media” button.
Editing
& Removing Status Updates
On Twitter, there is the option to delete your Tweet directly from the page. But on the P2 theme, to delete or edit your status update, the person who wrote it (or anyone with administrator privileges) must do so from the “Posts” section of WordPress.
If the status update is a reply in a thread, then they
are stored in the Comments section.
Making
Your Community Private
Finally, you may
not want to make your website publicly accessible on a search engine if you are
discussing anything private.
To prevent that from happening, open a FTP program and open up your domain files. Now open up the Robots.txt file. Inside, you may already see a section called “User-Agent”.
Underneath
“User-Agent”, type :
Disallow /NAME OF YOUR P2 SITE
So in my case, I
typed :
Disallow /kipper
What this does is
stops the Google search spiders from indexing the Kipper pages, the next time
they come to visit.