Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

ShareThis Plugin Not Working With 2.0.18.8

Hi...I just enabled the ShareThis plugin on my Vanilla 2.0.18.8 forum but none of the social icons are showing up in my post.

I'm using the Vanilla Press 2010 theme, and the only other plugins I have enabled currently are Stop Forum Spam and WYSIWYG (CLEditor), both of which i disabled but still no social icons. I have SSL on my forum but Id assume that should be standard.

This appears to be the only social sharing plugin which is approved by the Vanilla community so I'm really hoping someone can offer some feedback here as to what the issue could be. Thanks.

«1

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited August 2013

    do you have a link ? to see the installation is your forum in a subfolder or in the root ?

    just copy this into your default.master.php of the theme where you want it to appear.

    <div class="VShare">
    <span class="st_sharethis_large" displaytext="ShareThis" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/sharethis_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    <span class="st_wordpress_large" displaytext="WordPress" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/wordpress_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    <span class="st_facebook_large" displaytext="Facebook" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/facebook_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    <span class="st_pinterest_large" displaytext="Pinterest" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/pinterest_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    <span class="st_reddit_large" displaytext="Reddit" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/reddit_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    <span class="st_email_large" displaytext="Email" st_processed="yes"><span style="text-decoration:none;color:#000000;display:inline-block;cursor:pointer;" class="stButton"><span class="stLarge" style="background-image: url(http://w.sharethis.com/images/email_32.png); "></span><img src="http://w.sharethis.com/images/check-big.png" style="position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; max-width: 19px; max-height: 19px; display: none; "></span></span>
    
    </div>
    
    
    <script type="text/javascript">var switchTo5x=true;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript">stDark.options({publisher: "ur-f4eed2d7-668b-1ab6-8677-cf7cdba7df2", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
    
  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    You will need to make an account at Sharethis .com to get your own publisher number and register your domain.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I made a newer version of this plugin see if it works for you

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Ok I made the plugin also post on comments and works with all versions I will upload it to the addons in a bit

  • Hi vrijvlinder...sorry for the delayed reply here as i really appreciate the help. I installed your plugin, included my ShareThis publisher key, and registered my domain with them, but the social media icons still aren't showing up for some reason.

    I was going to try just adding the code to my default.master.php file but that code doesnt seem to include all of the ShareThis icons and I'd prefer to go the plugin route if possible but at this point if thats the only way I guess I'll try it but I thought I'd get your opinion first as I dont see why the plugins aren't working.

    Here is a link to my forum like you first asked for. Thoughts?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    @GMoney

    Yes try out the one I just released and see if that works for you .

    http://vanillaforums.org/addon/vshare-plugin

  • Yeah sorry but its still not working for me here. I tried with and without all other plugins disabled, and I added and removed it twice, and clearing my cache even but they're still not showing up.

    I apologize as this has to be due to some change ive made I guess but i have no idea what it could be. I made a few smaller changes with the default.master.tpl and css for the theme but i dont see how they would prevent this plugin from working when my other plugins are.

    My forum...any suggestions?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I think it's a browser thing coz I see it !! try using Safari or something else

  • Yeah it is. it works in Firefox but not in Chrome

  • K thanks. I know im pushing it here but is there a chance you could make your plugin Chrome friendly?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    If you left the code in the tpl, remove it. You don't need it with this plugin now. If you can't see it try making sure you have javascript enabled in your browser... whatever that is

  • I actually never added the code to tpl and Javascript is enabled but still no icons showing in Chrome. They show perfectly in Firefox.

  • Regardless if we can make ur plugin Chrome friendly or not...Thanks for all your effort on this vrijvlinder

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Sorry to disappoint you but it works fine on Chrome too... your problem is you need to follow directions...

    Remove the stuff out from the tpl and only use the plugin. Also something is blocking the javascript on your site so look into that. If you use Chrome web inspector, you will see in the resources area a big red blocking banner that tells you the script was blocked.

    You need to make your browser allow pop ups , you need to allow javascript and that is as much as I can think of . I can see my buttons on my site on chrome just fine...

    try looking here in chrome

    http://www.cosmicjustice.org/discussion/1/testing-a-new-discussion

  • Just to be clear, not disappointed as I sincerely appreciate all of your help so I apologize if I came across as ungrateful in anyway. The issue is definitely on my end as i see its working fine on your site in Chrome so the plugin works 100%. I see what you mean through Chrome web inspector, as it indicates my site is actually blocking your plugin and giving me this error message:

    stLight is not defined

    Apparently others have experienced the same problem with the ShareThis plugin
    http://stackoverflow.com/questions/16139354/uncaught-reference-error-stlight-is-not-defined-in-chrome-only

    I just need to keep digging as they did to figure out what extension on my site is blocking it. Thanks again vrijvlinder.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited August 2013

    Good find !! I am sure there is a fix ... I will also look , possibly it only happens on a PC ? I will look on my laptop/

    stLight is not defined

    yes I saw that. That actually is what calls the Facebook like button style, Light or Dark . I believe that also happens in Firefox but it does not affect the function in Firefox as it is only about what the button looks like.

    the problem is with this and the answer is right there.

    Ok, think I may have found it: the site runs fine in Chrome's incognito (porn) mode. So I strongly suspect I've got some kind of extension that's interfering with it (like Do Not Track or something).

    EDIT It's Collusion's "block known tracking sites" feature.

    So I go back to my diagnosis that** it's a browser issue not the plugin**. I have all sorts of blocking things on Firefox so I get some message , but it is not due to the plugin as it is only a widget that gets embedded in the comments and discussions.

    The plugin is browser neutral . Your Server is what allows content or not. Or at your end the extensions you use. To block things...

    In any event you can go to your ShareThis account and re do the widget and get new code. Then replace it exactly as it is in the plugin. Do not just copy paste it . Make sure the front slashes ( \" ) remain ....

    that is all you would need because the selections of style of the button is within the buttons/buttons.js file

    which comes directly from ShareThis

    http://w.sharethis.com/button/buttons.js

    you may find more info in the ShareThis forum. Try with another theme ..

  • Ok great...thanks again for all of the info. I'm gonna play around with a few different options on different aspects as I was already thinking i might try another theme and take it a different direction anyway. Cheers!

  • I am having another issue with ShareThis. I have added ShareThis to my community (http://community.internmatch.com/) and it shows up at the bottom of all my discussions. I want to edit it so that on Tweets the via is from @internmatch not from @ShareThis.

    When I click the "ShareThis" button within my Dashboard under "PlugIns" rather than allow me to edit these settings I get a notification that says I do not have permission. Even though I am an admin with full permission and am logged into my ShareThis account as well. Why do I not have permission??

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Can you try the improved version of this plugin called VShare ?

    http://vanillaforums.org/addon/vshare-plugin

    you need to make sure you have permissions to manage plugins too admin should be able to do everything.

Sign In or Register to comment.