Using the default Twitter action stream formatting, @usernames and #hashtags are automatically linked to Twitter. If I replicate the default Twitter recipe by using this code:
<mt:AuthorDisplayName escape="html"> <a href="<mt:StreamActionURL escape="html">">tweeted</a>, "<$mt:StreamActionTitle$>"
the usernames and hashtags are not linked. I can't see in the streams.yaml or services.yaml files how the linking happens in the default recipe when simply using the <mt:StreamAction> tag.
How do I get the linking when using my own code?
Reported on Movable Type 4.2
I was about to type that it's done using callbacks, but there is a lot more to it than that!
have a look at config.yaml, lib/actionstreams/event.pm, lib/actionstreams/fix.pm, lib/actionstreams/event/twitter*.pm
You can follow the path of a tweet, but it's hard to explain here!
I'm not a programmer, so I'm not sure I'd e able to follow. I did check the config.yaml file and saw some Twitter refferences in there, but couldn't make sense of it.
So, essentially, you're saying that it's coded into Action Streams? If I want to roll my own formatting (I simply want to put in a line break between '[user] tweeted' and the body of the tweet.), I'll have to loose the @username and #hashtag formatting? The magic that's built into the plugin only works if you're using the default recipe?
That's real unfortunate.
OK, I looked through those files and I (sorta) see that there is some magic happening in there. I have no idea how any of it works, but there it is.
But I don't get why the magic only works if you use the default recipe and not with your own templating.
The real question is can I get this with my alternate templating or would that be a big deal?
I can't say this will solve your problem, but there is a good bit of help in this page. I used it to create some fancy-shamncy Action Stream recipes.
http://www.movabletype.org/documentation/motion/actionstreams/recipe-developer-guide.html