Forum OpenACS Q&A: making urls active in forums package

Hi,

Openacs.org uses forums package (version 1.2.0d3) converts urls that are posted in messages to links.

This functionality seems to be missing in Forums 1.3d5, because urls are not converted to links, and there isn't a forums parameter controlling it. What function handled that, or how do I go about activating that functionality in Forums 1.3?

Collapse
Posted by Dave Bauer on
The enhacned text text datatype for the richtext widget is what triggered the linking of URLs.

Actually it should work for text/plain or text/enhanced looking at ad_text_to_html.

Anyway I think using the format of text/html is what causes the links to not be converted.

The link parser is smart enough to not link urls that are already in a tag so it is probably possible to detect links inside html content and convert them.

Posted by Torben Brosten on
Thank you, Dave, for identifying the problem switch.

In the message/post.tcl generated form, message_body.format defaults to "text/enhanced" when browser's javascript is not interpreted, and yet is defaulting to "text/html" when using RTE or Xinha.

How does one go about having a message_body.format default to "text/enhanced" instead of "text/html"?

Collapse
Posted by Torben Brosten on
Maybe expecting urls to automatically activate is not appropriate UI behavior in the context of js editors, especially since with Xinha, the url is automatically converted for many cases when inserting a space after the url.

nevermind.. =)