1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Posts containing HTML not shown correctly

Discussion in 'Closed Suggestions' started by MGSteve, Dec 31, 2010.

  1. MGSteve

    MGSteve Well-Known Member

    Hi, I've imported my forum from vB3 and there are some posts that are generated automatically by a script which post in the stats for the forums for the month. These are posted in as HTML.

    (e.g.: http://forums.mg-rover.org/showthread.php?t=392736)

    However, there doesn't appear to be a setting in XF that enables HTML in threads - note, this isn't set in vB either, but the thread & post are manually inserted into the DB by the script, so it just displays it.

    I presume XF calls htmlentities() or similar on the content it pulls out of the db (or even when its saved) - is there any way to disable this or could you add in an option on a per node basis where you can allow HTML content, as per vB.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. MGSteve

    MGSteve Well-Known Member

    Surely it should be a standard option though. I know addons are fine, but I'd rather not have loads of small addons installed that patch functionality into XF that may well break at some point - it just makes upgrading that bit more of a PITA.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Allowing HTML in posts has security implications, which is why BB Code was created.

    Are there any forums which allow HTML to be posted in threads as part of the core software?
     
  5. MGSteve

    MGSteve Well-Known Member

    VB does...

    i agree, its not ideal, but if the thread was saved by an external script (as in this case), then if its in HTML form in the database then it should display it as such (imo). Any validating and checks should be done when the post is saved, so that scripts can post HTML content in & bypass these checks, but users posting data can't.
     
  6. FirasD

    FirasD New Member

    You should let the option to the Admins to allow HTML codes to be posted in which Nodes , Just like VB.
     
  7. FirasD

    FirasD New Member

    i would be more satisfied to use XF 2.5 .
     
  8. svetoslav80

    svetoslav80 Active Member

    It should be a matter of permissions, as in vbulletin. I'd like to migrate a vbulletin forum to xenforo. It has many posts containing html tags (posted by admins), and none is shown correctly. If I use this addon, should I edit all the posts and add [parsehtml] tag, so that they show correctly?
     

Share This Page