[3.1][3.2][beta] ShareThis

Ответить
Аватара пользователя
southklad_3.2
Администратор
Сообщения: 21
Зарегистрирован: 19 мар 2017, 19:48

[3.1][3.2][beta] ShareThis

Сообщение southklad_3.2 »

Extension Name: ShareThis
Author: southklad

Extension Description: I made a small extension for myself, in fact a simple one, but suddenly someone will like it.

Before that, I had extensions from Anwar http://bb3.mobi/forum/viewtopic.php?f=14&t=75, but I did not particularly like the design of these icons, and I found another service for this https://platform.sharethis.com/get-inline-share-buttons#

So, first of all go to the site https://platform.sharethis.com/get-inline-share-buttons# and create exactly such buttons as we want, it can be horizontal or vertical, small or large and very different social. networks

Изображение

After checking all the settings, we save and register. Then we find ourselves in the personal account on the site, where we see all the same settings

Изображение

Now go to the extension files along the way

Код: Выделить всё

/ext/southklad/share/styles/all/template/event/overall_header_head_append.html
and there we replace the inscription Link to your buttons

Код: Выделить всё

<!-- IF not S_IS_BOT --><script type='text/javascript' src='Ссылка на ваши кнопки' async='async'></script><!-- ENDIF -->
to your link of this kind

Код: Выделить всё

//platform-api.sharethis.com/js/sharethis.js#property=Код вашей кнопки&product=inline-share-buttons
After that, you can make all the changes on the ShareThis website and all changes will be automatically applied to your forum in 5-10 minutes.

For myself, the button mapping was done only in the first message

Код: Выделить всё

<!-- IF postrow.S_FIRST_ROW -->

<div class="sharethis-inline-share-buttons" data-title="{PAGE_TITLE}"></div>

<!-- ENDIF -->
If you want to display in all messages you need to leave so

Код: Выделить всё

<div class="sharethis-inline-share-buttons" data-title="{PAGE_TITLE}"></div>
in file

Код: Выделить всё

southklad/share/styles/all/template/event/viewtopic_body_postrow_post_content_footer.html
Supported Styles:
  • all
Installation:
  • Download the latest release and unzip it.
  • Upload to

    Код: Выделить всё

    /ext/southklad/
    and enable it in the ACP

Изображение

Options:
  • See HERE and below

    DOWNLOAD:
Вложения
ShareThis.zip
(2.38 КБ) 146 скачиваний


Ответить