Krajee

VKontakte Poll

Thankful to Krajee! BUY A COFFEEor to get more out of us.
The Poll widget can be used to create a poll for users of your site within 5 minutes by embedding the corresponding module in any place on your page. Visitors can express their attitude with one click or immediately share it with their friends by posting the result on their VK page. For this, users do not need to enter any information personally, that is why the link to the article with such a poll can be distributed as quick as possible. Refer VKontakte poll widget documentation for details on passing the settings for this plugin.

Tip

Not seeing the updated content on this page! Hard refresh your browser to clean cache for this page (e.g. SHIFT-F5 on Windows Chrome)

use kartik\social\VKPlugin;

/**
 * If any parameters are not passed, the widget will use settings from the 
 * social module wherever possible. For example `apiId` will
 * be referred from the module settings for the example below.
 */
echo VKPlugin::widget([
    'type' => VKPlugin::POLL, 
    'apiId' => 4937210,
    'settings' => [
        'poll_id' => '184334770_9a5a413da83bf0195d'
    ],
    'options' => [
        'width' => '350'
    ]
]);

Note

You can now visit the Krajee Webtips Q & A forum for searching OR asking questions OR helping programmers with answers on these extensions and plugins. For asking a question click here. Select the appropriate question category (i.e. Krajee Plugins) and choose this current page plugin in the question related to field.

The comments and discussion section below are intended for generic discussions or feedback for this plugin. Developers may not be able to search or lookup here specific questions or tips on usage for this plugin.

 
visitors to Krajee Yii2 Demos since 22-May-2017