how do I make it so that urls are automatically created as a link? e.g. http://www.getvanilla.com <-- not a link, but is there an extension which makes it a link?
well I already tried it and it doesn't work.
It just seems strange to install the html formatter extension when you don't really need the "html" part of it.
Furthermore, an average user could get confused thinking that they need to enable the html option to have links in their post.
I'm confused, selecting "text" format and typing a link (http://google.com) <-- gives a link!? Hmm..that seems odd. Convenient, I suppose, but odd.
Presumably, if you select "Html" you know how to create a link using HTML.
Convenient indeed.
But inconvenient from a usability POV, i.e. "text" would imply text only, as is the case for emails.
Anyhow, the extension is definitely useful in its own right.
Guys - that autolinking and the / me function is part of the Extended Text Formatter, not the base text formatter that comes with vanilla. Though this discussion isnt really the place for this discussion.
The new version seems to break the formatting?
I keep getting these errors?
Notice: Uninitialized string offset: 0 in /nfsn/content/artmgs/public/forum/extensions/HtmlFormatter/default.php on line 226
Notice: Uninitialized string offset: 0 in /nfsn/content/artmgs/public/forum/extensions/HtmlFormatter/default.php on line 226
its a simple matter to have the radio button be selected by default if instead of text, however, I looked on the addon code and cant find where the radio buttons are created.. maybe someone with addon creation experience can help us out
ah right, now that i think about it, it does do that... so unless you want to turn off text formatter, or absolutely need it to be html default first time, it should be best as is
Comments
get your Vanilla here
how do I make it so that urls are automatically created as a link?
e.g. http://www.getvanilla.com <-- not a link, but is there an extension which makes it a link?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •should be fixed now
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Same problems occur here :/ Any way to solve it?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •1. Add:
$sReturn = $this->AutoLink($sReturn);Above:
return $sReturn;in function Execute()
2. Add (code taken from the Extended Text Formatter):
function AutoLink($String) {
Between the Execute function and the VideoLink function.$String = str_replace(array(""","&"),array('"','&'),$String);
$String = preg_replace(
"/
(?<!<a href=\")<br /> (?<!\")(?<!\">)
((https?|ftp):\/\/)
([\@a-z0-9\x21\x23-\x27\x2a-\x2e\x3a\x3b\/;\x3f-\x7a\x7e\x3d]+)
/msxi",
"$0",
$String);
return $String;
}
That's it!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •