Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10402

Displaying report texts with linebreaks and clickable links

    Details

    • Type: Improvement
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.9
    • Fix Version/s: 3.0.10-RC1
    • Labels:
      None
    • Environment:
      PHP 5.3.1, Opera 11.51

      Description

      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'] ) );

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: