The module provides like button for one of the most popular Russian social networks VKontakte.ru (vk.com).

Rather than having to manually copy/paste the button code from vk.com for each piece of content, the module automatically adds that code to the end of each chosen node type. It is possible to add a Like button which likes a given URL (static, e.g. homepage) or/and put a dynamic Like button on your page to like the page you are actually visiting.

The module provides similar functionality to Facebook Like Button module for Facebook, which was used as an example. The module allows site administrators to customize all the options for the button (size, style, text) provided by vk.com at the moment. Drupal 7 only is supported for now.

Though there are several drupal modules dealing with vk.com (http://drupal.org/project/vkxp and http://drupal.org/project/vk_openapi), neither allows to add like button.

Link to the project page: http://drupal.org/sandbox/AlexBukach/1845636

Link to git repository: git clone --recursive --branch 7.x-1.x AlexBukach@git.drupal.org:sandbox/AlexBukach/1845636.git vkontakte_like_button

CommentFileSizeAuthor
vklikebutton.png34.13 KBalex.bukach

Comments

vineet.osscube’s picture

Hi,
I suggest you to take a look at this page:

http://ventral.org/pareview/httpgitdrupalorgsandboxalexbukach1845636git

Here you can check source code whether it meets drupal coding standards or not, and advise you what to change in your code. You can repeat review after your commits, and can fix those errors.

alex.bukach’s picture

Thanks, osscube! I've fixed everything.

monymirza’s picture

Status: Needs review » Needs work
alex.bukach’s picture

Sorry, now fixed.

klausi’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

If you reopen this please keep in mind that we are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

alex.bukach’s picture

Status: Closed (won't fix) » Needs review

Sorry, forgot to update status. The issues mentioned are all fixed, the project is still waiting for review.

Matters’s picture

You can store your data in one variable by placing them in an array.
In the vklikebutton.module in the function vklikebutton_block_view() you use the re-declaration of a global variable $base_url. Lines 194 and 229.

kscheirer’s picture

Status: Needs review » Reviewed & tested by the community

You could probably refactor your code that creates the $conf array. Instead of creating it each time, you could write a small function to do that for you and reuse it. I see in the theme function you drupal_add_js() a js library directly from vk.com, you may need to document that somewhere in case it changes.

Otherwise, I don't see any major issues here.

kscheirer’s picture

Title: VKontakte Like Button » [D7] VKontakte Like Button
Status: Reviewed & tested by the community » Fixed

You have a few alerts you can fix from: http://ventral.org/pareview/httpgitdrupalorgsandboxalexbukach1845636git. It's been over a month and the code still looks reasonable.

Thanks for your contribution, Alex Bukach!

I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

----
Top Shelf Modules - Enterprise modules from the community for the community.

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Issue summary: View changes
Issue tags: -like button, -vk.com, -vkontakte.ru, -ВКонтакте, -Мне нравится
avpaderno’s picture

Status: Closed (fixed) » Fixed

I am giving credits to the users who participated in this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.