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

Allow links for admins and moderators in posting and private messages despite the acp disabled setting allow links in posts/private messages

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.0.0-a1, 3.3
    • php 7.3
      mysql 8
      ubuntu 19.10
      Chrome 86

      Allow links in posting and private messages despite the disabled setting in acp Allow links in posts/private messages.

      For such reason overwrite $url_status in posting.php and ucp_pm_compose.php like this

      $url_status = ($config['allow_post_links'] || $auth->acl_get('a_') || $auth->acl_get('m_'));

      Also we need to replace

      $config['allow_post_links']

      on

      $url_status 
      

      Because we initialize $url_status with

      $url_status = ($config['allow_post_links'] || $auth->acl_get('a_') || $auth->acl_get('m_'));

      Also the message ALLOW_POST_LINKS_EXPLAIN should be overwriten in appropriate way in board.php

       

            Unassigned Unassigned
            smanst3r smanst3r
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: