Info

Category: uncategorized
Licence: GNU General Public License (GPL) version 2
Updated: 231 days ago
Downloaded: 224

Releases

Latest: 1.0

Previous releases:
None
More projects by Marcus Povey:

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!)

Release notes:

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.

@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

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://community.elgg.org/mod/groups/topicposts.php?topic=66529&group_guid=1138    and you'l see the challenges presented for translating ;-(
( 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://community.elgg.org/pg/pages/view/78206/   has one "interesting use" ;) to generate a "PrintMe" href  for Pages --> triggers my mickeymouse code to create a printable version of the main content. Having coded this hook using Marcus's TracTags as the design basis.. I feel game enough now to go for the Google Translate API ;-)

Thanks ! Marcus !

DhrupDeScoop 360 days ago

hi Marcus Povey i would like to know what is trac respository? and where do i have to get the link? in admin settings how should i give trac respository url? please reply me. since i need #tags in thewire plugin. help me pls

shanu 21 days ago