Restrict pagepost access to authorized VKontakte group members only.
Author: | Igor Ponomarev (profile at wordpress.org) |
WordPress version required: | 4.0 |
WordPress version tested: | 4.8.1 |
Plugin version: | 0.1.8 |
Added to WordPress repository: | 19-08-2017 |
Last updated: | 19-08-2017
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://wordpress.org/extend/plugins/vk-lock/ |
Total downloads: | 6 004 |
Click to start download
|
Screenshots
FAQ
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:
-
You need to have an active VKontakte account
-
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)
-
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.
-
Write down the following VK application params: ApplicationID (its a number), and SecureKey (its a set of letters like JKdasAKdaKLKsklsjndas)
-
Go to Plugin settings at WordPress admin console (Plugings -> VK Lock) and enter ApplicationID & SecureKey in proper fields
-
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:
-
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
-
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) :
-
‘VK Application ID’ – the ID of the application you have to create in VK
-
‘VK SecureKey’ – security key of your VK application
-
‘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
-
‘No access notice Header’ – header text that be shown to the user (usually its ATTENSION or AUTHENTICATION)
-
‘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)
-
‘SingIn Button Text’ – text that will be put on ‘SingIn’ button below the notice
-
‘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)
-
‘CSS class for SingIn
<
div> area’ – CSS classes to put set in
<
div> section of the no-access notice
- ‘CSS class for VK SingIn anchor’ – CSS class to VK SingIn URL , usually its ‘button’
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).
ChangeLog
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