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.
Options

HTML problem!

edited November 2006 in Vanilla 1.0 Help
Currently I'm using http://lussumo.com/addons/?PostBackAction=AddOn&AddOnID=33 HTML Formatter 1.7 to allow people to format their text on my forums. However, if someone doesn't close a tag, for example a font or bold tag, the next post will appear bolded and the text will be red. What is the way around this?

Comments

  • Options
    NickENickE New
    edited November 2006
    make sure the POLICE_TAGS option in the extension file is set to 1
  • Options
    edited November 2006
    Apparently it is...:

    define('HTML_POLICE_TAGS', 1);
  • Options
    Yup, that's the default, works very well, I tried to break it.
  • Options
    Posted By: SirNot
    make sure the POLICE_TAGS option in the extension file is set to 1
    I got the same problem. The POLICE_TAGS is set to 1 but the tags aren't closed when someone forgets it.
    I tried it in Safari and FireFox on the Mac, could it be a mac textformatparsing issue?
  • Options
    What version of php are you running? What other extensions are installed?
  • Options
    edited November 2006
    php 4.3.2

    Other addons include:
    -rotating side banner
    -announcement 1.2
    -attachments 2.0
    -guest welcome message 1.0
    -html formatter 1.7
    -quatations 1.6
    -wow item stats 0.6
    -preview bubble 0.1
    -members list 1.2
    -comment author info 0.1

    I even just disabled all the addons except HTML formatter 1.7 and it still causes problems.

    Result

    Thats the result of my and a few friends screwing around.
  • Options
    Ah, I see what the problem is. It seems that functionality dosn't work properly with php4. Give me a tiny bit...
  • Options
    ...it was weird problem php4 has with editing class variables. Try it now, should work.
  • Options
    nope, 1.7.1 still doesn't close tags.

    I'm using php 4.4.1, and the following extensions:
    - AjaxQuote 1.0
    - Discussion Filters 1.0
    - Extended Text Formatter 1.0
    - Html Formatter 1.7.1
    - Livesearch 1.1
    - Notify 0.2
    - Preview Post 2.1
    - Quicktags 0.5
    - RSS2 Feed 1.0
    - Forum Statistics 0.2.8
    - Who's Online 1.1
    - YellowFade Effect 0.1
  • Options
    NickENickE New
    edited November 2006
    That's odd, it works with my php 4.4.1... Now does it do anything? What html were you using to test it?
  • Options
    Nope, 1.7.2 doesn't close tags either.

    I used the following test tags:

    <strong> and <em>

    But like I wrote above, could it be a mac textformat parsing issue or something? I'm gonna test it soon on my slowish VirtualPC WinXP.
  • Options
    Tested it on WinXP's Explorer 6 and it also won't close tags...
  • Options
    I can't seem to replicate this bug on my machine. There aren't any php errors (in a log file, perhaps)?

    And it wouldn't be the browser, the problem lays in the closing of the tags, not the parsing of them.
  • Options
    edited November 2006
    Posted By: SirNot
    There aren't any php errors (in a log file, perhaps)?
    On wich location could I find those?

    I installed a testversion of Vanilla on my webserver (instead of my local mac) and it still doesn't close tags... The webserver is unix with php 4.4.2-0.dotdeb.1
    I checked it with only the Html Formatter 1.7.2 extension active.
  • Options
    Aha, the closing tags are added in the html-source, not in the (database) comment itself. That solves it!
This discussion has been closed.