vBulletin 3.9.0
Installation / Upgrade / Release Information
=============================================

SYSTEM REQUIREMENTS
===================

PHP:
  Minimum:     PHP 7.4
  Recommended: PHP 8.5

Database server:
  General minimum: MySQL-compatible server 5.5.8 or newer.

  Full utf8mb4 mode requires MySQL 5.7.9 or newer, or MariaDB 10.2.6
  or newer.

Database character set:
  utf8mb4 is recommended for full Unicode support, including emoji and other
  4-byte Unicode characters.

  utf8 and utf8mb3 are supported in legacy 3-byte UTF-8 mode. Emoji, other
  4-byte Unicode characters, and some rare Unicode/CJK characters are not
  available in this mode.

  Fresh install:
    Before running the installer, create an empty database and configure it in
    config.php. The installer does not create or convert the database.
    utf8mb4_unicode_ci is recommended for English / International utf8mb4
    forums; another appropriate collation may be selected in advance.

  Upgrade:
    The upgrader does not convert charset or collation automatically. Existing
    utf8/utf8mb3 installations may remain in legacy mode. To enable full
    Unicode, convert the database default, tables, and relevant text columns to
    utf8mb4 before upgrading.

  If $config['Mysqli']['charset'] is set, use utf8mb4 for full mode or utf8 for
  predictable legacy operation. If it is omitted, the database value is used.

The character set determines which Unicode characters can be stored. The
collation determines how text is compared and sorted; it does not change the
vBulletin interface language.
WHAT'S NEW IN vBULLETIN 3.9.0
================================

1. PHP 8.5 support.

2. BB codes with URL transformations using patterns and regular expressions.
   An example is included in the Admin Control Panel.

3. Support for displaying the avatar of the last member who replied to a thread
   on the forum home page and on forum/thread pages. Backend support only for now.

4. Hour-based bans.

5. New hooks:

   global.php
     - notices_complete
     - notices_start
     - variables_declaration_global_headinclude

   includes/functions.php
     - variables_declaration_standard_error_navbar

   includes/adminfunctions_template.php
     - admin_template_special_templates

   editpost.php
     - editpost_update_ajax_postbit
     - editpost_update_preview
     - editpost_update_quickedit
     - editpost_update_saved
     - editpost_update_thread_saved

   newreply.php
     - newreply_post_ajax_response
     - newreply_post_errors
     - newreply_post_preview

   newthread.php
     - newthread_post_errors
     - newthread_post_preview

   private.php
     - private_insertpm_errors
     - private_insertpm_preview
     - private_insertpm_saved
     - private_newpm_complete
     - private_parsepm_attachments
     - private_showpm_quickreply

6. Updated search-engine crawler dictionary for online.php.

7. React engine support for modern JavaScript applications. Backend support only
   for now. It is already used on the author's forum by a new reply form and by
   a "Thanks" modification that turns thanks into reactions similar to Telegram
   or Facebook. These products may be released separately later.

8. Updated Akismet specification support in includes/class_akismet.php.

9. Redis support in class_datastore.php.

10. Redis and the new session subsystem.

    Full Redis support has been added as a backend for user sessions through
    vB_Session_Redis. When a known sessionhash is used, the runtime session is
    loaded directly from Redis without a preliminary SQL read from the session
    table. The new session subsystem can reduce MySQL load, reduce session
    activity writes, and better protect the forum from uncontrolled growth of
    guest sessions caused by bot traffic.

    The session subsystem is split into two layers:

      - session     — SQL projection of user activity and presence;
      - sessiondata — full runtime payload when the database backend is used;
      - Redis       — full runtime payload when the Redis backend is used.

    Session backend selection is configured through:

      - vB_Session_Database — stores the runtime payload in the InnoDB
        sessiondata table;
      - vB_Session_Redis — stores the runtime payload in Redis.

    The database backend remains the default.

    Redis datastore support is available through vB_Datastore_Redis. Datastore
    and user sessions can use Redis independently of one another.

    A shared Redis transport and common connection configuration are provided.
    Datastore and sessions use separate key namespaces, allowing one Redis server
    to be used safely for several purposes and multiple forum installations.

    SQL session activity updates can be throttled with:

      $config['Session']['activityupdateinterval']

    This reduces database writes under high traffic. The default value is
    15 seconds.

    The number of guest sessions can be limited with:

      $config['Misc']['maxguestsessions']

    This protects the session table from uncontrolled growth caused by large
    amounts of bot or guest traffic. A value of 0 disables the limit.

    Redis sessions have a separate application-level memory limit:

      $config['Session']['redismaxmemory']

    When the limit is exceeded, the oldest guest sessions are removed first.
    A value of 0 disables this limit.

    The Redis session backend does not use SQL payload storage as a fallback.
    If Redis is selected for sessions and becomes unavailable, the forum returns
    an explicit error instead of silently switching to another backend.

    A missing individual session key in an otherwise working Redis instance is
    treated as a normal session miss.

    Session deletion, logout, invalidation, expired-session cleanup, and bulk
    changes are synchronized with the SQL activity projection.

    The database schema has been reworked for the new architecture. The session
    table now stores activity/presence data only, while sessiondata is a separate
    InnoDB store for full runtime state in database mode.

