[SOLVED] Edit FAQ...

Discussion in 'General Support' started by Shaman, Nov 18, 2016.

  1. Shaman

    Shaman Active Member

    Joined:
    Feb 8, 2016
    Messages:
    166
    Likes Received:
    33
    Why in the formation of the FAQ do not work BB and other codes?
    For example, if the FAQ I want to write
    "123
    123"
    In FAQ on site it looks like "123 123"?
    Ok, insert code <br> "123 <br> 123" but on site still get a "123 123"

    Yes, about cleaning the cache do not need reminding :) doesn't help :cool:
     
    Last edited: Nov 18, 2016
  2. renlok

    renlok Administrator Staff Member

    Joined:
    Oct 20, 2008
    Messages:
    2,858
    Likes Received:
    330
    in editfaq.php replace
    Code:
            $params[] = array(':answer', $system->cleanvars($_POST['answer'][$system->SETTINGS['defaultlanguage']]), 'str');
    
    with
    Code:
            $params[] = array(':answer', $system->cleanvars($_POST['answer'][$system->SETTINGS['defaultlanguage']], true), 'str');
    
     
    Shaman likes this.
  3. Shaman

    Shaman Active Member

    Joined:
    Feb 8, 2016
    Messages:
    166
    Likes Received:
    33
    Thank you. SOLVED
     

Share This Page