Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 16

CurtisOdenToddZMOericgillettewhu606 +11 guests

Html Formatter

This discussion is related to the Html Formatter addon.
Html Formatter
«134

Comments

  • Posts: 38
    trying out some html

    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?
  • Posts: 1,799
    If u use the "Text" option and then type http://www.getvanilla.com <-- is a link it would be nice is the HTML option did that as well.
  • Posts: 23
    is there a way to combine both? so users don't have to keep switching back and forth btwn text or html?
  • Posts: 38
    oh ok can I do that without the extension?
  • Posts: 1,799
    there is only way to find out :)
  • Posts: 38
    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.
  • Posts: 190
    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.
  • Posts: 38
    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.
  • Posts: 5,574
    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.
  • Posts: 38
    ahh thank you, now that makes sense.
  • Posts: 5
    Is it just me, or does this double space everything when using paragraph or list tags?
  • Posts: 2,610
    Yes it does, that's what AutoP is for.
  • Posts: 5
    oh, awesome, thanks:)
  • Uploaded version 2.0.3 of Html Formatter.
  • Posts: 921
    wow cool, I didn't know it did that
  • Posts: 18
    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
  • Posts: 2,610
    I get this error as well: http://exhibitq.com/talk/discussion/1/
  • Uploaded version 2.0.4 of Html Formatter.
  • Posts: 921
    oops, sorry about that. guess that's what I get for not testing it... :-/

    should be fixed now
  • Posts: 2,610
    Lovely job thanks SirNot! All clear in my test forum...
  • Posts: 2,610
    Found a fringe case (possibly, could be something else...) but when I use the <_< smiley in my forum with Html Formatter turned on I get odd results. Is this Html Formatter causing it or something else? Disabling the extension stops the error occurring.

    Same problems occur here :/ Any way to solve it?
  • Posts: 136
    You can easily add auto-conversion of html links as follows:

    1. Add:
    $sReturn = $this->AutoLink($sReturn);
    Above:
    return $sReturn;
    in function Execute()

    2. Add (code taken from the Extended Text Formatter):
    function AutoLink($String) {

    $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;
    }
    Between the Execute function and the VideoLink function.

    That's it!
  • Uploaded version 2.0.5 of Html Formatter.
  • Posts: 921
    @stash: should be fixed.
  • Posts: 18
    Excellent plugin SirNot
  • Posts: 2,610
    Lovely thanks SirNot :)
  • akbakb
    Posts: 78
    hi there, is there a way to make html default when writing an entry?
  • Posts: 379
    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
  • Posts: 5,574
    The forum should remember what formatter you used last time. Select HTML and it should stay that way till you change it.
  • Posts: 379
    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
Sign In or Register to comment.