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

Increase limit of custom BBcodes

    XMLWordPrintable

Details

    Description

      According the root/includes/acp/acp_bbcodes.php file the maximun value for a bbcode id is set to 1511 :
      Lines 207 to 210

      					if ($bbcode_id > 1511)
      					{
      						trigger_error($user->lang['TOO_MANY_BBCODES'] . adm_back_link($this->u_action), E_USER_WARNING);
      					}

      In the mysql_41_schema.sql for bbcodes, the row for bbcode_id is defined as

      bbcode_id tinyint(3) DEFAULT '0' NOT NULL,


      But according the documentation from mysql :

      TINYINT[(M)] [UNSIGNED] [ZEROFILL]

      A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.

      source : http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html

      May be the row have to be INT or SMALLINT

      Like always, excuse me for my poor English, I speak Spanish.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: