|
|
Hacks to enable automatic links in stories
- General Posted by Patrick (Monday November 12 2001 @ 03:39AM EST) views: 256 |
Hi all,
I don't know if somebody already found that problem in the 0.5.3 release but I think I at least found how to fix it.
There is a problem when typing links in stories without ... , the link is not recognized automatically and it is quite inconvenient for people that doesn't know anything about HTML coding.
Here is the hack :
In include/parser.inc.php there is a function called F_inLine() that is never called from anywhere and that should do the job. I've added the call of this function in the function F_parseContent() in the case "auto" statement just before the return statement.
It's a simple hack but it works fine ;)
case "auto":
default: $output = F_inLine($output);
return nl2br(strip_tags($output,$G_HTML));
break;
Extra : I've also added target="_blank" in F_inLine() at line 56 in the generated link for more convenience when navigating.
|
|
By boris (Friday February 28 2003 @ 07:31AM EST)
|
i was looking for that hack. works great. thanks.
|
[ reply | parent ]
|
|
|
|