Title: VK Lock
Author: igrp
Published: <strong>2017 年 8 月 19 日</strong>
Last modified: 2017 年 8 月 19 日

---

搜尋外掛

![](https://ps.w.org/vk-lock/assets/banner-772x250.png?rev=1716169)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/vk-lock/assets/icon-256x256.png?rev=1716169)

# VK Lock

 由 [igrp](https://profiles.wordpress.org/igrp/) 開發

[下載](https://downloads.wordpress.org/plugin/vk-lock.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/vk-lock/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/vk-lock/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/vk-lock/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/vk-lock/#developers)

 [技術支援](https://wordpress.org/support/plugin/vk-lock/)

## 外掛說明

VK Lock make is possible to restrict page\post access to authorized VKontakte group
members only.
 Plugin will take care about site visitor authorization in VKontakte
and checking if he\she is member of VKontakte group specified by you. Access to 
the protected page\post content will be allowed only if user is authorized and is
a group member.

Restriction works for password protected pages\posts only – this means that your
have to set page\post type to “password protected” and specify any password (plugin
does not use this password, if you like you can access protected page with that 
password via conditional password access form, provided by WordPress).

Plugin works via VKontakte API (https://oauth.vk.com/authorize) therefore you need
to make some proper (its very easy) settings at VK.COM side. See Installation instructions.

This plugin may not work properly with PHP versions earlier than PHP 5.2

## 螢幕擷圖

 * [[
 * [[

## 安裝方式

Plugin works via VKontakte API (https://oauth.vk.com/authorize) therefore you need
to make some proper (its very easy) settings at VK.COM side:

 1. You need to have an active VKontakte account
 2. You have to create new “VKontakte application”. Don’t panic – “application” means
    only some settings on VK.com that enables integration between VK.com and your wordpress
    site (this plugin)
 3. Go to https://vk.com/editapp?act=create, and create new “VKontakte application”–
    set its type to ‘Web-site’ and specify address of your WordPress site. Its wise
    to specify application Name, Description and Icon (better to match your wordpress
    site) – because this information will be presented by VK.COM to the user during
    authorization process. User will be asked if he\she trust this application to provide
    information about his\her name and VK groups he\she belongs to.
 4. Write down the following VK application params: ApplicationID (its a number), and
    SecureKey (its a set of letters like JKdasAKdaKLKsklsjndas)
 5. Go to Plugin settings at WordPress admin console (Plugings -> VK Lock) and enter
    ApplicationID & SecureKey in proper fields
 6. Thats all – you may setup access for your posts\pages now

## 常見問題集

  Installation Instructions

Plugin works via VKontakte API (https://oauth.vk.com/authorize) therefore you need
to make some proper (its very easy) settings at VK.COM side:

 1. You need to have an active VKontakte account
 2. You have to create new “VKontakte application”. Don’t panic – “application” means
    only some settings on VK.com that enables integration between VK.com and your wordpress
    site (this plugin)
 3. Go to https://vk.com/editapp?act=create, and create new “VKontakte application”–
    set its type to ‘Web-site’ and specify address of your WordPress site. Its wise
    to specify application Name, Description and Icon (better to match your wordpress
    site) – because this information will be presented by VK.COM to the user during
    authorization process. User will be asked if he\she trust this application to provide
    information about his\her name and VK groups he\she belongs to.
 4. Write down the following VK application params: ApplicationID (its a number), and
    SecureKey (its a set of letters like JKdasAKdaKLKsklsjndas)
 5. Go to Plugin settings at WordPress admin console (Plugings -> VK Lock) and enter
    ApplicationID & SecureKey in proper fields
 6. Thats all – you may setup access for your posts\pages now

  How to use plugin ?

Open WP admin console and go to the page\post. Go to [VK Lock] section on page edit
screen (meta-box at bottom of the page).
 Within [VK Lock] section specify:

 1. URL to the VKontakte group (just copy&paste http address from your browser of the
    VK group main page – its like https://vk.com/club123456789), if it is not specified–
    plugin won’t affect your page at all
 2. Timelimit (date in YYYY-MM-DD format after which the access to the page will be
    blocked even for proper VK group members), you may leave it empty

  How to configure plugin ?

Plugin has the following parameters (see at Plugings -> VK Lock menu) :

 1. ‘VK Application ID’ – the ID of the application you have to create in VK
 2. ‘VK SecureKey’ – security key of your VK application
 3. ‘Show default Password box’ – as the plugin works for password protected pages,
    you may either show (1) or not (0) the default password box the the page
 4. ‘No access notice Header’ – header text that be shown to the user (usually its 
    ATTENSION or AUTHENTICATION)
 5. ‘No access notice text’ – text that show to the user as no-access description \
    explanation (there is %s param that will be replaced by VK group URL)
 6. ‘SingIn Button Text’ – text that will be put on ‘SingIn’ button below the notice
 7. ‘No access after expiration time notice’ – text that shown to the user in case 
    timelimit was reached (there are two %s params – first one will be replaced by 
    VK group URL, the second – by Timelimit-date)
 8. ‘CSS class for SingIn

<

div> area’ – CSS classes to put set in

<

div> section of the no-access notice

 1. ‘CSS class for VK SingIn anchor’ – CSS class to VK SingIn URL [, usually its ‘button’](https://tw.wordpress.org/plugins/vk-lock/...?output_format=md)

  Does it slow down my site ?

The short answer is NO. During page load VK-Lock Plugin checks if VK URL is set,
if not – nothing will happen. So the overhead is very very small. Additionally, 
to minimize load on VK.COM and speed up page load VK-Lock also rely on vk_lock private
cookies. VK Lock set secured cookie that confirms user was properly authorized in
VK.COM (cookie valid for 2-hours max).

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈VK Lock〉的開發相關工作。

參與者

 *   [ igrp ](https://profiles.wordpress.org/igrp/)

[將〈VK Lock〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/vk-lock)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/vk-lock/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/vk-lock/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/vk-lock/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/vk-lock/)。

## 變更記錄

#### 0.1.8

Initial public realease

#### 0.1.7

 * Timelimit feature added (access to VK.com group members get blocked after specified
   date)
 * Translation into Russian added

#### 0.1.6

 * VK.com integration changed from VK-Widgets to OAuth

#### 0.1

Initial Revision

## 中繼資料

 *  版本 **0.1.8**
 *  最後更新 **9 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.8.28**
 *  語言
 * [English (US)](https://wordpress.org/plugins/vk-lock/)
 * 標籤:
 * [access](https://tw.wordpress.org/plugins/tags/access/)[limit](https://tw.wordpress.org/plugins/tags/limit/)
   [vk.com](https://tw.wordpress.org/plugins/tags/vk-com/)[vkontakte](https://tw.wordpress.org/plugins/tags/vkontakte/)
 *  [進階檢視](https://tw.wordpress.org/plugins/vk-lock/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/vk-lock/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/vk-lock/reviews/)

## 參與者

 *   [ igrp ](https://profiles.wordpress.org/igrp/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/vk-lock/)