Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • spaziogiovani Friend
    #183286

    hello,

    I have build an html custom module using the code grabbed from AddThis for having social sharing button:

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    <a class="addthis_button_preferred_3"></a>
    <a class="addthis_button_preferred_4"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    </div>
    <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
    <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50d1e520261f55d0"></script>
    <!-- AddThis Button END -->

    then I was planning to set position on “addthis” and recall the buttons where I need them with a “loadposition”.

    BUT even if I turn off the editor,whenI insert the code as raw then it is cleaned automatically… I turned off “script” in the blacklist inside tinyMCE plugin but is still happens – I get this code:

    <!-- AddThis Button BEGIN -->
    <div class="addthis_toolbox addthis_default_style ">*</div>
    <script type="text/javascript">// <!]></script>
    <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50d1e520261f55d0"></script>
    <!-- AddThis Button END -->

    I also turned off the JS optimisation in the template setting… but no way.
    Any hint on how to solve this?

    Luna Garden Moderator
    #477058

    Hello,

    You can try this: go to back-end >> Site >> Global Configuration >> Text Filter tab >> Set Super Users to No Filtering.

    Try and let me know if it helps

    spaziogiovani Friend
    #483565

    I spent some time on this, then I found out that AddThis has a joomla plugin, so I have installed it and it works.
    Thanks anyway 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  spaziogiovani 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum