Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: sinner-rus on August 20, 2010, 04:30:22 AM

Title: VKontakte Safe mod
Post by: sinner-rus on August 20, 2010, 04:30:22 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2719)

*******************************
VKontakte Save mod Version 1.0.0
[/b][/center]
By: Sinner-rus
http://www.kidsforum.kulichki.ru
*******************************

Mod Information:
For 2.0 RC2; 2.0 RC3; 1.1.11

This mod allow to save topic link in social network VKontakte, write description to it and discuss it with friends in comments. Also you can public this link in your status with a comment.

Translation:
Russian (and utf-8) = Sinner-rus
English = Sinner-rus


:::::::::::::::::::::::
ICQ for help: 348317


Changelog:
:::Version 1.0.0 (August 15, 2010):::

=================================================
=================================================
=================================================

*******************************
Мод "Сохранение ВКонтакте", Версия 1.0.0
Разработчик: Sinner-rus
http://www.kidsforum.kulichki.ru
*******************************

Информация о моде:
Для 2.0 RC2; 2.0 RC3; 1.1.11

Мод позволяет сохранять ссылку на тему форума в заметках ВКонтакте, публиковать для неё описание и комментировать тему форума с друзьями в соц. сети ВКонтакте. Также возможна публикация ссылки на тему в статусе ВКонтакте (вместе с комментарием).

Переводы:
Русский (и utf-8) = Sinner-rus
Английский = Sinner-rus


:::::::::::::::::::::::::
ICQ для помощи: 348317


Обновления:
Версия 1.0.0 (Август 15, 2010)

=================================================
=================================================
=================================================
Title: Re: VKontakte Safe mod
Post by: Bugo on August 20, 2010, 10:48:07 AM
И опять в локализации utf8 одни крякозябры... Не любите Вы русских пользователей :)
Title: Re: VKontakte Safe mod
Post by: sinner-rus on August 23, 2010, 05:22:07 AM
Bugo, често - не могу понять, как utf-8 делать) В notepad++ перевожу в utf-8, а не работает... И понять не могу - почему!
Title: Re: VKontakte Safe mod
Post by: chilly on August 23, 2010, 05:36:24 AM
I thought this is a general board not a language specific. so I expected the text to be written in english Oo
Title: Re: VKontakte Safe mod
Post by: Bugo on August 23, 2010, 10:39:54 AM
Quote from: sinner-rus on August 23, 2010, 05:22:07 AM
Bugo, често - не могу понять, как utf-8 делать) В notepad++ перевожу в utf-8, а не работает... И понять не могу - почему!
В меню Notepad++: Кодировки => Преобразовать в UTF8 (без BOM), сохранить как languages-utf8.xml; Кодировки => Преобразовать в ANSI, сохранить как languages.xml. Ничего сложного :)

Quote from: chilly on August 23, 2010, 05:36:24 AM
I thought this is a general board not a language specific. so I expected the text to be written in english Oo
Don't get so hyper :)
Title: Re: VKontakte Safe mod
Post by: digger on August 26, 2010, 07:45:14 PM
Are you sure this mod is safe?  :)
Title: Re: VKontakte Safe mod
Post by: atfosan on September 05, 2010, 01:37:40 AM
Действительно, везде, кроме страницы мода, написано правильно (Save) :)
Архивчик для себе перепаковал, исправив кодировку. Смотрите во вложениях. Спасибо за мод!

Sorry for Russian in post but Vkontakte is popular only in Russian speakinkg countries. And is this mod works with VK.com? I don't check it but if developer try to realese this feature for foreign users it will be great!
Title: Re: VKontakte Safe mod
Post by: Apllicmz on October 31, 2010, 03:27:55 AM
when update dont forget portuguese
thank you
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[// Vkontakte Save mod, Version 1.0.0 by Sinner-rus
$txt['vkontaktesave_on'] = 'Activar o mod "Vkontakte Save';
$txt['vkontaktesave_view'] = 'Mostrar o n&uacute;mero ao gravar?';
$txt['vkontaktesave_save'] = 'Gravar!';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[// Vkontakte Save mod, Version 1.0.0 by Sinner-rus
$txt['vkontaktesave_on'] = 'Activar o mod "Vkontakte Save';
$txt['vkontaktesave_view'] = 'Mostrar o n&uacute;mero ao gravar?';
$txt['vkontaktesave_save'] = 'Gravar!';
]]></add>
        </operation>
    </file>
Title: Re: VKontakte Safe mod
Post by: Manu.G on November 04, 2011, 10:03:22 AM
I want to use this modification because we've a lot of Russian forum members and they want to share topics of our
forum at vkontakte.
The problem I've is the postion of the button.


I would like to see the "save" button under the posting.
I've installed the "TweetThis" modification and want to have the Vkontakte-butten beside the Twitter-button.
What changes of your code are for need to get it work?
<span id="author">', $txt['author'], '</span>';
      //VKontakte Like Mod     
      if (!empty($modSettings['vkontaktesave_on']) && !empty($modSettings['vkontaktesave_view'])){
echo'<div align="right" style="padding-top:5px;"><script type="text/javascript"><!--
document.write(VK.Share.button(false,{type: "round", text: "', $txt['vkontaktesave_save'], '"}));
--></script><>';
} elseif (!empty($modSettings['vkontaktesave_on']) && empty($modSettings['vkontaktesave_view'])) {
echo '<div align="right" style="padding-top:5px;"><script type="text/javascript"><!--
document.write(VK.Share.button(false,{type: "round_nocount", text: "', $txt['vkontaktesave_save'], '"}));
--></script><>'; }
echo'

Would be nice to get help. :)