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

Missing width and height variables for smilies

    XMLWordPrintable

    Details

      Description

      I've create a smilies pack and I've a problem when posting the smile. The image on server has 72px.
      And since its 225 images I dont want to change all to 20px.
      But I've put on the .pak 20px for the size of it. On the smilies box it appears very well, since the HTML is using the size is on the database. But after posting it appears at 72px.

      I've found the problem on root/includes/functions_content.php line 992:

      return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img class="smilies" src="' . $root_path . $config['smilies_path'] . '/\2 />', $text);
      

      And it should be like this:

      return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img class="smilies" width="??px" height="??px" src="' . $root_path . $config['smilies_path'] . '/\2 />', $text);
      

      It miss the width and height value with the variable there.

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            Tarantino Tarantino
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: