Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Kevin Brent

    (@kevin-brent)

    This code needs to be added to the head tag as well.

    <script src="https://platform.tumblr.com/v1/share.js"></script>

    Then if you highlight text it will be included with your post.

    Plugin Author Perials

    (@perialscom)

    Dear Kevin,

    Thanks for using our plugin and for the suggestion.

    You are very correct. By using just “https://www.tumblr.com/share&#8221; in the url works well allowing users to share not just title but also photos, videos and many more. We will definitely make this change in the upcoming version of our plugin.

    But we would also like to add that the current url for Tumblr share button in the plugin is working fine. We have tested it on our development server.

    Below is the PHP code for sharing link generated from the official button generator page of tumblr(https://www.tumblr.com/buttons)
    <a href="https://www.tumblr.com/share/link?url=<?php echo urlencode(INSERT_URL_HERE) ?>&name=<?php echo urlencode(INSERT_NAME_HERE) ?>&description=<?php echo urlencode(INSERT_DESCRIPTION_HERE) ?>" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:81px; height:20px; background:url('https://platform.tumblr.com/v1/share_1.png') top left no-repeat transparent;">Share on Tumblr</a>

    If you remove the inline styling, description parameter and title attribute the above code simplifies as below
    <a href="https://www.tumblr.com/share/link?url=<?php echo urlencode(INSERT_URL_HERE) ?>&name=<?php echo urlencode(INSERT_NAME_HERE) ?> >Share on Tumblr</a>

    This is how our plugin uses the share button link.

    Thanking you once again for your suggestions,
    Perials Team.

    Thread Starter Kevin Brent

    (@kevin-brent)

    Very nice plug-in. Thank you for making it available for everyone to use.

    When I visited the link: (https://www.tumblr.com/buttons)

    the code is asking for this javascript:

    <script src="https://platform.tumblr.com/v1/share.js"></script>

    And this html:

    <a href="https://www.tumblr.com/share" title="Share on Tumblr" style="display:inline-block; text-indent:-9999px; overflow:hidden; width:20px; height:20px; background:url('https://platform.tumblr.com/v1/share_4T.png') top left no-repeat transparent;">Share on Tumblr</a>

    The style and img can be changed as needed.

    Tumblr must have updated the code recently.

    To get the description text. I highlight the portion of text I want to share. The js picks it up automatically and includes it in the post.

    I can not figure out how to get the title to auto-fill though.

    Plugin Author Perials

    (@perialscom)

    Dear Kevin,

    The code that we posted is the most recent one. The code that you mentioned is also correct.
    On the Tumblr button generator page (https://www.tumblr.com/buttons) click on the ‘advanced’ link just above Step 3. Then from the ‘Share as’ section select ‘Link’. The code that you will then get is the same that we posted.

    In the code you will see the name parameter in the share link as below
    &name=<?php echo urlencode(INSERT_NAME_HERE) ?>
    This is where you set your title.

    Thread Starter Kevin Brent

    (@kevin-brent)

    Perfect! Thanks!

    knowlengr

    (@knowlengr)

    Hi

    This plug has been correctly identified as one that works well to add social to Tribe Events Calendar Pro. It does.

    Though when I try to add Tumblr to the enabled share list, the string “Share with Tumblr” appears in the front of every Tribe event preview excerpt. I removed Tumblr and the problem is resolved (though not I can’t share with Tumblr through the plugin).

    This may not be an issue except with Tribe Event . . .

    Cheers
    Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tumblr Button’ is closed to new replies.