11. class_dm_userpic.php keeps old avatars instead of deleting them, preserving
    them for history. The deletion code is currently commented out and may later
    become an option.

12. reCAPTCHA v2 support out of the box.

13. Support for additional image formats: WebP, AVIF, and SVG.

14. Updated cryptography class.

15. Updated PayPal integration.

16. Forum upgrade support starting from vBulletin 2.3.10.

17. Emoji support out of the box.

18. Post-table optimization for statistics.

DISTRIBUTION CONTENTS
=====================

do_not_upload/
  Administration and maintenance files. Upload these only when instructed by
  support staff or when you know exactly what you are doing.

  - tools.php
      Helps fix login problems and rebuild usergroup, bitfield, and other caches.

  - searchshell.php
      Command-line PHP script for rebuilding the search index.

  - vb_backup.sh
      Bash script for database backups, useful for scheduled/nightly backups.

license_agreement.html
  License agreement for the software.

vb3_readme.html
  HTML version of this installation, upgrade, and release information.

vb3_readme.txt
  English text version of this file.

vb3_readme_ru.txt
  Russian text version of this file.

upload/
  Contains the vBulletin forum files that must be uploaded for installation or
  upgrade.


INSTALLING A NEW vBULLETIN 3
============================

1. Extract the distribution archive to your computer.

2. Open:
     upload/includes/

   Rename:
     config.php.new
   to:
     config.php

3. Open config.php in a text editor and enter your database and forum settings.

4. Upload the complete contents of the upload/ directory to your web server.

5. Open:
     http://www.example.com/forums/install/install.php

   Replace www.example.com/forums/ with the URL of your forum.

6. Follow the installer and click Next Step until you are asked for the board
   details and administrator account information.

7. After installation is complete, delete:
     install/install.php
     install/upgrade1.php

8. Enter the Admin Control Panel and configure your forum.


UPGRADING FROM A PREVIOUS VERSION OF vBULLETIN 3
================================================

1. Close the board from the Admin Control Panel.

2. Make a complete database backup and back up your forum files.

3. Upload the files from upload/, except install/install.php when performing an
   upgrade.

4. Preserve your existing configuration. If necessary, compare it with
   upload/includes/config.php.new and add any new configuration options.

5. Open:
     http://www.example.com/forums/install/upgrade.php

6. Follow the on-screen instructions and continue with Next Step / Proceed until
   you are redirected to the Admin Control Panel.

7. Reopen the board after the upgrade is complete.


UPGRADING FROM vBULLETIN 2 TO vBULLETIN 3
=========================================

The vBulletin 2 to vBulletin 3 upgrade scripts can upgrade an existing
installation to vBulletin 3.9.0.

The supported starting version is vBulletin 2.3.10 or later.

Before upgrading:

1. Close the board in the vBulletin 2 Admin Control Panel.

2. Make a complete database backup. For example:

     mysqldump --opt -Q -uusername -p databasename > databasename.sql

3. Back up the existing vBulletin 2 PHP files, images, and other forum files.

4. Prepare upload/includes/config.php from config.php.new.

5. Replace the old vBulletin files with the contents of upload/.

6. Open:
     http://www.example.com/forums/install/upgrade.php

The upgrade controller automatically determines which upgrade scripts and steps
must be executed. Continue until the process redirects you to the Admin Control
Panel.

Some steps can take a long time on large forums. If the browser or connection
fails during the upgrade, open install/upgrade.php again; the upgrader will
determine the appropriate point from which to continue.

After the upgrade, follow any cleanup instructions shown by the upgrader. It is
also recommended to rebuild the search index and forum statistics from the Admin
Control Panel.


DATABASE / EMOJI NOTE
=====================

vBulletin 3.9.0 includes emoji support. Full emoji support requires utf8mb4.
Using older utf8/utf8mb3 database character sets may prevent four-byte Unicode
characters from being stored correctly.


IMPORTANT
=========

Always make a complete database and file backup before installing an upgrade on
a production forum. Test major upgrades on a copy of the production database
whenever possible.
