
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]](https://img-blog.csdnimg.cn/img_convert/290c7a10df260f9fa5d7b37e03ae3b41.png)
Enter a name and title for your new blog, and click Create Blog.
輸入新博客的名稱和標題,然后點擊創建博客。

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一起使用后,登錄到儀表板,然后從左側邊欄中外觀下的鏈接打開“主題”頁面。

Enter P2 in the search box, and click Search to find the theme on WordPress.com.
在搜索框中輸入P2,然后單擊“搜索”以在WordPress.com上找到主題。

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非常容易。

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儀表板,然后在左側邊欄中的外觀下選擇主題。

Select the Install Themes tab on the Themes page.
選擇“主題”頁面上的“安裝主題”選項卡。

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預覽圖像下安裝直接在您的博客上安裝它。

Click Install Now in the popup box to confirm you want to install P2.
單擊彈出框中的“立即安裝”以確認您要安裝P2。

Once its installed, click Activate under the installation info to begin using P2.
安裝后,單擊安裝信息下的激活以開始使用P2。

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儀表板弄得一團糟。

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最適合用于簡短說明和更新。

Here’s how some of the different post styles look.? Not your typical WordPress blog, eh?
以下是一些不同的帖子樣式。 不是您典型的WordPress博客,是嗎?

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.
帖子和評論將自動顯示在頁面上,收到新內容時您會收到通知。 這樣可以輕松地保持正在進行的對話。

You can reply to comments and posts inline without refreshing the page.
您可以在不刷新頁面的情況下回復評論和內嵌帖子。

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閱讀器和類似網站上使用鍵盤快捷鍵,則這些控件將易于使用。

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.
要啟用此功能,請在“外觀”菜單下選擇“主題選項”。

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帳戶,因此幾乎任何人都可以將其發布到您的網站。 或者,您可以將多個作者添加到您的站點,但仍保持公開發布選項處于關閉狀態。 這樣一來,您群組中的每個人都可以發布更新,圖片等內容,同時允許其他訪問者閱讀和評論帖子。

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用于支持論壇或類似網站,或者要按如下所述將博客設為私有,那么這是一個不錯的選擇。

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博客設為私有很容易。 從左側的“設置”菜單打開“隱私”頁面。

Now, select the last bullet to make your blog private, and click Save Changes.
現在,選擇最后一個項目符號將您的博客設為私有,然后點擊保存更改。

Visitors will now be required to login with their WordPress.com account before they can view and add to your P2.
現在,訪問者必須先使用WordPress.com帳戶登錄,然后才能查看并添加到您的P2。

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美元的價格升級。

– 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.
轉到左側菜單上的插件部分,然后選擇添加新。

Enter Absolute Privacy in the search box, and then click Install Now on the Absolute Privacy plugin description.
在搜索框中輸入“絕對隱私”,然后在“絕對隱私”插件說明上單擊“立即安裝” 。

Confirm that you wish to install this plugin.
確認您要安裝此插件。

Finally, click Activate Plugin after it has installed.
最后,在安裝后單擊“激活插件” 。

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設置頁面,然后選中任何人都可以注冊框。

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