twitter api使用_使用P2创建自己的Twitter风格的组博客

twitter api使用

twitter api使用

Would you like a great way to post stuff quickly online and communicate with your readers?  Here’s how you can use the P2 theme to transform WordPress into a great collaboration and communications platform.

您是否想以一种很好的方式在网上快速发布内容并与读者交流? 这是使用P2主题将WordPress转变为出色的协作和交流平台的方法。

What is P2?

什么是P2?

WordPress is one of the most popular blogging platforms, and we have looked at many ways you can use WordPress to publish content online.  But WordPress can also be a great platform for microblogging, similar to Twitter or group discussion boards.  Most default themes are designed around regular blogs, but P2 is a special blog theme designed to transform your site into a communications platform.  It’s easy to setup and use, so let’s look at how your group can use P2 to stay in touch.

WordPress是最流行的博客平台之一,我们已经研究了许多使用WordPress在线发布内容的方法。 但是WordPress也可以成为微博的绝佳平台,类似于Twitter或小组讨论板。 大多数默认主题都是围绕常规博客设计的,但是P2是一个特殊的博客主题,旨在将您的网站转变为交流平台。 它易于设置和使用,因此让我们看看您的小组如何使用P2保持联系。

Get a Blog for P2

获取P2的博客

First, you’ll need a WordPress blog to run P2.  If you’ve already got a free WordPress.com blog, you can use it, or you can signup for a free one.  Check out our article for more info on Setting up a Free WordPress.com Blog.

首先,您需要一个WordPress博客来运行P2。 如果您已经有一个免费的WordPress.com博客,则可以使用它,也可以注册一个免费的博客。 查看我们的文章,以获取有关设置免费WordPress.com博客的更多信息。

P2 works much different than standard WordPress themes, so you’ll likely not want to use it for your main site but instead will want to use it for a separate project.  If you already have a WordPress.com blog but would rather keep it the way it is, go to the My Blogs tab on WordPress.com and click Register another blog.  This will give you a brand new blog you can use with P2 for free.

P2的工作方式与标准WordPress主题大不相同,因此您可能不希望将其用于主要站点,而希望将其用于单独的项目。 如果您已经拥有WordPress.com博客,但希望保持现状,请转到WordPress.com上的“我的博客”标签,然后点击注册另一个博客。 这将为您提供一个全新的博客,您可以免费使用P2。

sshot-2010-07-06-[11-52-46]

Enter a name and title for your new blog, and click Create Blog.

输入新博客的名称和标题,然后点击创建博客

image

Alternately, if you have your own server or hosting account, you can run P2 on WordPress from your own server.  Check out our articles on how to Quickly Install WordPress With Softaculous or Install WordPress Manually via FTP.Once again, make sure you use it on a blog that you want to devote to P2, so if you want to use this for a side project, you might want to install WordPress on a subdomain on your server, like p2.yourdomain.com.

或者,如果您拥有自己的服务器或托管帐户,则可以从自己的服务器在WordPress上运行P2。 查看有关如何使用Softaculous快速安装WordPress或通过FTP手动安装WordPress的文章。再次,请确保您要在致力于P2的博客上使用它,因此,如果要将其用于辅助项目,您可能希望在服务器的子域上安装WordPress,例如p2.yourdomain.com

Setup P2 On Your Blog

在博客上设置P2

Once you’ve got a blog to use, it’s time to setup P2.  As mentioned before, P2 is simply a theme that runs on WordPress, so here’s how to add it to your WordPress.com or self-hosted site:

一旦可以使用博客,就该设置P2了。 如前所述,P2只是在WordPress上运行的主题,因此以下是将其添加到WordPress.com或自托管网站的方法:

WordPress.com

WordPress.com

Once you’ve got a WordPress.com blog to use with P2, login to your dashboard and open the Themes page from the link under Appearance on the left-hand sidebar.

在WordPress.com博客上可以与P2一起使用后,登录到仪表板,然后从左侧边栏中外观下的链接打开“主题”页面。

