Support » Plugin: Twitget » Twitter shortened URLs including trailing punctuation, causing them to break.

  • Resolved synapsis

    (@synapsis)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bostjan Cigan

    (@zerocool51)

    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.

    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

    Plugin Author Bostjan Cigan

    (@zerocool51)

    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.

    Plugin Author Bostjan Cigan

    (@zerocool51)

    Fixed in 3.3.

    Sorry it took so long, it works now.

    Cheers and thanks for the notice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Twitter shortened URLs including trailing punctuation, causing them to break.’ is closed to new replies.