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

Not a Bug Adjust Case for Thread Titles Cant Handle Special Chars

Discussion in 'Resolved Bug Reports' started by Jaxel, Dec 9, 2010.

  1. Jaxel

    Jaxel Well-Known Member

    I am using the "Title Case" option for this...

    I want to name a thread:
    [Feb 24, 2011] World Game Cup (06400 Cannes - France)

    Instead it gets named:
    [feb 24, 2011] World Game Cup (06400 Cannes - France)

    The title casing should ignore the first bracket system and leave the F in Feb capitalized... but it doesnt.
     
  2. Mike

    Mike XenForo Developer Staff Member

    This is mostly going to be down to the behavior of the built in ucwords() PHP function (though we use a UTF-8 compatible version). I'm not sure if it's worth writing a custom implementation to handle these cases as well.
     
  3. Jaxel

    Jaxel Well-Known Member

    Okay... well the thread title was automatically generated using my XenAtendo mod... is there a way to get the system to bypass the thread title limitations the same way you can bypass thread posting limitations?
     
  4. Kier

    Kier XenForo Developer Staff Member

    PHP:
    // init writer
    $writer->setOption(XenForo_DataWriter_Discussion::OPTION_ADJUST_TITLE_CASEfalse);
    // set data and save
     
    Dean likes this.
  5. Jaxel

    Jaxel Well-Known Member

    thanks... that did it.
     

Share This Page