image

Enter P2 in the search box, and click Search to find the theme on WordPress.com.

在搜索框中输入P2,然后单击“搜索”以在WordPress.com上找到主题。

image

Click Activate under the P2 header to immediately start using P2 on your blog.  That’s all there is to it; it’s extremely easy to start using P2 on WordPress.com blogs.

单击“ P2”标题下的“激活”以立即开始在博客上使用P2。 这里的所有都是它的; 在WordPress.com博客上开始使用P2非常容易。

image

Self-hosted WordPress

自托管WordPress

Installing P2 on a self-hosted WordPress blog is a bit more difficult.  To install P2, login to your site’s WordPress Dashboard, and select Themes under Appearance on the left-hand sidebar.

在自托管的WordPress博客上安装P2有点困难。 要安装P2,请登录到站点的WordPress仪表板,然后在左侧边栏中的外观下选择主题

image

Select the Install Themes tab on the Themes page.

选择“主题”页面上的“安装主题”选项卡。

image

The easiest way to install P2 is to simply search for it in the search box.  When the results load, click Install under the P2 preview image to install it directly on your blog.

安装P2的最简单方法是在搜索框中进行搜索。 当结果加载,点击P2预览图像下安装直接在您的博客上安装它。

image

Click Install Now in the popup box to confirm you want to install P2.

单击弹出框中的“立即安装”以确认您要安装P2。

image

Once its installed, click Activate under the installation info to begin using P2.

安装后,单击安装信息下的激活以开始使用P2。

image

Using P2

使用P2

P2 is very easy to use, and once you’ve activated the theme, it’s fully ready to use.  Just open your blog, and post anything directly from the page itself; no more messing with the WordPress dashboard to get a post out.

P2非常易于使用,并且一旦激活了主题,就可以使用了。 只需打开您的博客,然后直接从页面本身发布任何内容即可; 不再把WordPress仪表板弄得一团糟。

image

There are separate post options for status updates, blog posts, quotes, and links.  You can also upload and insert pictures, videos, and more directly into P2 posts.  This makes it very quick to post almost anything to your blog, though again, P2 is best for short-form notes and updates.

状态更新,博客文章,报价和链接有单独的文章选项。 您还可以将图片,视频等直接上传并插入到P2帖子中。 这样一来,几乎可以将几乎所有内容发布到您的博客中,尽管同样,P2最适合用于简短说明和更新。

image

Here’s how some of the different post styles look.  Not your typical WordPress blog, eh?

以下是一些不同的帖子样式。 不是您典型的WordPress博客,是吗?

image

Posts and comments will automatically appear on the page, and you’ll receive a notification when something new is received.  This makes it easy to stay on top of an ongoing conversation.

帖子和评论将自动显示在页面上,收到新内容时您会收到通知。 这样可以轻松地保持正在进行的对话。

image

You can reply to comments and posts inline without refreshing the page.

您可以在不刷新页面的情况下回复评论和内嵌帖子。

image

If you love keyboard shortcuts, P2 is great for you.  It includes shortcuts to browse through the posts, reply, hide comments, and more.  These will be easy to use if you’re used to keyboard shortcuts on Google Reader and similar sites.

如果您喜欢键盘快捷键,那么P2非常适合您。 它包括浏览帖子,回复,隐藏评论等的快捷方式。 如果您习惯在Google阅读器和类似网站上使用键盘快捷键,则这些控件将易于使用。

image

P2 is a great way to post your own stuff quickly, but it is really useful when multiple people are posting.  This way, you can use it like a group chat or discussion board, and everyone in your team, class, business, or more can post stuff for everyone else to see.

P2是快速发布您自己的内容的一种好方法,但是当有多个人发布时,它确实很有用。 这样,您就可以像使用群聊或讨论板一样使用它,并且您团队,班级,业务或更多人中的每个人都可以发布内容供其他人查看。

