Thanks to share this module team for a nice job. Im using this module in my drupal 7 site.
My problem is when I share something on facebook there is text "shar.es" below the title. Please see the attached image. But I want it to be my site url which is www.idrf-bd.com. how can I do so.

Comments

ali_nayeem’s picture

Assigned: ali_nayeem » Unassigned
quickly’s picture

+1

ioanmar’s picture

+1

timofey’s picture

Definitely a +1. I'm thinking of moving away from SharThis for this sole purpose.
It hides the actual url of the domain name that's shared!!

jorkby’s picture

may you can try with this change:

in your html.tpl.php before add:

stLight.options({publisher:"add here your PUD KEY", shorten:false});
ShareThis_Support’s picture

Hello User,

Please note that sharethis shortens a url before sharing it on a social network.
You can turn off URL shortener by using the parameter "shorten" as shown below -

stLight.options({publisher:"YOUR PUB KEY", shorten:false});

Please let us know if you face any issues during implementation.

Regards,
The ShareThis Support Team

dkrockville’s picture

What is "YOUR PUB KEY" ? Where would I find mine?

<?php
    stLight.options({publisher:"YOUR PUB KEY", shorten:false});
?>

Should this be inserted into html.tpl.php, and if so where exactly?
Thanks for any help!



((UPDATE)) Found some info on the configuration >> web services >> sharethis page, where the default pub key is listed under the Advanced tab.
dr-108b-4c03-db0c6d0b-A826-9fdc20f672f6 is the default public key.

At top of node.tpl.php, I added:

<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" src='http://s.sharethis.com/loader.js'></script>

And, then below the following code:

<?php
    hide($content['comments']);
    hide($content['links']);
    print render($content);
?>
  </div>

I added:

<?php
<script type="text/javascript">stLight.options({publisher: "dr-108b-4c03-db0c6d0b-A826-9fdc20f672f6", shorten:false});</script>

?>

That worked for me to NOT shorten the URL.

dsdeiz’s picture

Version: 7.x-2.3 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.46 KB

Here's a patch that adds the option 'Shorten' in the Advanced settings.

Gaofengzzz’s picture

Status: Needs review » Fixed

Thanks very much @ali_nayeem for posting this issue, and @dsdeiz for your patch.

The latest patch has been commit in efcd23f.

Please let me know if you would have any further comments, feedback, questions, issues, objections, suggestions or concerns on any aspects in the commits or this ticket in general, I would be glad to provide more information or explain in more details.

Thanks again to everyone for your help, reviews, feedback and comments on this issue.

Cheers!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.