WordPress.org

Ready to get started?Download WordPress

Forums

Twitget
[resolved] Twitter shortened URLs including trailing punctuation, causing them to break. (5 posts)

  1. synapsis
    Member
    Posted 7 months ago #

    I am experiencing trouble with the t.co shortened URLs using Twitget. I am running WP 3.8 and Twitget 3.2.

    Everything is working just as it should, EXCEPT, for the URL shortening done by Twitter (t.co) is including the punctuation of the sentence inside the URL, causing them to break.

    Example: 'nirvana: unplugged' turns 20: http://t.co/QU79unIOPD.
    November 19, 2013

    I'm not sure if this is something the URL shortening is doing, or Twitget. I am using some of the advanced custom output features, just to improve the visual styling of the twitter feeds -- so it's possible that my styling broke something, though I honestly can't see what.

    The site in question is at http://www.bodiesinfocus.com. The Twitget module is in the right column.

    http://wordpress.org/plugins/twitget/

  2. Boštjan Cigan
    Member
    Plugin Author

    Posted 7 months ago #

    Please send me your custom HTML template and wrap it in the code button.

    The URLs are always shortened though, I haven't added a feature to show full URLs (if that is what you are seeking).

    Cheers.

  3. synapsis
    Member
    Posted 7 months ago #

    Here is my custom output:

    <br />
    <img class="alignleft" src="{$profile_image}">
    <br />
    <a href="https://www.twitter.com/{$user_twitter_name}"><strong>@{$user_twitter_name}</strong></a>
    <br />
    <br />
    <br />
    <!-- REMOVED DESCRIPTION BECAUSE IT DOESN'T FIT SPACE ALOTTED
    {$user_description}
    END REMOVED DESCRIPTION -->
    <ul class="pages">
    {$tweets_start}
    	<li><strong>{$tweet_text}</strong><br /><span style="font-size: 10px;">{$tweet_time}</span></li><br />
    {$tweets_end}
    </ul>

    As you can see, there's nothing there about URLs. It should just be importing the tweet as-is, with the t.co link shortening fully-functional. If your remove the trailing period from the link, they work. But somehow a trailing period is getting added to the URL. Either by Twitter's URL shortener, or by your module when it imports them. I do not know which, but I need to track it down. If it were on Twitter's end, I imagine there would be a lot more chatter about this on their support forums, but I can find none.

    I thank you for your swift reply, and hope you'll have an equally swift solution.

    Sincerely,
    Matt

  4. Boštjan Cigan
    Member
    Plugin Author

    Posted 7 months ago #

    I believe the problem is with my URL parsing because of your dots at the end, it includes them in the URLs. Will try to fix it.

    Cheers.

  5. Boštjan Cigan
    Member
    Plugin Author

    Posted 6 months ago #

    Fixed in 3.3.

    Sorry it took so long, it works now.

    Cheers and thanks for the notice.

Reply

You must log in to post.

About this Plugin

About this Topic