To enable this, select the Theme Options under the Appearance menu.

要启用此功能,请在“外观”菜单下选择“主题选项”。

image

If your blog is running on WordPress.com, you’ll see the option to allow any WordPress.com member to post.  Note that anyone can register for a WordPress.com account, so this would let nearly anyone post to your site.  Alternately, you can add multiple authors to your site, but still leave the public posting option turned off.  This will let everyone in your group post updates, pictures, and more, while allowing other visitors to read and comment on posts.

如果您的博客在WordPress.com上运行,您将看到允许任何WordPress.com成员发帖的选项。 请注意,任何人都可以注册WordPress.com帐户,因此几乎任何人都可以将其发布到您的网站。 或者,您可以将多个作者添加到您的站点,但仍保持公开发布选项处于关闭状态。 这样一来,您群组中的每个人都可以发布更新,图片等内容,同时允许其他访问者阅读和评论帖子。

image

On Self-hosted sites, P2 lets you allow any registered member to post.  This is a great option if you’re using P2 for a support forum or similar site, or if you want to make your blog private as described below.

在自托管网站上,P2允许您允许任何注册成员发帖。 如果您将P2用于支持论坛或类似网站,或者要按如下所述将博客设为私有,那么这是一个不错的选择。

image

Make Your WordPress P2 Blog Private

将您的WordPress P2博客设为私有

If you’re using P2 for private group or business discussions, you’ll likely not want the whole world reading what you post.  So, you might want to consider making your site private.  This works differently depending on your setup, so follow the directions below for your blog:

如果您使用P2进行私人小组讨论或业务讨论,则可能不希望全世界都阅读您发布的内容。 因此,您可能要考虑将站点设为私有。 根据您的设置,此方法的工作方式有所不同,因此请按照以下博客说明进行操作:

On WordPress.com

在WordPress.com上

It’s easy to make your P2 blog private on WordPress.com.  Open the Privacy page from the Settings menu on the left.

在WordPress.com上将P2博客设为私有很容易。 从左侧的“设置”菜单打开“隐私”页面。

image

Now, select the last bullet to make your blog private, and click Save Changes.

现在,选择最后一个项目符号将您的博客设为私有,然后点击保存更改

image

Visitors will now be required to login with their WordPress.com account before they can view and add to your P2.

现在,访问者必须先使用WordPress.com帐户登录,然后才能查看并添加到您的P2。

image

Once your site visibility is set, you can enter user’s WordPress.com usernames to allow them to view and add to your P2 blog.  Note that a free WordPress.com blog may only have up to 35 users; for unlimited private blog users, you’ll need to upgrade for $29.97/year.

设置网站可见性后,您可以输入用户的WordPress.com用户名,以允许他们查看并添加到您的P2博客中。 请注意,一个免费的WordPress.com博客最多只能有35个用户; 对于无限制的私人博客用户,您需要以每年29.97美元的价格升级。

image

On Self-Hosted WordPress

在自托管WordPress上

If you’re running WordPress on your own server or hosting account, you won’t be able to set your blog as private by default.  There are several plugins you can use to make your site private, however, so let’s look at adding the Absolute Privacy plugin to make our P2 private.

如果您在自己的服务器或托管帐户上运行WordPress,则默认情况下将无法将博客设置为私有。 但是,有几个插件可以使您的网站私有,因此,让我们看一下添加绝对隐私插件以使我们的P2私有。

Head over to the Plugins section on the left menu, and select Add New.

转到左侧菜单上的插件部分,然后选择添加新

image

Enter Absolute Privacy in the search box, and then click Install Now on the Absolute Privacy plugin description.

在搜索框中输入“绝对隐私”,然后在“绝对隐私”插件说明上单击“立即安装”

image

Confirm that you wish to install this plugin.

确认您要安装此插件。

image

Finally, click Activate Plugin after it has installed.

最后,在安装后单击“激活插件”

image

Now, when someone visits your site, they’ll be redirected to the WordPress login page.  You can create new accounts for your users manually, or if you want to let people register and access your P2, open the WordPress Settings page in your Dashboard and check the Anyone can register box.

现在,当有人访问您的网站时,他们将被重定向到WordPress登录页面。 您可以手动为用户创建新帐户,或者如果要让人们注册和访问您的P2,请在仪表板中打开WordPress设置页面,然后选中任何人都可以注册框。

image

Conclusion

结论

No matter what size of community or group you’re communicating with, P2 makes it easy to keep all of your discussions on the page.  It’s especially easy to use on a free WordPress.com blog, so we think this is a great option even for users who may already have their own hosting service.  P2 shows that WordPress can be used for a wide variety of sites beyond traditional blogs, and we’re excited to see the great ways you can put this to work today.

无论您要与之进行交流的社区或小组大小,P2都能使您将所有讨论轻松保留在页面上。 在免费的WordPress.com博客上特别容易使用,因此即使对于已经拥有自己托管服务的用户,我们也认为这是一个不错的选择。 P2表明WordPress可以用于除传统博客之外的许多其他站点,我们很高兴看到今天可以使用它的绝佳方法。

Links

链接

Get More Information About P2

获取有关P2的更多信息

Signup for a Free WordPress.com Blog

注册免费的WordPress.com博客

翻译自: https://www.howtogeek.com/howto/21373/create-your-own-twitter-style-group-blog-with-p2/

twitter api使用

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/279044.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

10_30_unittest

1、断言 1)、self.assertEqual(2,res)#期望值qian、结果值hou2)TextTestRunner 源码 必要的参数3)测试结果 上下文管理器 with open("test.txt",w,encodingutf-8) as file:runner unittest.TextTestRunner(streamfile,verbosity2)…

laravel graphql php,结合 Laravel 初步学习 GraphQL

本文字数:7134,大概需要14.27分钟。按照官网所述的:A query language for your API一种用于 API 的查询语言GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a…

wi-fi共享大师免广告_如何保护Wi-Fi网络免受入侵

wi-fi共享大师免广告Insecure Wi-Fi is the easiest way for people to access your home network, leech your internet, and cause you serious headaches with more malicious behavior. Read on as we show you how to secure your home Wi-Fi network. 不安全的Wi-Fi是人们…

【材质】色彩基础

RBG颜色空间 目前,绝大部分显示器采用的是RGB颜色标准,因此几乎所有软件也采用此标准,UE4也不例外。 R、G、B这三个字母分别代表红色(red)、绿色(green)、蓝色(blue)三条…

