Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move constants to variables or admin settings #581

Open
Phorum opened this issue Jun 11, 2011 · 2 comments
Open

Move constants to variables or admin settings #581

Phorum opened this issue Jun 11, 2011 · 2 comments
Labels
Milestone

Comments

@Phorum
Copy link
Collaborator

Phorum commented Jun 11, 2011

would it be an idea to move the settings-like constants to the admin for 5.3?
And only keep real constants in there. Or at least change them into variables instead of constants if they are considered special. That way they can still be overridden from a module. Now admins have to edit the constants.php file after each upgrade.

Reported by: mmakaay
Imported from TRAC: http://trac.phorum.org/ticket/680

@Phorum
Copy link
Collaborator Author

Phorum commented Jun 11, 2011

I think these can go into the admin.
{{{
define("PHORUM_MAX_READ_COUNT_PER_FORUM", 1000);
define("PHORUM_MOD_EMAIL_VIEW", true);
define("PHORUM_MOD_IP_VIEW", true);
define("PHORUM_DELETE_CHANGE_AUTHOR", true);
define("PHORUM_ENFORCE_UNREGISTERED_NAMES", true);
define("PHORUM_SEPARATOR", " :: ");
}}}
These are still constants in my mind:
{{{
define("PHORUM_FILE_EXTENSION", "php");
define("PHORUM_MAX_EDIT_TIME", 86400);
define('PHORUM_CACHE_DEFAULT_TTL', 3600);
define('PHORUM_CACHE_SPLIT',4);
define('PHORUM_BADWORD_REPLACE', '@#$%&');
define('PHORUM_DEFAULT_TEMPLATE', 'emerald');
define('PHORUM_DEFAULT_LANGUAGE', 'english');
}}}

By: brian

@Phorum
Copy link
Collaborator Author

Phorum commented Jun 11, 2011

Agreed, except for PHORUM_BADWORD_REPLACE. People might want to replace bad words by other code like [censored] or beeeeeep (and I've seen people do it).

By: mmakaay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants