[3.1][3.2] Reaction Buttons

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

[3.1][3.2] Reaction Buttons

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

Extension Name: Reaction Buttons
Author: southklad

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

So, first of all go to the site https://platform.sharethis.com/get-inline-share-buttons# and create exactly such buttons as we want, you can leave it as is, you can change their location or remove unnecessary ones.

Изображение

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/reactionbuttons/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='Link to your buttons' async='async'></script><!-- ENDIF -->
to your link of this kind

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

//platform-api.sharethis.com/js/sharethis.js#property=Link to your buttons&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-reaction-buttons" style="clear:both;"></div>

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

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

<div class="sharethis-inline-reaction-buttons" style="clear:both;"></div>
in file

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

southklad/reactionbuttons/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:
Вложения
ReactionButtons.rar
(1.69 КБ) 167 скачиваний


Ответить