Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter filip_winiewicz

    (@filip_winiewicz)

    ok i’ve found it. sorry

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    but i thinkthese are 2 separate codes. its just from button begin to buttion end. is hould probably paste it in index.php loop, but i’m not sure where and if the effect will be as I expect

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    <a href="https://www.jiathis.com/help/html/add-more-icons/">如何在一个页面中添加多组分享代码</a>
    <!--本页第一个分享工具代码开始-->
    <div onmouseover="setShare('如何在一个页面中添加多组分享代码', 'https://www.jiathis.com/help/html/add-more-icons/');"> <!--自定义第一个分享标题和链接-->
                         <!-- JiaThis Button BEGIN -->
                         <div class="jiathis_style">
                         <a href="https://www.jiathis.com/share/?uid=您的UID" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享</a>
                         <span class="jiathis_separator">|</span>
                         <a class="jiathis_button_tsina"></a>
                         <a class="jiathis_button_qzone"></a>
                         <a class="jiathis_button_kaixin001"></a>
                         <a class="jiathis_button_renren"></a>
                         </div>
                         <!-- JiaThis Button END -->
    </div>
    <!--本页第一个分享工具代码结束-->
    <br/>
    第二条:<a href="https://www.jiathis.com/news/html/jiathis-wordpress-plugin">JiaThis发布最新WordPress分享插件</a>
    <!--本页第二个分享工具代码开始-->
    <div onmouseover="setShare('JiaThis发布最新WordPress分享插件', 'https://www.jiathis.com/news/html/jiathis-wordpress-plugin');">  <!--自定义第二个分享标题和链接-->
                            <!-- JiaThis Button BEGIN -->
                            <div class="jiathis_style">
                            <a href="https://www.jiathis.com/share/?uid=您的UID" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank">分享</a>
                            <span class="jiathis_separator">|</span>
                            <a class="jiathis_button_tsina"></a>
                            <a class="jiathis_button_qzone"></a>
                            <a class="jiathis_button_kaixin001"></a>
                            <a class="jiathis_button_renren"></a>
                            </div>
                            <!-- JiaThis Button END -->
    </div>
    <!--本页第二个分享工具代码结束-->
    <!--单页面使用多分享按钮需要增加的分享参数代码-->
    <script type="text/javascript">
                              function setShare(title, url) {
                                  jiathis_config.title = title;
                                  jiathis_config.url = url;
                              }
                                var jiathis_config = {}
                              </script>
    <!--分享参数代码结束-->
    <!--分享功能代码统一放到页尾-->
    <script type="text/javascript" src="https://v1.jiathis.com/code/jia.js?uid=您的UID" charset="utf-8"></script>
    <!--分享功能代码结束-->
    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    I spoke with the plugin developer. I’m not sure if he understood me but he gave me this code and told me to paste it in the webpage code:

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    Hi, thanks for your time again. I did as you wrote and the plugin is on the main page now, but it shares only the url of my main page. I have the jetpack sharing plugin installed. it’s also under each post and when i share on fb it shares the link to each post. so its fine. Maybe it would be easier if I would just add my links to sharing. I already tried that, and it didn’t work because I’m not sure how the url in sharing should look like as its not possible to check the settings for existing buttons.

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    Now I’ve noticed both plugins have 3 lines od add_filter code, so maybe if you wont see them you can’t help me. The sharing plugin is “jiathis”
    thanks

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    Yes, thats what I want. Thank you ??

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    So the “Post ratings” (thats the name) plugin has:

    add_filter(‘plugin_action_links’, array($this, ‘PluginSettingsLink’), 10, 2);

    and it works as I’d like the other to work. And this is the code from the one showing the buttons only on the post page:

    add_filter(‘plugin_action_links_jiathis/jiathis-share.php’,’jiathisActionLinks’, 10, 2);

    Thread Starter filip_winiewicz

    (@filip_winiewicz)

    Hi Jan, thank you for fast answer. The plugins don’t have this option, those are plugins with my national sites. I have a code ready I would like to use, I just don’t know where to paste it. I got a Post rating plugin and I can see it on the main page and on the post pages. But I can’t find right share plugin that would do the same so I need to use the code I guess

Viewing 9 replies - 1 through 9 (of 9 total)