Index syndication
comment syndication

Tweet

Twitter Logo

I wanted a quick and simple way to just automatically link to a Twitter userpage or Twitter search whenever I wrote them in a blog post. The Answer to this is my Tweet WordPress plugin (previously known as Autolink to Username). The other plugins were full featured or only linked to the username in the sidebar or widget.

For example here is my twitter user: @lantrix

Here is a hashtag example: #australia

Download the Tweet plugin from the wordpress plugin directory.

If you like the plugin, I do accept donations as thanks.

Installation instructions are in a separate post for the release.

Steve Patterson said,

May 25, 2009 @ 15:33

the @usernames doesn’t link to Twitter accounts on my blog using this plug-in.
The plug-in is activated.
What might cause that?
@friendlyknoxguy

lantrix said,

May 26, 2009 @ 10:10

It may be your theme or customised code for the blog. I’ll email you and if you can send me the code from your “Page Template (page.php)” as seen on your wordpess theme editor, I’ll have a look.

Steve Patterson said,

May 26, 2009 @ 10:25

BTW, I got this to work, I believe I just redid the plug-in and it worked. I just wished it would work in the comments textarea when the comment is posted.

lantrix said,

May 30, 2009 @ 20:57

Linking in comments is my next change, and I’ll probably add it as an option from the admin console.

Steve Patterson said,

May 31, 2009 @ 00:55

Sweet that would be cool to have it link in the comments. Keep up the great work with this plug-in. BTW, It also works with my new theme. I got a new theme, since I posted that one previous comment.

James Strutton said,

July 15, 2009 @ 09:43

I installed this plugin and initially ran into some issues while testing it out. I didn’t realize until looking at the plugin’s source code that it requires a trailing character to match the regex.

So new users, this post will not work:
“@jamesstrutton”

But this post will work, notice the period after a space at the end of the $username:
“@jamesstrutton .”

Hope that helps.

@lantrix what seems to be the issue with the comments?

lantrix said,

July 15, 2009 @ 10:51

I’ll see if I can rejig the regex on the next version.

The issue with the comments is my full time job, and life getting in the way. I’m either working, sleeping or doing stuff with the family to even find more than 5 mins to work on the wp-plugins.

I suppose I’m a bit of a perfectionist, since I could just add one more line of code to include comments (like I do on my blog), but want to have a preference page so one can choose to enable or disable comments. I also have to upload the plugin to the wordpress svn to allow automatic updates.

I’ll post a follow up here when I do update it.

lantrix said,

July 21, 2009 @ 18:15

As per my post today, I have moved the plugin over to the WordPress plugin directory. You should be able to reinstall it from there and get automatic updates.

Next – to update it for comments, etc.

James Strutton said,

July 22, 2009 @ 14:44

I uncommitted the line or added it so it process the comments, I don’t remember which.

It would be nice to add twitter avatar/gravatar support to this plugin. Seems like the perfect addition and it would reduce the need to have another plugin to show avatars.

Struttonis.com said,

July 22, 2009 @ 22:48

“Tweet” – Twitter @username #hashtag WordPress Plugin…

by xotoko
I went looking for a WordPress plugin to that would link to Twitter @usernames and $hashtags. The first result that looked worthwhile was Tweet.
Tweet may lack an original name but that’s quickly overlooked. This is a very simple yet a…

Andrew said,

August 22, 2009 @ 13:04

I am having the same issue as @JamesStrutton with needing a character after the @reply. how can I fix this so that the extra character is not needed? I also posted an @reply in parentheses, ‘(@username)’, and that worked as well, but if I could not have to do the extra character that would be great.

Thank you for your time,
Andrew

Andrew said,

August 22, 2009 @ 13:11

I just tried to edit a post to use the new plug in and now it’s not working at all, but still working on a previous post… am I missing a step that I should be taking per post?

Thank You
Andrew

lantrix said,

August 24, 2009 @ 14:05

I’ll see what I can do to fix the trailing character issue in the next version, should be out in the next week or two.

As for it not working, the design is very simple – the linking should occur on ANY post as it uses the WordPress Template tags the_content and the_excerpt. Essentially the plugin will only break if you have a heavily modified theme. You can try installing it again if you want.

Twitter in Blogs verlinken :: RSS Blogger said,

September 24, 2009 @ 23:27

[…] Plugin suchen, das die Verlinkung automatisiert. Dazu habe ich das kleine und recht einfache Plugin Tweet gefunden und mal ausprobiert und das klappt auch schon ganz gut. Allerdings erzeugt es tats

Grayle said,

January 2, 2010 @ 03:09

any news on the next update? the trailing character issue is rly bugging me =(

perhaps a way to replace any part of a string begining with ” @” and ending with any “non-alphabet, non-number, non _”. same for hashtags? also, the username link should not include the @. whereas the hashtag link should include the #

=) hope it helps.

Arcum said,

January 5, 2010 @ 22:39

@Grayle I found that usernames don’t work if eg “@_3_S_” is the last thing in your post… When there are no following characters, that won

Arcum said,

January 5, 2010 @ 22:42

@Grayle yarr – I think I misunderstood you completely… the dot is the trailing character… :/ ‘scuse me…

lantrix said,

January 6, 2010 @ 15:24

It’s because the regular expression currently looks for the @username between two sets of characters. I’ve added space now in my latest commit, and I’m trying to figure out how to match and EOL or some such thing, so you don’t need anything trailing.
If you want to try the latest version, get it from http://github.com/lantrix/tweet/ by using git to clone it:
git glone http://github.com/lantrix/tweet.git
Otherwise v1.3 will be at http://wordpress.org/extend/plugins/tweet/ shortly when I figure it out.

lantrix said,

January 6, 2010 @ 00:28

@Gralye – I’m fixing it in v1.3 ASAP, and @Arcum I’ll update the version. Thanks. I’m on 2.9.1 as well and confirm it works fine here too. I’ll update the compatibility with v1.3.

I’m popping the plugin into github as well, so for commenting on this specific issue, head over to:
http://github.com/lantrix/tweet/issues/#issue/1

Tim Noonan said,

August 27, 2010 @ 11:49

[…] Tweet Automatically links Twitter.com @usernames and #hashtags in WordPress blog posts. […]

EricKloss.com - Adding plugins… « EricKloss.com said,

August 2, 2011 @ 08:16

[…] Tweet – Automatically links Twitter.com @usernames and #hashtags in WordPress blog posts. This is like the Automatic Links plugin above. Some may consider it lazy, but I don’t have to stop what I’m doing just to add in the links/code. […]

RSS feed for comments on this post · TrackBack URI

Leave a Comment