The Twitter actions in the stream don't have links that are linked, they're just plain text. Is there an easy way to have Action Stream automatically parse and wrap the links with an anchor tag?
Reported on Movable Type 4.2
The Twitter actions in the stream don't have links that are linked, they're just plain text. Is there an easy way to have Action Stream automatically parse and wrap the links with an anchor tag?
Reported on Movable Type 4.2
They are links on mine, but I'm on the svn version (which will be 1.1 when it's ready) so I can't comment if the current official release does it.
It's possibly only a small change that's required to the YAML, so if you're not happy with installing the SVN update then I could dig out which lines you need to change.
You can do the trick with the Regex-Plugin (http://plugins.movabletype.org/regex/) and two simple rules (well not that simple – it took me some days to build then ;-).
This one will make links linked:
<MTAddRegex name="1">s!([^"])(http://[^\s$2</a>!g</MTAddRegex>
And this one will make @yvesluther clickable:
<MTAddRegex name="2">s!@([^\s@$1</a>!g</MTAddRegex>
Usage:
<mt:StreamAction regex="1" regex="2" />
Happy coding!
Hi Yves,
I've put the couple of lines of code at the top of my templates and added the regex bits to mt:StreamAction but I get an error when saving the template. It seems to have something to do with an @ name that has an underscore in it.
Where exactly does this code go?
Or
Where do you download the svn update for AS?