aws+wordpress_如何在WordPress中添加Google+环聊活动倒计时

aws+wordpress

Google+ hangouts are fun specially if you want to organize an online event with your blog’s readers. Like most live events, you have to make sure to spread the word in order to get the most benefits. You can let your users know about the hangout by tweeting, sharing it on Google+, writing an article, sending an email newsletter, and many more ways. In this article, we will show you how to add a Google+ Hangout Event with a Countdown in your WordPress blog. The goal is to add a widget to the sidebar that shows a hangout event with a countdown timer.

如果您想与博客的读者组织在线活动,则Google+环聊特别有趣。 像大多数现场活动一样,您必须确保宣传才能获得最大收益。 您可以通过发推,在Google+上分享,撰写文章,发送电子邮件新闻通讯等多种方式来让您的用户知道该视频群聊。 在本文中,我们将向您展示如何在WordPress博客中添加带有倒计时的Google+环聊活动。 目的是向侧边栏添加一个小部件,以显示具有倒数计时器的视频群聊事件。

Google Plus Hangout Widget in a WordPress Blog

To achieve this you will need a Google+ Account and a Google API account. First, install and activate Yakadanda Google+ Hangout Events plugin. After activation, go to the plugin’s settings page located under Settings » Google+ Hangout Events. There you will see the plugin’s configuration screen.

为此,您需要一个Google+帐户和一个Google API帐户。 首先,安装并激活Yakadanda Google+环聊活动插件。 激活后,转到位于“ 设置”»“ Google+环聊活动”下的插件的设置页面。 在那里,您将看到插件的配置屏幕。

Now you need to get the Google API keys. Go to Google APIs Console and click on Create Project button.

现在,您需要获取Google API密钥。 转到Google API控制台 ,然后单击“ 创建项目”按钮。

Creating a Google API account

Provide a suitable name for your project, e.g. WPBeginner Hangout Events. After that you will enter the Google APIs Console dashboard. On the left hand sidebar you will see API Project drop down menu. Click on “Create” at the bottom of the menu.

为您的项目提供一个合适的名称, 例如WPBeginner Hangouts Events 。 之后,您将进入Google API控制台信息中心。 在左侧边栏中,您将看到API Project下拉菜单。 点击菜单底部的“创建”。

Create Google API Project

Enter the name of your project, e.g. WPBeginner Intro Hangout. Click on the Services item in the left hand sidebar to turn on the Google Calendar API.

输入您的项目名称, 例如WPBeginner Intro Hangout 。 单击左侧边栏中的“ 服务”项以打开Goog​​le Calendar API。

Google Calendar API

Now you will reach API Access menu of your project, and you need to create oAuth 2.0 client ID. Click the button to create OAuth 2.0 client ID. You will be asked to fill in Branding Information for your project. Provide a product name this could be anything, e.g. WPBeginner Hangout App. Logo and Home Page URL fields are optional so you can leave them blank and click the Next button.

现在,您将进入项目的API访问菜单,并且需要创建oAuth 2.0客户端ID。 单击按钮创建OAuth 2.0客户端ID 。 系统将要求您填写项目的品牌信息。 提供产品名称,可以是任何名称, 例如WPBeginner Hangout App 。 徽标和主页URL字段是可选的,因此您可以将其保留为空白,然后单击“下一步”按钮。

Google API Branding

On the next screen choose Web Application for the Application Type. In your site or hostname field, first you need to choose http:// instead of https:// from the drop down menu. Second, you need to enter the URL of the oauth2callback.php file inside Yakadanda Google Hangout Events plugin directory. Example:

在下一个屏幕上,为“应用程序类型”选择“ Web应用程序”。 在您的站点或主机名字段中,首先需要从下拉菜单中选择http://而不是https://。 其次,您需要在Yakadanda Google Hangouts事件插件目录中输入oauth2callback.php文件的URL。 例:

http://www.example.com/wp-content/plugins/yakadanda-google-hangout-events/oauth2callback.php

http://www.example.com/wp-content/plugins/yakadanda-google-hangout-events/oauth2callback.php

Replace example.com with your own domain name. Once you enter this, the Redirect URI will automatically change itself. Press the Create Client ID button, and you will reach API Access page with all the keys you need.

用您自己的域名替换example.com。 输入此内容后,重定向URI会自动更改。 按“创建客户端ID”按钮,您将进入“ API访问”页面,其中包含所有需要的密钥。

Google API Information

Go back to your Google Hangout Events plugin page. In Calendar ID field, enter the email address of the Google+ account you will be using to create Hangout events. Enter your API keys by pasting them from Google API Access page. Click save changes, and you will be taken to a Google Accounts page asking permission to connect the plugin. Click Allow Access and you will be redirected to plugin setiings page.

返回您的Google Hangouts活动插件页面。 在“日历ID”字段中,输入您将用于创建环聊活动的Google+帐户的电子邮件地址。 通过从Google API Access页面粘贴来输入您的API密钥。 点击保存更改,您将被带到Google帐户页面,要求获得连接插件的权限。 单击允许访问,您将被重定向到插件设置页面。

Allow Google Hangout Events plugin acccess to your Calendar

Now go to Appearance » Widgets and add Google+ Hangout Events widget to your sidebar. The widget will immediately start displaying Google+ hangout Events you have created.

现在转到外观»小部件,然后将Google+环聊活动小部件添加到侧边栏中。 该小部件将立即开始显示您创建的Google+视频群聊活动。

创建Google Plus环聊活动 (Creating a Google Plus Hangout Event)

Go to Google+ Events and then click on Create Event button. Click on Event Options button and then choose Advanced. In the Advanced menu choose Google Plus Hangout. Finally press the green Invite button and you are good to go.

转到Google+活动 ,然后单击创建活动按钮。 单击事件选项按钮,然后选择高级。 在高级菜单中,选择Google Plus环聊。 最后按下绿色的“邀请”按钮,一切顺利。

Creating a Google+ Hangout Event

We hope that you found this tutorial useful in helping you organize hangouts on your blog or website. While you are on Google+, don’t forget to add WPBeginner to your Google+ circles.

我们希望您发现本教程对帮助您组织博客或网站上的视频群聊很有用。 使用Google+时,请不要忘记将WPBeginner添加到您的Google+圈子中

翻译自: https://www.wpbeginner.com/plugins/how-to-add-google-hangout-event-countdown-in-wordpress/

aws+wordpress

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值