ShareThis

Permalink 1 user found helpful

1 Attachment

smartwebprojects
 
SeanBrogan replied on at Permalink Reply
SeanBrogan
Thanks Smartweb, a great variation for those who dont like the AddThis block
scalait replied on at Permalink Reply
scalait
nice... Why not add it to the marketplace? :-)
zoinks replied on at Permalink Reply 1 Attachment
Is there some reason we can't embed sharethis right into our templates?

I'd be happy to use your block, but it doesn't have the display that I am looking for.

I put this code in my template, which was working FINE as regular HTML. After I Concrete5-ized my template, it simply disappeared:

<script type="text/javascript">var switchTo5x=true;</script><script type="text/javascript" src="http://w.sharethis.com/button/buttons.js">

Also, see my file attachment for the display I'm looking for...
zoinks replied on at Permalink Reply
There's a little instruction to get your code by "registering" with ShareThis. There's no "registration" involved at all. You choose your format and "get the button." Then, it spits out 2 kinds of code for you. I added these bits of code to my template and nothing happened whatsoever. Blank space where the buttons should be.
zoinks replied on at Permalink Reply
Blech. I "got the buttons" for my HTML template pre-C5. They were working and showing up just fine.

Once I turned my template into a C5 template, they simply disappeared, so I gave up and deleted the javascript and html code from my template and instead added an editable area, installed your plugin and pasted the javascript and html code in the space where your plugin says to do so... didn't work, there was nothing where the buttons should be.

So, I finally found the register button at the top right and clicked that and see by the fact that it automatically logged me in that I had already registered before.

So, F this sharethis bs. Off to find some simple AJAX buttons somewhere hopefully. What a convoluted mess.
zoinks replied on at Permalink Reply
I should point out that my frustration isn't with your efforts at all, but with ShareThis and with the fact that C5 seems to make simple things impossible without a lot of extra crap steps or someone creating a special plugin to get it to work.
MrNiceGaius replied on at Permalink Reply
MrNiceGaius
Just tested adding ShareThis manually and it works fine. I think you might have forgot the html that the javascript needs to work with.

Taken from ShareThis site instructions:

"This is your button code, it generates the buttons that you see on your page. Place it wherever you want them to appear."

<span  class='st_twitter_large' ></span><span  class='st_facebook_large' ></span><span  class='st_yahoo_large' ></span><span  class='st_gbuzz_large' ></span><span  class='st_email_large' ></span><span  class='st_sharethis_large' ></span>


"This is your ShareThis script tag, without it the buttons don't work. You can put it anywhere on your page. We recommend putting it in your header (between your <head> and </head> tags)"

<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">stLight.options({publisher:'4b9e427c-9dc6-4c6f-8e67-8889cbe53c97'});</script>


---

I just added a regular html block and pasted both codes in. Works like a charm. Should be easy to add it to your template file by just pasting the code in.
zoinks replied on at Permalink Reply
Thanks for the response, but I added them both.

The AddThis plugin worked fine, though.

Then, I just hard-coded the AddThis code right in my template and it worked perfectly fine.

I had hard-coded ShareThis in my original template but it completely broke once I transitioned from HTML to a PHP C5 template. Wish I knew why the F such inconsequential little things cause so much trouble. I mean, it's a javascript and a teensy tiny bit of html. I don't get it.

Same exact type of deal with AddThis and no problem. Up and running in 2 minutes. The other thing I spent the whole day trying to figure out.
MrNiceGaius replied on at Permalink Reply
MrNiceGaius
wow, that's one of those weird quirks that makes me want to pull my hair out :) I wonder why it works for me? Oh well... moving on to the next issue hehe

...wondering if some other javascript conflict is occuring... maybe firebug reported errors in the console? oh well, sounds like you've got your solution down.

So funny how quickly a day goes by when trying to figure out a bug.

Take care