Страница 1 из 1

[3.1][3.2] Reaction Buttons

Добавлено: 09 апр 2018, 16:22
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: