XF 2 Tip Config.php file options Xenforo

SNap!

Collaborate
Collaborate
Registered
Joined
Mar 17, 2022
Messages
555
Points
253

Reputation:

File path: src/config.php

All options allow only two values: true - enable, false - disable.
  • $config['development']['enabled'] = true;- Debug mode.
  • $config['designer']['enabled'] = true; - Designer mode.
  • $config['designer']['basePath'] = 'src' . \DIRECTORY_SEPARATOR . 'styles'; - Direct path to forum styles for designer mode.
  • $config['development']['fullJs'] = true; - Responsible for JS-scripts of the forum.
  • $config['enableMail'] = true; - Responsible for posting on the forum.
  • $config['enableMailQueue'] = true; - Responsible for the mail queue on the forum.
  • $config['enableListeners'] = true; - Responsible for event handlers.
  • $config['enableTemplateModificationCallbacks'] = true; - Responsible for modifying templates that have a PHP handler.
  • $config['enableGzip'] = true; - Responsible for supporting the Gzip extension (working with archives).
  • $config['enableContentLength'] = true; - Responsible for the HTTP header that the forum sends (Content-Length).
  • $config['enableTfa'] = true; - Responsible for two-factor authentication.
  • $config['enableLivePayments'] = true; - Responsible for processing payments.
  • $config['enableClickjackingProtection'] = true; - Responsible for preventing clickjacking, malicious scripts. HTTP Header (X-Frame-Options: SAMEORIGIN).
  • $config['enableReverseTabnabbingProtection'] = true; - Responsible for handling phishing attacks.
  • $config['enableApi'] = true; - Responsible for accessing the Forum API.
  • $config['enableAddOnArchiveInstaller'] = false; - Responsible for installing addons directly from the admin panel.
  • $config['enableOneClickUpgrade'] = true; - Responsible for updating directly from the admin panel, available only to users with a XenForo license.
Official source: Config.php options - XenForo 2 Manual
More about debug mode: Development tools - XenForo 2.0 Documentation
More about designer mode: Designing styles - XenForo 2.0 Documentation
 
Top