by Marcus Povey
First uploaded 423 days ago
0
Recommendations
Summary:
Turns #12345 and [12345] ticket and changeset links into active links for wire and blog posts.
Full description:
Trac tags
(Edit your project's description!)
This is a simple plugin which takes advantage of view post processing in order to turn #12345 ticket links and [12345] changeset links into an active link into your Trac repository.
By default the plugin will link to the Elgg central trac repo, however you can change this setting in the plugin's settings page.
The techniques used in this plugin are discussed in more detail on my blog.
That wouldn't be too hard to do.
A simple way would be to use the similar technique but listen to the page_shell or canvas views.
Marcus Povey 421 days ago
You could also hook into the filtering hook used by the kses/htmlawed module.
Marcus Povey 421 days ago
Marcus:
Thanks heaps !! More food for research here... already reading up more....
If you're curious and interested what I'm up to with language translations with mixed languages content on ELgg.. have a look here ==> http:/
( I wonder how much people miss out on techie trickx b/c they don't follow the blogging from ppl such as you, Dave, Ben, et al... ;-)
DhrupDeScoop 421 days ago
http:/
Thanks ! Marcus !
DhrupDeScoop 360 days ago

DhrupDeScoop
Profile
Following
Followers
Pages
Plugins
@Marcus
re: ".. some much more interesting uses.."
Suppose we do want to ".. process *everything*..."
e.g. filter out rude words... I suppose the code
if (($view) && (in_array($view, $CONFIG->tractags_views)))
{
// Search and replace ticket numbers
simply becomes--
if (($view) )
{
// Search and replace rude words
. . .
Actually what's on my mind is hooking into Google's translator APIs to perform on-the-fly translation of content...
DhrupDeScoop 422 days ago