使用mintty(_如何使用Mintty改善Cygwin控制台

使用mintty(Cygwin’s great for getting some Linux command-line goodness in Windows, but using the Windows Shell to access it kills some of that magic. Using Mintty and a few other methods, you can make the experience much more luxurious. Cygwin非常适合在Wi…

18.phpmyadmin 4.8.1 远程文件包含漏洞(CVE-2018-12613)

phpmyadmin 4.8.1 远程文件包含漏洞(CVE-2018-12613) phpMyAdmin是一套开源的、基于Web的MySQL数据库管理工具。其index.php中存在一处文件包含逻辑, 通过二次编码即可绕过检查,造成远程文件包含漏洞。 受影响版本: phpMyAdmin 4.…

关于“Python”的核心知识点整理大全38

14.1.1 创建 Button 类 由于Pygame没有内置创建按钮的方法,我们创建一个Button类,用于创建带标签的实心矩形。 你可以在游戏中使用这些代码来创建任何按钮。下面是Button类的第一部分,请将这个类保存为 文件button.py: button.py …

同步您的Google Chrome书签,主题等

Do you regularly use Google Chrome on multiple computers? Here’s how you can keep almost everything in your browser synced easily in Google Chrome. 您是否经常在多台计算机上使用Google Chrome? 您可以通过以下方法在Google Chrome浏览器中轻松同步浏…

找call写call_如何将Google Call Widget添加到任何网页

找call写callAdding a Google Call Widget to your website or blog allows visitors to contact you using your Google Voice number. The widget provides an easy and cost-effective way to provide live customer support without the customer knowing your real number…

XML与web开发-01- 在页面显示和 XML DOM 解析

前言: 关于 xml 特点和基础知识,可以菜鸟教程进行学习:http://www.runoob.com/xml/xml-tutorial.html 本系列笔记,主要介绍 xml 在 web 开发时需要了解的知识 XML 在页面显示数据 XML 指可扩展标记语言(eXtensible Mar…

酷安应用市场php源码,酷安应用市场 v11.0.3-999 去广告极限精简版

酷安,真实有趣的数码社区。酷安app,国内安卓应用市场客户端,应用资源丰富,应用开发者水准高,应用无首发Logo,原汁原味上架,得到了安卓用户群广泛认可。有人说现在的酷安市场(酷安网)没有以前那么…

chromebook刷机_如何将网站添加到您的Chromebook架子上

chromebook刷机Bookmarks are great to keep your favorite sites nearby, but they aren’t the fastest option out there. Instead, why not add shortcuts for your favorite websites right on the Chromebook shelf? 书签可以很好地将您喜欢的网站保留在附近&#xff0c…

Locktopus锁定iOS设备上的单个应用程序

If you want to share a cool game on your iOS device but not let everyone read your email, Locktopus offers a simple app-by-app lockdown solution. 如果您想在iOS设备上共享一个很棒的游戏,但又不想让所有人都阅读您的电子邮件,那么Locktopus提…

视频翻录_将DVD解密并复制到硬盘驱动器而无需翻录

视频翻录Have you ever wanted to make backup copies of your DVDs but didn’t want to mess with confusing DVD ripping software? Today, we’ll look at drop dead simple method to decrypt DVDs on the fly with DVD43 so you can easily copy them to your hard dri…

详解面向对象、构造函数、原型与原型链

详解面向对象、构造函数、原型与原型链 为了帮助大家能够更加直观的学习和了解面向对象,我会用尽量简单易懂的描述来展示面向对象的相关知识。并且也准备了一些实用的例子帮助大家更加快速的掌握面向对象的真谛。 jQuery的面向对象实现封装拖拽简易版运动框架封装这…

如何将Wii遥控器用作陀螺仪鼠标

If you have a spare Nintendo Wii remote with the Motion Plus add-on, you can use it to control your Windows PC from across the room. Here’s how to get it working in a couple of easy steps. 如果您有带Motion Plus附加组件的备用Nintendo Wii遥控器,则…

php 自带 web server 如何重写 rewrite .htaccess

为什么80%的码农都做不了架构师&#xff1f;>>> <?php // filename: route.php if (preg_match(/\.(?:png|jpg|jpeg|gif|css|js)$/, $_SERVER["REQUEST_URI"])) {return false; } else {include __DIR__ . /index.php; } 更好的写法&#xff1a; &l…

sci-hub谷歌插件_Google Home Hub具有隐藏屏幕设置菜单

sci-hub谷歌插件You can adjust the brightness or set an alarm on your Google Home Hub with a voice command. But if you’re trying to be quiet or there’s a lot of background noise, you can also do these things using a hidden Screen Settings menu. 您可以使用…

二叉树的前序、中序、后序遍历与创建

#include <iostream> #include <string> #include <stack> using namespace std; struct node; typedef node *pNode; struct node { char data; pNode left, right; }; string line; string::iterator it; // 前序扩展序列建立二叉树 void plan…

flex-2

1、 2、 justify&#xff1a;整理版面 3、 4、归纳 justify-content&#xff1a;flex-start&#xff08;默认&#xff09;、center、flex-end 下面还会提到剩下的两种项目在主轴上对齐方式&#xff1a; space-between:两端对齐&#xff08;项目间距离相等&#xff09; space-ar…