Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorcw
    • CommentTimeApr 20th 2007
     # 51
    Yes, it is working now! Thanks a lot!
  1.  # 52
    Uploaded version 2.1 of Html Formatter.
    • CommentAuthorSirNot
    • CommentTimeMay 26th 2007
     # 53
    formatter now allows html comments in posts, to accomodate for other extensions, special needs, whatever. like most features, it can be easily turned off by setting the boolean value of the definition HTML_ALLOW_COMMENTS to 0.
  2.  # 54
    thanks Sirnot. :)
    •  
      CommentAuthorsjeeps
    • CommentTimeMay 27th 2007 edited
     # 55
    Thanks.
  3.  # 56
    Uploaded version 2.2 of Html Formatter.
  4.  # 57
    Uploaded version 2.2 of Html Formatter.
    • CommentAuthorblue
    • CommentTimeJun 24th 2007
     # 58
    so, what's new? :)
    • CommentAuthorSirNot
    • CommentTimeJun 24th 2007
     # 59
    nothing :-P there was a small hole in how it handled tag names
    •  
      CommentAuthor[-Stash-]
    • CommentTimeJun 28th 2007
     # 60
    <blockquote><cite>Stanzi1791</cite>
    The problem I'm having with AutoP is that it adds &lt;p> around the content of a quote like this:
    (Don't pay attention to the content of the quotes, I had to quote something.. ;))
    <a href="http://www.vanslageren.nl/marleen/images/quotes1.jpg" >http://www.vanslageren.nl/marleen/images/quotes1.jpg</a></blockquote>

    When the above code is put into a comment it comes out like so...
    Stanzi1791
    The problem I'm having with AutoP is that it adds <p> around the content of a quote like this:
    (Don't pay attention to the content of the quotes, I had to quote something.. ;))
    http://www.vanslageren.nl/marleen/images/quotes1.jpg
    But with the newline option OFF in HTML Formatter 2.2 the actual code is like below, with spaces added before the > to various opening tags. Why is this?

    <blockquote ><cite >Stanzi1791</cite>
    The problem I'm having with AutoP is that it adds &lt;p> around the content of a quote like this:
    (Don't pay attention to the content of the quotes, I had to quote something.. ;))
    <a href="http://www.vanslageren.nl/marleen/images/quotes1.jpg" >http://www.vanslageren.nl/marleen/images/quotes1.jpg</a></blockquote>


    From memory I think this happens with lists as well.
    • CommentAuthorSirNot
    • CommentTimeJun 28th 2007 edited
     # 61
    that will always happen to (open) tags; the space occurs becuase of how the tags are 'reassembled.'
    •  
      CommentAuthor[-Stash-]
    • CommentTimeJun 28th 2007
     # 62
    How come it only happens to some and not others? Is there really no way to get rid of them - they look kinda messy.
    • CommentAuthorchris
    • CommentTimeAug 4th 2007 edited
     # 63
    any chance of having img tags close with a />, rather than just a >? thanks! :)
  5.  # 64
    Uploaded version 2.3 of Html Formatter.
    • CommentAuthorSirNot
    • CommentTimeAug 7th 2007
     # 65
    try it now
    •  
      CommentAuthorsjeeps
    • CommentTimeAug 7th 2007
     # 66
    WOOHOO!!!!
    Thanks SirNot.
    • CommentAuthorchris
    • CommentTimeAug 10th 2007
     # 67
    thanks :)
    • CommentAuthorjheiselman
    • CommentTimeAug 16th 2007
     # 68
    Diff for adding metacafe videos as a support type

    111c111
    < '/<video(?>\s+)type=(["\'`])((?>\w+))\1(?>\s*)>([A-Za-z\-_\d]+?)<\/video>/is',
    ---
    > '/<video(?>\s+)type=(["\'`])((?>\w+))\1(?>\s*)>([A-Za-z\-_\d\/]+?)<\/video>/is',
    143a144,145
    > case 'metacafe' : return ('<embed src="http://www.metacafe.com/fplayer/'.$ID.'.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
    >
    •  
      CommentAuthorichsie
    • CommentTimeAug 31st 2007
     # 69
    Fantastic!! And the add-on directory including those comments is seamlessly integrated with the community forum, great!
    • CommentAuthorGiorgi
    • CommentTimeOct 18th 2007
     # 70
    is there anyway to make this thingie autolink links?
    • CommentAuthorMinisweeper
    • CommentTimeOct 18th 2007 edited
     # 71
    The extended text formatter does that..
    • CommentAuthorGiorgi
    • CommentTimeOct 18th 2007
     # 72
    well I couldnot make it work :(
  6.  # 73
    What do you mean make it work? All you need to do is install the extended text formatter addon, then write a full URL into the comment box as so:
    http://www.int0rw3b.com
    then make sure your comment is formatted as text.

    No?
  7.  # 74
    Uploaded version 2.4 of Html Formatter.
  8.  # 75
    Uploaded version 2.4 of Html Formatter.
    • CommentAuthorSirNot
    • CommentTimeJan 15th 2008 edited
     # 76
    added ability to use whitelist, and made a few settings more easily accessable (video link and literal tags)
  9.  # 77
    Uploaded version 2.4 of Html Formatter.
    • CommentAuthorSirNot
    • CommentTimeJan 15th 2008
     # 78
    heh, forgot to set the default settings back...

    btw, if any of you want to mess with it (try to break it, etc.), you can test a live version of it at http://sirnot.110mb.com/htmlformatter.php
    •  
      CommentAuthorWanderer
    • CommentTimeJan 15th 2008
     # 79
    I typed this...
    This is a <b>test</b>.

    And the result was...
    This is a <b >test</b>.

    Note the space in the opening bold tag?
    • CommentAuthorSirNot
    • CommentTimeJan 16th 2008
     # 80
    ...yeah

    that has to do with how it rebuilds tags; it dosn't seem like much of a problem to me, but if you really dislike I could fix it.
    • CommentAuthorfysicsluvr
    • CommentTimeJan 16th 2008
     # 81
    in 2.4 ... what does the whitelist do??
    • CommentAuthorfuryjwild
    • CommentTimeJan 31st 2008
     # 82
    • CommentAuthorbeng
    • CommentTimeFeb 17th 2008
     # 83
    I might be crazy, but it seems Html Formatter is not formatting comments when a user is not logged in. When I browse as a 'guest' (not logged in) I see all the tags. When I log in, it looks all pretty.

    Am I doing something wrong?
    • CommentAuthorMark W
    • CommentTimeFeb 21st 2008
     # 84
    Using <img src="http://files.lussumo.com/Icons%20and%20Stuff/Maamp.gif" height="400" width="400" align="left"> will break the forum formatting.
    • CommentAuthorMark W
    • CommentTimeFeb 21st 2008
     # 85
    Even after I changed the whitelist it still breaks formatting.

    'img' => array('src', 'alt'),
    •  
      CommentAuthorFyorl
    • CommentTimeFeb 22nd 2008
     # 86
    I think that's what the 'block comment' button's for. No HTML Formatter can offer a decent degree of freedom while preventing any sort of abuse - they are mutually exclusive.
    • CommentAuthorMark W
    • CommentTimeFeb 25th 2008
     # 87
    No HTML Formatter can offer a decent degree of freedom while preventing any sort of abuse - they are mutually exclusive.

    If I remove something from the whitelist, it should no longer work - correct? It's a simple bug report.
    • CommentAuthorfysicsluvr
    • CommentTimeFeb 26th 2008
     # 88
    there should be a role-based ability to post unregulated html / php / script / etc
    • CommentAuthorSirNot
    • CommentTimeFeb 29th 2008
     # 89
    if you remove it from the white list, and you've enabled the whitelist, then it should be stripped out, yes.
    • CommentAuthorr4lph
    • CommentTimeMar 17th 2008
     # 90
    • CommentAuthorchris
    • CommentTimeJun 7th 2008
     # 91
    could we get vimeo videos to work with this, please? :)

    many thanks in advance!
    • CommentAuthorchris
    • CommentTimeJun 7th 2008 edited
     # 92
    ok, i did it by adding this -

    case 'vimeo' : return ('<embed src="http://www.vimeo.com/moogaloop.swf?clip_id='.$ID.'&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed>');

    i'm a bit stuck though as vimeo have different sized videos... not such a big deal as they have fullscreen buttons and scaling in the player, but still...
  10.  # 93
    couldn't you edit the height and width values toward the end of your code?
    ...width="425" height="350"...
    • CommentAuthorchris
    • CommentTimeJun 11th 2008
     # 94
    yes, but then users would have to find the dimensions of each video they want to post.
    • CommentAuthorfysicsluvr
    • CommentTimeJun 12th 2008
     # 95
    oh... "different sized videos [per video]." I thought you meant different than youtube, etc.
    • CommentAuthorchris
    • CommentTimeJun 28th 2008
     # 96
    aha, i should have made that bit a little more clear :)

    yes, i went with the youtube size in the code. it's working out fine for me, btw.
Add your comments
    Username Password
  • Format comments as