Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10402

Displaying report texts with linebreaks and clickable links

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.10-RC1
    • 3.0.9
    • None
    • PHP 5.3.1, Opera 11.51

      When a moderator reads a report he sees the optional text of the reporter. However, linebreaks entered by the reporter aren't displayed (because HTML eats those as whitespaces). Also, if the text contains links those are not automatically made clickable.

      The fix/improvement is easy: in /includes/mcp/mcp_reports.php find:

      $message = smiley_text($message);

      After, add:

      $report['report_text']= make_clickable( bbcode_nl2br( $report['report_text'] ) );

            Oleg Oleg [X] (Inactive)
            AmigoJack AmigoJack
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: