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
| Comment | File | Size | Author |
|---|---|---|---|
| vklikebutton.png | 34.13 KB | alex.bukach |
Comments
Comment #1
vineet.osscube commentedHi,
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.
Comment #2
alex.bukach commentedThanks, osscube! I've fixed everything.
Comment #3
monymirzaHi,
Some erros still pending. see here.
http://ventral.org/pareview/httpgitdrupalorgsandboxalexbukach1845636git
Comment #4
alex.bukach commentedSorry, now fixed.
Comment #5
klausiClosing 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 :-)
Comment #6
alex.bukach commentedSorry, forgot to update status. The issues mentioned are all fixed, the project is still waiting for review.
Comment #7
Matters commentedYou 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.Comment #8
kscheirerYou 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.
Comment #9
kscheirerYou 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.
Comment #11
avpadernoComment #12
avpadernoI am giving credits to the users who participated in this issue.