replace G+ with vkontakte

GK User
Fri Mar 16, 2012 9:08 am
I get this info from vkontakte

Code: Select all
<!-- Put this script tag to the <head> of your page -->
<script type="text/javascript" src="http://userapi.com/js/api/openapi.js?48"></script>

<script type="text/javascript">
  VK.init({apiId: 2790707, onlyWidgets: true});
</script>

<!-- Put this div tag to the place, where the Like block will be -->
<div id="vk_like"></div>
<script type="text/javascript">
VK.Widgets.Like("vk_like", {type: "button", height: 20});
</script>


I tried removing the google plus and it doesn't work.

how can i add vkontakte so it'd work instead of the G+

Maybe i don't have to replace G+ - if i can just insert it that will be cool..

thank you.
User avatar
Expert Boarder

GK User
Fri Mar 16, 2012 12:18 pm
You want to add vkontakte to article social API (this icons generated at the bottom ?) If yes you need to include script in file default.php where you find the head section and then in template/html/article/default.php add the icon.
User avatar
Platinum Boarder

GK User
Fri Mar 16, 2012 11:58 pm
thats what i needed.. :) perfect.. i replaced the google info with vkontakte... :)
User avatar
Expert Boarder

GK User
Mon Jan 06, 2014 9:13 am
bkrztuk wrote:You want to add vkontakte to article social API (this icons generated at the bottom ?) If yes you need to include script in file default.php where you find the head section and then in template/html/article/default.php add the icon.

I have kinda similar question, yet different. Most popular socials in our country are those West never heard about. So, we need to include more then just vk.com, we need others too. And I've found one good service that aggregates most popular services in one style and look: http://api.yandex.ru/share/ (not sure if they have this page in English though).
They give me this code:
Code: Select all
<script type="text/javascript" src="//yandex.st/share/share.js"
charset="utf-8"></script>
<div class="yashare-auto-init" data-yashareL10n="ru"
 data-yashareQuickServices="yaru,vkontakte,facebook,twitter,odnoklassniki,moimir,gplus" data-yashareTheme="counter"

></div>

My question is how do I impliment this code causing minimum harm to the template (Simplisity in my case)?
User avatar
Platinum Boarder

GK User
Tue Jan 07, 2014 9:28 am
If you want to include this icons in the place where original FB, Twitter etc., icons are displayed you need to copy this code to root/template/gk_templatename/html/com_content/article/default.php file. You will surely find the place where our icons are placed by gkSocialApi container.
User avatar
Platinum Boarder


cron