Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
AutoLinks
This discussion is related to the AutoLinks addon.
Comments
- made compatible with BlogThis extension
- added fullscreen buttons to google videos and youtube
- added support for LiveLeaks.com
@jefgodesky, @Raize: there you go!Ultra-cool - works perfectly with YouTube! (on a plain Vanilla forum editor)
@rayk: I'll look in to this when I've got a moment.
anyway you could implement FAIRTILIZER embeds? Right now it really doesnt work because it takes me to the fairtilizer site sans the side panel that has the music player in it, so I cant even link to the fairtilizer site to hear the music.
many thanks!
- added support for fairtilizer.com (requires iframes to be permitted)
- bugfix: also detect images to embed from URL params
@banjanqrum: there you go. Don't forget to allow the 'iframe' HTML tag through if you use the HtmlFormatter with the above modifications. You do this by removing it from the $Html_DisallowedTags list, in the same way as you do the 'embed' tag (see the end of the instructions on modifying HTML Formatter manually).When I activate Markdown and switch my comment from text mode to markdown mode, all videos disapear.
It's because Vanilla runs the extensions in the order they were enabled and AutoLinks adds it's self as a child formatter of any formatters that exist at the time it runs. If the HTML or Markdown formatter extensions haven't been run at that point, they won't exist. So AutoLinks has to be enabled last. I'll look at converting AutoLinks in to a global formatter instead, which should fix it properly.
This extension is exactly what we've been looking for.
Is it possible to limit the length of displayed URL links? If someone enters a really long URL it would be cool if only 50 characters or so were displayed and end with "..." like:
http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?Vi...
Thanks!
I replaced line 132:
return '<a href="'.$link[0].'" rel="nofollow" class="auto-embedded" >'.$link[0].'</a>';
With the following:
$linkDisplay = $link[0]; if (strlen($linkDisplay) > 50) { $linkDisplay = substr($linkDisplay,0,50) ; $linkDisplay = $linkDisplay."..."; } return '<a href="'.$link[0].'" rel="nofollow" class="auto-embedded" target="_blank">'.$linkDisplay.'</a>';
The code does two things. First, it limits the display length of URL's to 50 characters (or whatever you set it to). Second, I added target="_blank" to the anchor tag so the link will open a new tab (my preference when viewing a forum).
Hope this helps someone else!
anyone here can make Autolink replace .FLV link to embed obj code?