Drupal7和Addthis

Drupal7和Addthis,drupal,drupal-7,addthis,Drupal,Drupal 7,Addthis,所以我需要使用addthis。请访问我的网页,我正试图实现添加这个 添加此按钮不会显示在我的页面上。我可以使用简单的html代码实现它,但是drupal实现不起作用 js正在加载,但我无法调试问题,因为我无法找到发生这种情况的原因 干杯, 维沙尔 p、 s-欲了解更多详情,请访问 代码: 在D7中对我有效的是创建一个新的“文本格式”,其中没有启用过滤器。无论出于何种原因,D7都认为该代码存在错误或不完整 配置>内容创作>文本格式>添加文本格式 试一试。然后如何将此文本格式与addthis脚本关联

所以我需要使用addthis。请访问我的网页,我正试图实现添加这个

添加此按钮不会显示在我的页面上。我可以使用简单的html代码实现它,但是drupal实现不起作用

js正在加载,但我无法调试问题,因为我无法找到发生这种情况的原因

干杯, 维沙尔

p、 s-欲了解更多详情,请访问

代码:


在D7中对我有效的是创建一个新的“文本格式”,其中没有启用过滤器。无论出于何种原因,D7都认为该代码存在错误或不完整

配置>内容创作>文本格式>添加文本格式


试一试。

然后如何将此文本格式与addthis脚本关联?我是否应该将其保留为默认值?
<script type="text/javascript">
(function ($) {
    Drupal.behaviors.slider = {
        attach:function(context) {
            var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
            if (window.addthis) {
                window.addthis = null;
            }
            $.getScript(script);
        }

    };

}(jQuery));
</script>



<div id="sociallinks">
<div class="viewing">Request a viewing</div>


<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_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>

<!-- AddThis Button END -->
</div><!-- end of social links -->